/* ============================================================
   Salt Water Color — site styles
   Fonts: Amatic SC (headings/nav/taglines), Montserrat (wordmark 100, body 400)
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #1f1f1f;          /* near-black headings */
  --body: #414141;         /* body copy gray (from original) */
  --muted: #8a8a8a;        /* footer wordmark / secondary */
  --accent: #db942a;       /* amber/gold accent (from original) */
  --accent-dark: #b9791d;
  --rule: #e8e6e6;         /* hairline dividers (from original) */

  --font-script: "Amatic SC", cursive;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --maxw: 1180px;
  --prose-width: 820px;    /* readable text-column width for prose sections */
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

/* Smooth in-page scrolling for anchor links, unless the user prefers less motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Wordmark (shared header + footer) ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  line-height: 1;
  color: var(--ink);
}
.wordmark .dot { color: var(--accent); padding: 0 0.12em; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem var(--gutter) 0;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo brand social"
    "logo nav   social";
  align-items: center;
  column-gap: 1.5rem;
}
.brand-logo { grid-area: logo; }
.brand-logo img { width: 200px; height: auto; }
.brand-text { grid-area: brand; align-self: end; text-align: center; }
.brand-text .wordmark { font-size: clamp(1.5rem, 4.4vw, 2.9rem); }
.tagline {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  margin: 0.35rem 0 0;
}
.header-social { grid-area: social; justify-self: end; }

/* social lists (header + footer) */
.social { list-style: none; display: flex; gap: 0.9rem; margin: 0; padding: 0; align-items: center; }
.social a { color: var(--ink); display: inline-flex; }
.social a:hover { color: var(--accent); }

/* ---------- Primary nav ---------- */
.primary-nav { grid-area: nav; align-self: start; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0.5rem 0 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 2.6rem);
}
.primary-nav a {
  font-family: var(--font-script);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.55rem;
  color: var(--ink);
  line-height: 1;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

.nav-toggle { display: none; }
.nav-break { display: none; }

/* When the nav no longer fits on one row, keep the natural flex spacing but
   force exactly 3 links per row: a full-width break item wraps after the 3rd. */
@media (max-width: 1080px) and (min-width: 701px) {
  .primary-nav ul { row-gap: 0; }
  .nav-break { display: block; flex: 0 0 100%; height: 0.4rem; }
}

/* ---------- Hero carousel ---------- */
.hero {
  max-width: var(--maxw);
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  padding: 0 var(--gutter);
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease;
}
.slide { flex: 0 0 50%; box-sizing: border-box; padding: 0 0.4rem; margin: 0; }
.slide img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; border-radius: 2px; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.carousel-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--rule); cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* ---------- Intro ---------- */
.intro {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.script-heading {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
}
.intro-text p { margin: 0 0 1.1rem; }
.signoff { font-style: italic; }
.signoff span { color: var(--muted); }
.intro-photo { margin: 0; }
.intro-photo img { width: 100%; border-radius: 2px; }

/* ---------- About page ---------- */
.about {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  padding: 0 var(--gutter);
}
.about .script-heading { margin-bottom: 1.6rem; }
.about-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas: "text media";
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-media {
  grid-area: media;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
/* widths proportional to each image's displayed width on the live site, so the
   two photos end up roughly equal height (the landscape dog ends up wider) */
.about-media img { min-width: 0; height: auto; border-radius: 2px; display: block; }
.about-media img:nth-child(1) { flex: 291; }  /* Lauren (portrait) */
.about-media img:nth-child(2) { flex: 453; }  /* dog portrait (landscape) */
.about-text { grid-area: text; }
.about-text p { margin: 0 0 1.1rem; }

/* CTA button */
.cta-button {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.55rem 1.7rem;
  margin-top: 0.6rem;
  border-radius: 2px;
}
.cta-button:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Mid widths: stack the two photos but keep them beside the text. */
@media (max-width: 1080px) and (min-width: 701px) {
  .about-body { grid-template-columns: 1fr auto; }
  .about-media { flex-direction: column; }
  .about-media img { flex: none; width: clamp(260px, 36vw, 380px); }
}

@media (max-width: 700px) {
  .about-body { grid-template-columns: 1fr; grid-template-areas: "text" "media"; }
  .about-media { flex-direction: column; }
  .about-media img { flex: none; width: 100%; }
}

/* ---------- Contact page ---------- */
.contact {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.contact-lead { margin: 0 0 0.4rem; }
.contact-info {
  font-size: 1.2rem;
  line-height: 1.9;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.contact-info a { color: var(--body); }
.contact-info a:hover { color: var(--accent); }
.contact-wreath { position: relative; width: clamp(280px, 46vw, 420px); margin: 0 auto; container-type: inline-size; }
.contact-wreath img { width: 100%; display: block; }
.wreath-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
  font-size: 8cqw;            /* scales with the wreath, not the viewport */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-5%); /* nudge the group up toward the wreath's center */
}
.contact-wreath .wreath-bee { width: 16cqw; height: auto; margin-bottom: 1.5cqw; }

/* ---------- Page intro (simple pages) ---------- */
.page-intro {
  max-width: var(--maxw);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}

/* ---------- Gallery + lightbox ---------- */
.gallery {
  max-width: var(--maxw);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto clamp(2.5rem, 6vw, 4rem);
  padding: 0 var(--gutter);
}
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(0.4rem, 1.5vw, 0.9rem);
}
.gallery-cell { margin: 0; }
.gallery-item { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 2px; transition: opacity 0.15s ease; }
.gallery-item:hover img,
.gallery-item:focus-visible img { opacity: 0.85; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.88); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.lightbox-btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; opacity: 0.85; }
.lightbox-btn:hover { opacity: 1; }
.lightbox-close { top: 0.8rem; right: 1.2rem; font-size: 2.6rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3.2rem; padding: 0.5rem 1rem; }
.lightbox-prev { left: 0.3rem; }
.lightbox-next { right: 0.3rem; }

/* ---------- Pet Portraits page ---------- */
.salty-banner {
  max-width: var(--maxw);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.4rem, 1.5vw, 0.9rem);
}
.salty-banner img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 2px; }

.process { max-width: var(--prose-width); margin: clamp(2.5rem, 6vw, 4rem) auto clamp(1.25rem, 3vw, 2rem); padding: 0 var(--gutter); }
.process .script-heading { text-align: center; margin-bottom: 1.6rem; }
.sub-heading {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  margin: 2rem 0 0.6rem;
}
.process p { margin: 0 0 1.1rem; }
.price-list { list-style: none; margin: 0 auto 1.4rem; padding: 0; max-width: 480px; }
.price-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}
.price-name { font-weight: 500; }
.price-size { color: var(--muted); font-size: 0.95rem; }
.price-amt { color: var(--accent); font-weight: 500; }
.process-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.8rem; }

.salty-strip { max-width: var(--maxw); margin: clamp(1rem, 2.5vw, 1.5rem) auto; padding: 0 var(--gutter); }
.salty-strip img { width: 100%; height: auto; display: block; }

.reference-guide { max-width: var(--prose-width); margin: clamp(1.25rem, 3vw, 2rem) auto clamp(2.5rem, 6vw, 4rem); padding: 0 var(--gutter); }
.reference-guide .script-heading { text-align: center; margin-bottom: 1.6rem; }
.reference-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.reference-examples img { width: 100%; height: auto; display: block; border-radius: 2px; }
.reference-guide p { margin: 0 0 1.1rem; }

.gallery-heading { text-align: center; margin: 0 0 clamp(1rem, 3vw, 1.6rem); }

@media (max-width: 700px) {
  .salty-banner { grid-template-columns: repeat(2, 1fr); }
  .reference-examples { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* ---------- Weddings page ---------- */
.wed-text { max-width: var(--prose-width); margin: clamp(2rem, 5vw, 3rem) auto; padding: 0 var(--gutter); }
.wed-text .script-heading { text-align: center; margin-bottom: 1.4rem; font-size: clamp(1.9rem, 4vw, 2.6rem); text-wrap: balance; }
.wed-text p { margin: 0 0 1.1rem; }
.wed-cta { text-align: center; margin-top: 1.6rem; }
.wed-gallery-section { max-width: var(--maxw); margin: clamp(1.5rem, 4vw, 3rem) auto clamp(2.5rem, 6vw, 4rem); padding: 0 var(--gutter); }
/* justified gallery: equal-height rows that fill the width (flex-grow/basis set
   per image from its aspect ratio); the filler keeps the last row from stretching */
.wed-gallery { display: flex; flex-wrap: wrap; gap: clamp(0.4rem, 1.2vw, 0.7rem); }
.wed-gallery-item { display: block; }
.wed-gallery-item img { width: 100%; height: auto; display: block; border-radius: 2px; transition: opacity 0.15s ease; }
.wed-gallery-item:hover img,
.wed-gallery-item:focus-visible img { opacity: 0.85; }
.wed-gallery-filler { flex: 1000000 0 0; height: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2.2rem, 5vw, 3.5rem) var(--gutter);
  text-align: center;
}
.footer-wordmark {
  color: var(--muted);
  font-size: clamp(1.2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.footer-wordmark .dot { color: var(--accent); }
.footer-contact { margin: 0 0 1.2rem; line-height: 1.7; }
.footer-contact a { color: var(--body); }
.footer-contact a:hover { color: var(--accent); }
.footer-social { justify-content: center; margin-bottom: 1rem; }
.footer-social img { border-radius: 50%; }
.copyright {
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas:
      "logo brand toggle"
      "nav  nav   nav";
    column-gap: 0.6rem;
  }
  .brand-logo img { width: 84px; }
  .brand-text { align-self: center; }
  .brand-text .wordmark { font-size: clamp(1.1rem, 4vw, 2.2rem); }
  .header-social { display: none; }
  .nav-toggle {
    grid-area: toggle;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; background: none; border: 0; cursor: pointer;
    justify-self: end; align-self: start;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  .primary-nav ul { display: none; flex-direction: column; align-items: center; gap: 1.1rem; padding: 0.5rem 0; }
  .primary-nav.open ul { display: flex; }

  .slide { flex-basis: 100%; padding: 0; }
  .intro { grid-template-columns: 1fr; }
  .intro-photo { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 420px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "wordmark toggle"
      "tagline  ."
      "nav      nav";
  }
  .brand-logo { display: none; }
  .brand-text { display: contents; }
  .wordmark { grid-area: wordmark; }
  .tagline { grid-area: tagline; }
  /* center on the wordmark row without growing it past the wordmark's height */
  .nav-toggle { align-self: center; margin-block: -0.75rem; }
}
