/* ─── Folk & Frame — Main Stylesheet ─── */

:root {
  --sage: #5E6952;
  --sage-light: #7a8a6c;
  --sage-pale: #d4dbc8;
  --cream: #f5f0e8;
  --linen: #ece5d8;
  --warm-white: #faf8f4;
  --bark: #3d3428;
  --bark-light: #6b5d4a;
  --charcoal: #2c2c2a;
  --gold: #b89b5e;
  --gold-muted: #c4a86c;
  --text: #3a3630;
  --text-light: #6b6358;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Grain overlay ─── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(94, 105, 82, 0.1);
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--bark);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.nav-links a:hover { color: var(--sage); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── Mobile nav toggle ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bark);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 4rem 5rem;
  position: relative;
}

.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-heading em {
  font-style: italic;
  color: var(--sage);
}

.hero-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--sage);
  color: var(--cream);
  padding: 1rem 2.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-cta:hover {
  background: var(--bark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 52, 40, 0.15);
}

.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1.2s 0.4s forwards;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(94, 105, 82, 0.08), transparent 60%);
}

/* ─── SHARED SECTION STYLES ─── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
  display: block;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--bark);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-light);
  max-width: 520px;
}

.section-body + .section-body {
  margin-top: 1.25rem;
}

/* ─── PHILOSOPHY ─── */
.philosophy {
  padding: 7rem 5rem;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.philosophy-image {
  position: relative;
}

.philosophy-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.philosophy-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1.5px solid var(--sage-pale);
  z-index: -1;
}

/* ─── SERVICES ─── */
.services {
  padding: 7rem 5rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  text-align: left;
  padding: 2.5rem 2rem;
  border: 1px solid var(--sage-pale);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--sage-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(94, 105, 82, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: block;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ─── GALLERY ─── */
.gallery {
  padding: 7rem 5rem;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

.gallery-item:not(.tall) img {
  height: 280px;
}

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

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(44, 44, 42, 0.7));
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-item.tall {
  grid-row: span 2;
}

/* ─── BEFORE / AFTER ─── */
.before-after {
  padding: 7rem 5rem;
  text-align: center;
}

.ba-container {
  margin-top: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.ba-image {
  position: relative;
  overflow: hidden;
}

.ba-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(250, 248, 244, 0.92);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.ba-arrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--sage-pale);
}

/* ─── ABOUT ─── */
.about {
  padding: 7rem 5rem;
  background: var(--charcoal);
  color: var(--cream);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-portrait {
  position: relative;
}

.about-portrait img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.15);
}

.about-portrait::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1.5px solid rgba(184, 155, 94, 0.3);
  z-index: -1;
}

.about .section-label { color: var(--gold-muted); }
.about .section-heading { color: var(--cream); }
.about .section-body { color: rgba(236, 229, 216, 0.75); max-width: 520px; }

/* ─── CONTACT ─── */
.contact {
  padding: 7rem 5rem;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact .section-heading {
  margin-bottom: 1rem;
}

.contact .section-body {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage);
  color: var(--cream);
  padding: 1rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
}

.contact-cta:hover {
  background: var(--bark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 52, 40, 0.15);
}

.contact-details {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 2;
}

/* ─── FOOTER ─── */
footer {
  padding: 2.5rem 5rem;
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sage-pale);
}

footer a {
  text-decoration: none;
}

.footer-logo {
  height: 28px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.8;
}

footer small {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 7rem 2rem 3rem;
  }

  .hero-image {
    height: 50vh;
  }

  .philosophy {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    gap: 2.5rem;
  }

  .philosophy-image img {
    height: 300px;
  }

  .services {
    padding: 4rem 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding: 4rem 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.tall {
    grid-row: auto;
  }

  .gallery-item:not(.tall) img {
    height: auto;
  }

  .before-after {
    padding: 4rem 2rem;
  }

  .ba-container {
    grid-template-columns: 1fr;
  }

  .ba-image img {
    height: 280px;
  }

  .ba-arrow {
    transform: rotate(90deg);
  }

  .about {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    gap: 2.5rem;
  }

  .about-portrait img {
    max-width: 280px;
  }

  .contact {
    padding: 4rem 2rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
}
