/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:        #ffffff;
  --black:        #111111;
  --charcoal:     #2c2c2c;
  --mid:          #767676;
  --rule:         #d8d2c8;
  --parchment:    #ede5d8;
  --green:        #2e4a30;
  --green-mid:    #3d6140;
  --terracotta:   #b84e2a;
  --rust:         #7a2418;
  --blue:         #4e6e8e;
  --gold:         #b08a28;
  --font-serif:   'Georgia', 'Times New Roman', serif;
  --font-sans:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-script:  'Caveat', cursive;

  /* Squiggle data URIs — reused on h2::after */
  --squiggle-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M0,4 C10,1 20,7 30,4 C40,1 50,7 60,4 C70,1 80,7 90,4 C100,1 110,7 120,4' stroke='%23d0c8ba' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  --squiggle-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M0,4 C10,1 20,7 30,4 C40,1 50,7 60,4 C70,1 80,7 90,4 C100,1 110,7 120,4' stroke='%23ffffff' stroke-width='1.5' fill='none' opacity='0.22'/%3E%3C/svg%3E");
  --squiggle-nav: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='5' viewBox='0 0 80 5'%3E%3Cpath d='M0,3.5 C10,0.5 20,5 30,3 C42,0.5 54,5 64,3 C71,1 76,4 80,3' stroke='%23b84e2a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

/* Parchment grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: normal;
  letter-spacing: 0.01em;
}

/* #3 — Squiggly underlines on all h2s */
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-image: var(--squiggle-dark);
  background-repeat: repeat-x;
  background-size: auto 8px;
  background-position: left bottom;
}

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

.burrow-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.burrow-link:hover { opacity: 1; }

p { color: var(--charcoal); margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4vw;
  padding-top: calc(1.25rem + env(safe-area-inset-top));
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.3s ease;
}

nav.nav-hidden { transform: translateY(-100%); }

/* Safe area fill for iPhone notch/Dynamic Island */
nav::before {
  content: '';
  position: absolute;
  top: calc(-1 * env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: env(safe-area-inset-top);
  background: var(--white);
}

.nav-name { display: flex; align-items: center; }

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
}

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

/* #7 — Wobbly underline on nav hover */
.nav-links a {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 5px;
  background-image: var(--squiggle-nav);
  background-repeat: repeat-x;
  background-size: auto 5px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active { color: var(--mid); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--black);
}

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 7rem 0; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* ── Vintage rule ornament ─────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--terracotta);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.4;
}

/* ── Landing ──────────────────────────────────────────────── */
#landing {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background: url('images/IMG_2895 copy.JPG') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

#landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}


.landing-inner {
  max-width: 680px;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.landing-eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.09rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

#landing h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.0;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1rem;
}

/* Landing h1 doesn't get the squiggle */
#landing h1::after { display: none; }

.landing-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: 3rem;
}

.landing-divider {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 auto;
}

/* ── Button ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--black);
  color: var(--black);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.22s, color 0.22s;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
}

.btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ── About ────────────────────────────────────────────────── */
#about {
  background: #e8e2d8;
  display: grid;
  grid-template-columns: 42% 1fr;
  padding: 0;
  min-height: 85vh;
}

.about-image-wrap {
  overflow: hidden;
  height: 100%;
}

.about-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.about-text {
  padding: 5rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image-wrap .image-placeholder { position: relative; }

.about-image-wrap .image-placeholder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-placeholder.tall { aspect-ratio: 4/5; }

.about-text h2 { margin-top: 0; }

.about-text p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.about-text .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* ── Gallery ──────────────────────────────────────────────── */
#gallery { background: var(--parchment); }

/* #8 — Pinned / tilted gallery items */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  overflow: visible;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.35s ease, z-index 0s;
  position: relative;
}

.gallery-item:nth-child(3n+1) { transform: rotate(-1.5deg); }
.gallery-item:nth-child(3n+2) { transform: rotate(1.2deg); }
.gallery-item:nth-child(3n+3) { transform: rotate(-0.6deg); }

.gallery-item:hover {
  transform: rotate(0deg) scale(1.03);
  z-index: 2;
}

figcaption {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.45;
  font-style: italic;
}

/* ── Services ─────────────────────────────────────────────── */
#services {
  background: var(--green);
  position: relative;
}

/* #5 — Vintage menu double-border frame */
#services .section-inner {
  border: 1px solid rgba(255,255,255,0.13);
  padding: 3.5rem 4vw;
  position: relative;
}

#services .section-inner::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Doily-inspired scalloped outer border */
#services .section-inner::after {
  content: '';
  position: absolute;
  inset: -13px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 100%,
      transparent 9px, rgba(255,255,255,0.13) 9px, rgba(255,255,255,0.13) 10.5px, transparent 10.5px
    ) 0 0 / 20px 13px repeat-x,
    radial-gradient(circle at 50% 0%,
      transparent 9px, rgba(255,255,255,0.13) 9px, rgba(255,255,255,0.13) 10.5px, transparent 10.5px
    ) 0 100% / 20px 13px repeat-x,
    radial-gradient(circle at 100% 50%,
      transparent 9px, rgba(255,255,255,0.13) 9px, rgba(255,255,255,0.13) 10.5px, transparent 10.5px
    ) 0 0 / 13px 20px repeat-y,
    radial-gradient(circle at 0% 50%,
      transparent 9px, rgba(255,255,255,0.13) 9px, rgba(255,255,255,0.13) 10.5px, transparent 10.5px
    ) 100% 0 / 13px 20px repeat-y;
}

#services h2 {
  font-family: var(--font-serif);
  color: var(--white);
}

/* Squiggle override for dark background */
#services h2::after {
  background-image: var(--squiggle-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-card {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 2rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* #13 — Subtle tints on each card */
.service-card:nth-child(1) { background: rgba(176,138,40,0.09); }
.service-card:nth-child(2) { background: rgba(255,255,255,0.04); }
.service-card:nth-child(3) { background: rgba(78,110,142,0.11); }

/* #1 — Handwritten-style service numbers */
.service-number {
  font-family: var(--font-script);
  font-size: 1.5rem;
  letter-spacing: 0;
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-card p {
  font-family: var(--font-serif);
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
}

.service-detail {
  font-size: 0.67rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35) !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.service-card p:not(.service-detail) + .service-detail {
  margin-top: auto !important;
  padding-top: 1.5rem;
}

/* ── Press ────────────────────────────────────────────────── */
#press { background: #e8e2d8; }

.press-list { list-style: none; }

.press-item {
  display: grid;
  grid-template-columns: 160px 1fr 110px;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.press-item:first-child { border-top: 1px solid var(--rule); }

.press-outlet {
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
}

.press-headline {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--black);
  transition: color 0.2s;
}

.press-headline:hover { color: var(--green); }

.press-date {
  font-size: 0.72rem;
  color: var(--mid);
  text-align: right;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--green);
  display: grid;
  grid-template-columns: 1fr 50%;
  padding: 0;
  align-items: stretch;
}

#contact h2 { color: var(--white); }
#contact h2::after { background-image: var(--squiggle-light); }

#contact label { color: rgba(255,255,255,0.55); }

#contact input,
#contact select,
#contact textarea {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.2);
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus { border-bottom-color: rgba(255,255,255,0.65); }

#contact .btn {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

#contact .btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

#contact .form-success { color: rgba(255,255,255,0.75); }

.contact-inner {
  padding: 4rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-image-wrap {
  overflow: hidden;
  align-self: stretch;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-form { display: flex; flex-direction: column; gap: 0.7rem; }

.form-row { display: flex; flex-direction: column; gap: 0.3rem; }

.form-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

label {
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

input, select, textarea {
  width: 100%;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--green);
}

textarea { resize: vertical; min-height: 70px; }

.contact-form .btn { align-self: flex-start; }

.form-success {
  display: none;
  font-size: 0.82rem;
  color: var(--green);
  letter-spacing: 0.05em;
  font-style: italic;
}

.form-success.visible { display: block; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.3);
  padding: 1.5rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #about { grid-template-columns: 1fr; min-height: auto; }
  .about-image-wrap { height: 60vw; max-height: 500px; }
  .about-photo { object-position: center center; }
  .about-text { padding: 3rem 6vw; }
  .press-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .press-date { text-align: left; }
}

@media (max-width: 600px) {
  #landing::after { inset: 1rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 1.5rem 4vw; gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 5rem 0; }
  .gallery-item:nth-child(n) { transform: rotate(0); }
  .form-row-pair { grid-template-columns: 1fr; gap: 0.7rem; }
  #contact { grid-template-columns: 1fr; }
  .contact-image-wrap { height: 65vw; }
  .about-image-wrap { order: 2; height: auto; max-height: none; }
  .about-photo { height: auto; object-fit: contain; }
  .about-text { order: 1; }
}
