/* Ashton's Retreat. Palette and rhythm taken from the EDV AI Solutions
   site (see STYLE_REFERENCE.md), simplified for one page and no JavaScript. */

:root {
  --bg: #F5F2EE;
  --tint: #EDE9E3;
  --surface: #FFFFFF;
  --text: #2C2C2C;
  --muted: #6B6860;
  --green: #4A6741;
  --green-dark: #3A5232;
  --sage: #8DB882;
  --amber: #A67C3D;
  --deep: #2C3B28;
  --border: #E8E3DA;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --measure: 44rem;
  --wide: 64rem;
  --pad: 1.25rem;
}

@media (min-width: 700px) {
  :root { --pad: 2.5rem; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--deep);
}

h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

/* Hero */
.hero {
  position: relative;
  background: var(--deep);
  color: #fff;
  min-height: 24rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 59, 40, 0.97) 0%,
    rgba(44, 59, 40, 0.55) 50%,
    rgba(44, 59, 40, 0.15) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem var(--pad) 2.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
  margin: 0 0 0.25rem;
}

.location-line {
  font-size: 0.95rem;
  color: var(--sage);
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 103, 65, 0.3);
}

.btn-light {
  background: rgba(245, 242, 238, 0.12);
  color: #F5F2EE;
  border-color: rgba(245, 242, 238, 0.28);
}

.btn-light:hover {
  background: rgba(245, 242, 238, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--bg);
}

.btn:disabled {
  background: var(--border);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Gallery */
.gallery {
  max-width: var(--wide);
  margin: 2rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--tint);
}

/* Page body */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem var(--pad) 3rem;
}

.block { padding-top: 2.5rem; }

.block + .block {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.card h2 { margin-top: 0; }

.label {
  display: block;
  font: 700 0.7rem/1 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* Form */
form p { margin: 0 0 1rem; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #CFC9BE;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--green);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}

.form-row p { margin: 0; }

@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Honeypot: out of sight for people, present for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.airbnb-link { margin-top: 2.5rem; }

/* Footer */
.site-foot {
  background: var(--deep);
  color: rgba(245, 242, 238, 0.75);
  margin-top: 3rem;
  padding: 2rem var(--pad);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.9;
}

.site-foot p { margin: 0; }

.site-foot a {
  color: var(--sage);
  text-decoration: none;
}

.site-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Lightbox, CSS only. A photo opens when its id is the URL fragment. */
.gallery a { display: block; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(44, 59, 40, 0.94);
  padding: 1rem;
}

.lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox img {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
