/* ========================================
   Shirley Wallington — Landscape Designer
   ======================================== */

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

:root {
  /* Muted, botanical palette */
  --ink: #2b3b30;           /* Deep pine — for headings, deep accents */
  --sage: #5a7562;          /* Mid sage — for secondary accents */
  --sage-soft: #dde2d5;     /* Pale sage — section backgrounds */
  --paper: #faf7f0;         /* Warm paper — main background */
  --charcoal: #3a3733;      /* Warm near-black body text */
  --muted: #7a736a;         /* Muted taupe for secondary text */
  --line: #d8d3c8;          /* Hairline dividers */
  --white: #ffffff;
  --shadow: rgba(43, 59, 48, .08);
  --shadow-lg: rgba(43, 59, 48, .14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -.01em;
}

h3 {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
  letter-spacing: .01em;
}

p { line-height: 1.75; }
p + p { margin-top: 1.2em; }

.italic-intro {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  color: var(--ink);
  line-height: 1.45;
  font-weight: 400;
}

/* ---------- Header / Nav ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s ease, background .3s ease;
}

header.scrolled {
  box-shadow: 0 1px 20px var(--shadow);
  background: rgba(250, 247, 240, .98);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: .01em;
}

nav { display: flex; gap: 2.5rem; }

nav a {
  font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

nav a:hover { color: var(--ink); text-decoration: none; }
nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 940px;
  overflow: hidden;
  margin-top: 72px;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,.12) 40%,
    rgba(0,0,0,.55) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8vh;
  text-align: center;
}

.hero-text {
  position: relative;
  padding: 40px 60px;
}

.hero-text::before {
  content: "";
  position: absolute;
  inset: -30px -60px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.35) 45%,
    rgba(0,0,0,0) 80%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  text-shadow:
    0 2px 20px rgba(0,0,0,.8),
    0 1px 3px rgba(0,0,0,.9);
  letter-spacing: .02em;
  line-height: 1;
}

.hero-text .hero-rule {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,.8);
  margin: 20px auto;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
}

.hero-text p {
  font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  font-size: clamp(.85rem, 1.4vw, 1rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .22em;
  text-transform: lowercase;
  text-shadow:
    0 2px 12px rgba(0,0,0,.8),
    0 1px 2px rgba(0,0,0,.9);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: .3s;
  padding: 0;
}

.hero-dot.active { background: var(--white); transform: scale(1.3); }

/* ---------- Sections ---------- */
section {
  padding: 110px 0;
  position: relative;
}

section.alt {
  background: var(--sage-soft);
}

/* Reusable section header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header .rule {
  width: 40px;
  height: 1px;
  background: var(--sage);
  margin: 20px auto 24px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- About Section ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 5rem;
}

.about-portrait img {
  border-radius: 2px;
  box-shadow: 0 8px 30px var(--shadow-lg);
  filter: saturate(.95);
}

.about-content .signature-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-content .signature-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

.about-content .signature-block .role {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: .12em;
  margin-top: 4px;
}

/* Philosophy quote — floating, elegant, no heavy background */
.philosophy-quote {
  max-width: 780px;
  margin: 5rem auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
}

.philosophy-quote::before {
  content: "\201C";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  color: var(--sage);
  opacity: .3;
  line-height: 1;
  font-style: italic;
}

.philosophy-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

/* Bio prose */
.bio-text {
  max-width: 640px;
  margin: 0 auto 4rem;
}

.bio-text p {
  font-size: 1.05rem;
  color: var(--charcoal);
}

.bio-subheader {
  text-align: center;
  margin-bottom: 2rem;
}

.bio-subheader h3 {
  font-size: 1.9rem;
}

.bio-subheader .rule {
  width: 32px;
  height: 1px;
  background: var(--sage);
  margin: 16px auto 0;
}

/* Designs grid */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto 2rem;
  max-width: 1000px;
}

.designs-grid img {
  border-radius: 2px;
  box-shadow: 0 4px 20px var(--shadow);
  cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.designs-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-lg);
}

/* Plants grid */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
  margin: 0 auto;
  max-width: 1000px;
}

.plant-card { text-align: center; }

.plant-card img {
  border-radius: 2px;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 1rem;
  transition: transform .3s ease;
}

.plant-card:hover img {
  transform: scale(1.03);
}

.plant-card span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: .01em;
}

/* ---------- Gallery Section ---------- */
.gallery-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 440px;
}

.gallery-batch {
  position: absolute;
  inset: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}

.gallery-batch.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.gallery-batch.leaving {
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 2px 12px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(43,59,48,.85));
  color: white;
  padding: 36px 14px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover span { opacity: 1; }

.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.gallery-nav button {
  background: transparent;
  border: 1px solid var(--sage);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-family: serif;
}

.gallery-nav button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery-counter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  min-width: 64px;
  text-align: center;
  letter-spacing: .02em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,25,22,.94);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  opacity: .65;
  transition: opacity .2s;
  z-index: 10;
  font-family: serif;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 16px; right: 24px; font-size: 2.4rem; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ---------- Contact Section ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: 1.4rem;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info a {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  color: var(--ink);
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.contact-info a:hover {
  border-bottom-color: var(--sage);
  text-decoration: none;
}

.contact-info .social-links {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .3rem;
}

.contact-form label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  margin-top: 20px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: var(--charcoal);
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: border-color .2s;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
  padding: 12px 0;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form button {
  margin-top: 32px;
  padding: 14px 40px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s;
}

.contact-form button:hover { background: var(--sage); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(250, 247, 240, .6);
  text-align: center;
  padding: 32px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem;
  letter-spacing: .05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .about-portrait { max-width: 220px; margin: 0 auto; }
  .about-content .signature-block { text-align: center; }

  .designs-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .plants-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
  .plant-card span { font-size: 1.15rem; }

  .contact-layout { grid-template-columns: 1fr; gap: 56px; }

  .gallery-stage { height: 380px; padding: 0 20px; }
  .gallery-batch { inset: 0 20px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(250, 247, 240, .98);
    flex-direction: column;
    padding: 16px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { height: 70vh; min-height: 420px; }

  .designs-grid { grid-template-columns: 1fr; }
  .plants-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }

  .gallery-stage { height: 340px; padding: 0 16px; }
  .gallery-batch { inset: 0 16px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }

  .philosophy-quote { padding: 0 16px; }
  .philosophy-quote::before { top: -40px; font-size: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .gallery-item img { transition: none; }
  .gallery-batch { transition: opacity .3s ease; transform: none; }
  .gallery-batch.active, .gallery-batch.leaving { transform: none; }
}
