/* ============================================================
   Covey & Coast: brand styles
   Palette drawn from the logo: forest-green ink on cream,
   with sand neutrals and a restrained coastal blue accent.
   ============================================================ */

:root {
  --green:       #23392b;   /* logo ink */
  --green-deep:  #182a1f;
  --green-soft:  #3d5a48;
  --cream:       #f6f2e8;   /* page ground */
  --cream-deep:  #efe9da;
  --sand:        #d9d0bc;   /* borders, rules */
  --driftwood:   #8a8371;
  --ink:         #232a24;   /* body text */
  --ink-soft:    #5a6158;
  --coast:       #5b7a86;   /* muted coastal blue accent */
  --white:       #fdfcf9;

  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans:  "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-1: 0 1px 3px rgba(24, 42, 31, 0.10);
  --shadow-2: 0 4px 6px rgba(24, 42, 31, 0.07), 0 2px 4px rgba(24, 42, 31, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.2;
}

h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 700; letter-spacing: 0.5px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 20px; font-weight: 700; }

.amp { font-style: italic; font-weight: 400; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }

.overline {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coast);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-sub { color: var(--ink-soft); }

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
}
.btn:focus-visible { outline: 2px solid var(--coast); outline-offset: 2px; }

.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: rgba(253, 252, 249, 0.12); color: var(--white); border-color: rgba(253, 252, 249, 0.65); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(253, 252, 249, 0.22); transform: translateY(-1px); }

.hero.no-photo .btn-ghost { color: var(--green); border-color: var(--green); background: transparent; }
.hero.no-photo .btn-ghost:hover { background: rgba(35, 57, 43, 0.06); }

.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============ Nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}
.nav-lockup {
  position: relative;
  display: block;
  width: 184px;
  height: 48px;
  overflow: hidden;
  background: var(--cream);
}
.nav-lockup::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--cream);
  z-index: 1;
}
.nav-lockup::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 24px;
  height: 18px;
  background: var(--cream);
}
.nav-logo {
  width: 184px;
  height: auto;
  transform: translateY(-5px);
  mix-blend-mode: multiply;
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--coast); }

.nav-cta {
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 8px 18px;
  color: var(--green) !important;
  transition: all 150ms ease;
}
.nav-cta:hover { background: var(--green); color: var(--cream) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green); margin: 5px 0; transition: transform 150ms ease, opacity 150ms ease; }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--green);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 42, 31, 0.25), rgba(24, 42, 31, 0.55));
}

.hero-inner { position: relative; z-index: 1; padding: 96px 24px; max-width: 760px; }
.hero-inner h1 { color: var(--white); }
.hero-inner h1 .amp {
  color: var(--white);
  font-style: normal;
  font-weight: 700;
}
.hero-inner .overline { color: var(--cream-deep); }
.hero-sub { font-size: 19px; color: var(--cream-deep); max-width: 560px; margin: 24px auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Cream fallback when no hero photo is present yet */
.hero.no-photo { background: var(--cream); border-bottom: 1px solid var(--sand); }
.hero.no-photo .hero-media { display: none; }
.hero.no-photo h1 { color: var(--green); }
.hero.no-photo .overline { color: var(--coast); }
.hero.no-photo .hero-sub { color: var(--ink-soft); }

.hero-rule {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  background: var(--coast);
}

/* ============ Frames & placeholders ============ */

.frame {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--sand);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }

.frame .ph-label { display: none; }

.frame.placeholder {
  min-height: 100%;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(35, 57, 43, 0.035) 14px 15px),
    var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame.placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--sand);
  pointer-events: none;
}
.frame.placeholder .ph-label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--driftwood);
  padding: 24px;
}
.frame.placeholder .ph-label em {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--driftwood);
  opacity: 0.8;
}

.frame-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

/* ============ About ============ */

.about { background: var(--white); border-block: 1px solid var(--sand); }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.about-photo .frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow-2); }
.about-photo .frame img { object-position: 76% center; }

.about-copy p + p { margin-top: 16px; }
.about-copy > p:not(.overline) { color: var(--ink-soft); }

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; }
.about-tags li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--cream);
}

/* ============ Portfolio ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery .frame { cursor: zoom-in; }
.gallery .frame:hover img { transform: scale(1.04); }
.gallery .frame.placeholder { cursor: default; }
.gallery .focus-water-portrait img { object-position: 52% center; }
.gallery .focus-skiff-portrait img { object-position: 60% center; }
.gallery .focus-window img { object-position: 62% center; }

.g-tall { grid-row: span 2; }
.g-wide, .g-wide-desktop { grid-column: span 2; }

.gallery-note { margin-top: 32px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.gallery-note a { color: var(--coast); font-weight: 600; text-decoration: none; }
.gallery-note a:hover { text-decoration: underline; }

/* ============ Prints ============ */

.prints { background: var(--green); }
.prints .overline { color: #a9c0b3; }
.prints h2 { color: var(--white); }
.prints .section-sub { color: var(--cream-deep); }

.prints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.print-card { text-align: center; }
.print-card h3 { color: var(--white); margin-top: 20px; }

.print-mat {
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-2);
}
.print-mat .frame { aspect-ratio: 4 / 5; border: none; }

.print-meta { font-size: 14px; color: var(--cream-deep); margin: 8px 0 16px; }

.prints .btn-outline { color: var(--cream); border-color: rgba(246, 242, 232, 0.6); }
.prints .btn-outline:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }

/* ============ Booking ============ */

.book-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: start;
}

.book-copy > p:not(.overline) { color: var(--ink-soft); }

.book-list { list-style: none; margin: 24px 0 32px; }
.book-list li {
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--sand);
  color: var(--ink-soft);
  position: relative;
}
.book-list li:first-child { border-top: 1px solid var(--sand); }
.book-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 24px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coast);
}
.book-list strong { color: var(--ink); }

.book-direct p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.contact-line {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--green);
  text-decoration: none;
  padding: 2px 0;
}
.contact-line:hover { color: var(--coast); }

.book-form {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-1);
}

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--driftwood); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--driftwood); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coast);
  box-shadow: 0 0 0 3px rgba(91, 122, 134, 0.18);
  background: var(--white);
}
.field textarea { resize: vertical; }

.form-note { margin-top: 16px; font-size: 13px; color: var(--driftwood); text-align: center; }

/* ============ Footer ============ */

.site-footer {
  background: var(--green-deep);
  color: var(--cream-deep);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.15);
}

.footer-lockup {
  width: min(100%, 244px);
  padding: 8px 12px;
  margin-bottom: 18px;
  background: var(--cream);
  border: 1px solid rgba(246, 242, 232, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.footer-lockup img { width: 100%; mix-blend-mode: multiply; }
.footer-tag { max-width: 244px; font-size: 14px; color: #a9c0b3; font-style: italic; }

.footer-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9c0b3;
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 15px;
  color: var(--cream-deep);
  text-decoration: none;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-fine {
  text-align: center;
  font-size: 13px;
  color: #7e9488;
  padding-top: 32px;
}

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 42, 31, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 40px;
  line-height: 1;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms ease;
}
.lightbox-close:hover { color: var(--white); }

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .section { padding: 64px 0; }

  .about-grid, .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 420px; margin: 0 auto; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .g-wide-desktop { grid-column: span 1; }

  .prints-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav { padding-block: 8px; }
  .nav-lockup { width: 148px; height: 39px; }
  .nav-lockup::after { height: 6px; }
  .nav-logo { width: 148px; transform: translateY(-3px); }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-cta { border: none; padding: 12px 24px; }
  .nav-cta:hover { background: transparent; color: var(--coast) !important; }

  .hero { min-height: 66vh; }
  .hero-actions .btn { width: 100%; }

  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-wide { grid-column: span 1; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .book-form { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
