@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --ivory: #F7F2EC;
  --cream: #F3EAE1;
  --beige: #E4D1C2;
  --nude: #D4B7A5;
  --taupe: #A98C79;
  --deep-nude: #8A6A55;
  --espresso: #302520;
  --muted: #8B8078;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-y: 96px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--espresso);
}

p { margin: 0; color: var(--espresso); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--deep-nude);
}

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: var(--deep-nude);
  color: var(--white);
}
.btn-primary:hover { background: var(--espresso); }
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn-secondary:hover { background: var(--espresso); color: var(--white); }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--beige);
}
/* Stacked + centered: logo sits dead-center on its own row, nav links centered below it.
   padding-top/bottom only (not the shorthand) so this doesn't clobber .container's own left/right padding. */
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  padding-top: 28px;
  padding-bottom: 20px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1.1;
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  font-weight: 500;
}
.logo-mark { display: flex; align-items: center; }
.logo-mark img { height: 130px; width: auto; display: block; }
@media (max-width: 860px) { .logo-mark img { height: 90px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--espresso);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a.active,
.nav-links a:hover { border-bottom-color: var(--deep-nude); }
.nav-ig svg { width: 18px; height: 18px; }
.nav-toggle { display: none; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--espresso);
  margin: 5px 0;
}

@media (max-width: 860px) {
  /* top/height come from --header-h (set by JS to the header's real measured height) rather than
     a guessed pixel value, since .site-header's backdrop-filter makes it a containing block for
     this fixed element, which breaks inset's bottom:0 resolution — and the header's height changes
     with the logo/content, so a hardcoded number would drift out of sync. --header-h has a fallback
     for the brief moment before JS runs. */
  .nav-links { position: fixed; top: var(--header-h, 178px); left: 0; right: 0; height: calc(100vh - var(--header-h, 178px)); height: calc(100dvh - var(--header-h, 178px)); background: var(--ivory); flex-direction: column; justify-content: flex-start; gap: 28px; padding: 48px 32px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; overflow-y: auto; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* Image placeholder (until real photography is dropped in) */
.img-slot {
  position: relative;
  background: linear-gradient(160deg, var(--beige), var(--nude));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-slot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(48,37,32,0.55);
}
.img-slot svg { width: 32px; height: 32px; opacity: 0.35; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero — centered: portrait, name, one clear line, two actions */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 32px 88px;
}
.hero-portrait {
  width: 260px;
  height: 340px;
  border-radius: 130px 130px 8px 8px;
  margin-bottom: 32px;
  box-shadow:
    0 24px 48px -12px rgba(48, 37, 32, 0.25),
    0 0 0 10px var(--ivory),
    0 0 0 11px var(--beige);
}
.hero-portrait::after { display: none; }
.hero-centered h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero-centered .subhead {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--deep-nude);
  font-weight: 600;
  margin-top: 14px;
}
.hero-centered .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin: 20px 0 36px;
}
.hero-actions { display: flex; gap: 16px; }

@media (max-width: 700px) {
  .hero-centered { padding: 40px 24px 64px; }
  .hero-portrait { width: 200px; height: 260px; border-radius: 100px 100px 6px 6px; margin-bottom: 24px; }
  .hero-centered h1 { font-size: 40px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; }
}

/* Section rhythm */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--cream); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 40px; letter-spacing: -0.8px; }

/* Small sparkle accent, echoing the mark in the logo, used above key headings */
.sparkle-accent {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 18px;
  color: var(--taupe);
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card .img-slot { aspect-ratio: 4/5; margin-bottom: 24px; border-radius: 3px; }
.service-card h3 { font-size: 26px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* Gallery (Selected Work) — plain, uniform grid, easy to scan */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-grid .img-slot { aspect-ratio: 4/5; border-radius: 3px; transition: transform 0.4s ease; }
.gallery-grid .img-slot img { object-position: center top; }
.gallery-grid a:hover .img-slot { transform: scale(1.02); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.section-cta { text-align: center; margin-top: 48px; }

/* About — short, centered bio */
.about-centered { max-width: 640px; margin: 0 auto; text-align: center; }
.about-centered h2 { font-size: 36px; margin-bottom: 24px; }
.about-centered p { color: var(--muted); font-size: 18px; margin-bottom: 16px; }
.about-centered .about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--espresso);
  margin-bottom: 20px;
}

/* Testimonials */
.testimonial-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 56px 48px;
  overflow: hidden;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -36px;
  left: 32px;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 1;
  color: var(--cream);
  z-index: 0;
  pointer-events: none;
}
.testimonials { position: relative; z-index: 1; text-align: center; }
.testimonial { display: none; }
.testimonial.active { display: block; }
.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 24px;
  aspect-ratio: 1/1;
}
.testimonial-avatar::after { display: none; }
@media (max-width: 700px) { .testimonial-card { padding: 40px 24px; } }
.testimonial q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--espresso);
  quotes: "\201C""\201D";
}
.testimonial cite { display: block; margin-top: 20px; font-style: normal; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonial-dots button { width: 6px; height: 6px; border-radius: 50%; border: none; background: var(--beige); cursor: pointer; padding: 0; }
.testimonial-dots button.active { background: var(--deep-nude); }

/* Instagram teaser */
.instagram-teaser { text-align: center; }
.instagram-teaser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 32px auto 36px;
}
.instagram-teaser-grid .img-slot { aspect-ratio: 1/1; border-radius: 4px; transition: transform 0.4s ease; }
.instagram-teaser-grid a:hover .img-slot { transform: scale(1.04); }
@media (max-width: 700px) {
  .instagram-teaser-grid { grid-template-columns: repeat(3, 1fr); }
  .instagram-teaser-grid a:nth-child(n+4) { display: none; }
}

/* Final CTA */
.cta-band {
  background: var(--espresso);
  color: var(--ivory);
  border-radius: 4px;
  padding: 64px;
  text-align: center;
}
.cta-band h2 { color: var(--ivory); font-size: 40px; margin-bottom: 16px; }
.cta-band p { color: var(--on-dark-soft, #cfc4ba); margin-bottom: 32px; font-size: 17px; }
.cta-band .btn-secondary { border-color: var(--ivory); color: var(--ivory); }
.cta-band .btn-secondary:hover { background: var(--ivory); color: var(--espresso); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-instagram {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--on-dark-soft, #cfc4ba);
  border-bottom: 1px solid rgba(247,242,236,0.3);
}
.cta-instagram:hover { color: var(--ivory); border-color: var(--ivory); }

/* Footer */
.site-footer { background: var(--espresso); color: #cfc4ba; padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-top .wordmark { color: var(--ivory); }
.footer-top .wordmark small { color: #a89a8e; }
.footer-links { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 12px; color: #a89a8e; }

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Page hero (Portfolio / Contact) */
/* padding-top/bottom only (not the shorthand) so this doesn't clobber .container's own left/right padding */
.page-hero { padding-top: 72px; padding-bottom: 48px; text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 12px; }
.page-hero h1 { font-size: 52px; letter-spacing: -1px; }
.page-hero p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) {
  .page-hero { padding-top: 40px; padding-bottom: 32px; }
  .page-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-hero p { font-size: 16px; }
}

/* Portfolio filters */
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--beige);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

.masonry { column-count: 3; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; cursor: pointer; }
/* Real photos flow at their natural aspect ratio (true masonry) instead of being force-cropped */
.masonry-item .img-slot { border-radius: 3px; display: block; background: none; }
.masonry-item .img-slot img { position: static; width: 100%; height: auto; display: block; border-radius: 3px; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(48,37,32,0.92);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox-frame { position: relative; max-width: 900px; width: 100%; }
.lightbox-frame .img-slot { background: none; display: flex; align-items: center; justify-content: center; }
.lightbox-frame .img-slot img { position: static; width: auto; height: auto; max-width: 100%; max-height: 85vh; border-radius: 3px; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(48,37,32,0.55);
  border: none;
  color: var(--ivory);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: -52px; right: 0; }
.lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } .lightbox-close { top: 8px; right: 8px; } }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 72px; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }

.enquiry-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--beige); }
.enquiry-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 12px 4px;
  margin-right: 24px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.enquiry-tab:hover { color: var(--espresso); }
.enquiry-tab.active { color: var(--espresso); border-bottom-color: var(--deep-nude); }
.enquiry-intro { color: var(--muted); font-size: 15px; margin-bottom: 28px; max-width: 52ch; }

.field { margin-bottom: 24px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 3px;
  color: var(--espresso);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--deep-nude); box-shadow: 0 0 0 3px rgba(138,106,85,0.15);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23302520' stroke-width='1.5'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}
.field select:invalid { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }

.contact-direct { background: var(--cream); border-radius: 4px; padding: 32px; height: fit-content; }
.contact-direct h3 { font-size: 22px; margin-bottom: 16px; }
.contact-direct a { display: block; color: var(--deep-nude); font-weight: 600; margin-bottom: 8px; }
.contact-direct p { color: var(--muted); font-size: 14px; margin-top: 20px; }

.form-success { display: none; background: var(--cream); border: 1px solid var(--beige); border-radius: 4px; padding: 32px; text-align: center; }
.form-success.visible { display: block; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }

.form-error { background: #f6e3df; color: #7a2e22; border: 1px solid #e3bdb5; border-radius: 3px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.form-error a { text-decoration: underline; }
.btn:disabled { opacity: 0.6; cursor: wait; }
