/* To Cast A Fly - site styles
   Layout: fixed photo on the left (desktop), scrolling content on the right.
   On tablets and phones the photo becomes a full-width banner. */

:root {
  --ink: #1d2420;          /* headings */
  --text: #5d6661;         /* body copy (the original's soft grey, slightly darker for legibility) */
  --muted: #8a938e;
  --line: #e3e7e4;
  --bg: #ffffff;
  --bg-soft: #f4f6f4;
  --river: #1f3b33;        /* deep river green accent */
  --river-2: #2e5a4d;
  --sun: #c9a227;          /* subtle highlight, like light on the water */
  --radius: 10px;
  --side-width: 40%;
  /* Where the angler sits in flyfishing2.jpg (x y). Adjust if the photo changes. */
  --photo-focus: 22% 58%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--river-2); text-underline-offset: 3px; }
a:hover { color: var(--river); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.6em; }

/* ---------- Left photo ---------- */
.side-photo {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-width);
  overflow: hidden;
  background: #222;
}
.side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The original centred a wide photo in a tall column, cutting the angler off.
     Anchor on the angler instead. */
  object-position: var(--photo-focus);
}

/* ---------- Page column ---------- */
.page { margin-left: var(--side-width); min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: .4rem .65rem; border-radius: 6px;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav .nav-cta { background: var(--river); color: #fff; margin-left: .35rem; }
.site-nav .nav-cta:hover { background: var(--river-2); color: #fff; }
.menu-toggle { display: none; }

main, .footer { padding: 0 clamp(1rem, 4vw, 3.5rem); }
.section, .hero { max-width: 46rem; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.6rem);
  font-weight: 800; letter-spacing: -.01em; margin-bottom: .3em;
}
.hero .lede { font-size: 1.1rem; color: var(--ink); margin: 0; }
.hero .sub { margin: .2rem 0 0; color: var(--muted); }
.hero-photo { display: none; margin: 1.75rem 0 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-primary { background: var(--river); color: #fff; }
.btn-primary:hover { background: var(--river-2); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--river-2); color: var(--river); }

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; border-top: 1px solid var(--line); text-align: left; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
ul.ticks li { position: relative; padding-left: 1.9rem; margin: .35rem 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: .2rem; top: .55em;
  width: .9rem; height: .5rem;
  border-left: 2.5px solid var(--river-2); border-bottom: 2.5px solid var(--river-2);
  transform: rotate(-45deg);
}

ul.chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
ul.chips li {
  background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .92rem;
}

blockquote {
  margin: 1.5rem 0 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--sun); background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}

/* ---------- Gallery ---------- */
.gallery { columns: 2 14rem; column-gap: .75rem; }
.gallery a { display: block; margin-bottom: .75rem; break-inside: avoid; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.03); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(10, 16, 13, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #e9ece9; margin-top: .75rem; font-size: .95rem; }
.lightbox button {
  position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Email check dialog ---------- */
.email-check {
  border: 0; border-radius: 14px; padding: 2rem 1.75rem 1.5rem;
  width: min(26rem, calc(100vw - 2rem)); color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.email-check::backdrop { background: rgba(10, 16, 13, .6); }
.email-check h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.ec-close {
  position: absolute; top: .6rem; right: .7rem; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.ec-tick {
  display: flex; align-items: center; gap: .75rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
  background: var(--bg-soft); color: var(--ink); font-weight: 600;
}
.ec-tick input { width: 1.4rem; height: 1.4rem; accent-color: var(--river); }
.ec-address { font-size: 1.2rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; margin: .25rem 0 1rem; }
.ec-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ec-actions .btn { font-family: inherit; cursor: pointer; background-color: transparent; }
.ec-actions .btn-primary { background: var(--river); }
.ec-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; background: #fff;
}
a.contact-card:hover { border-color: var(--river-2); }
.contact-card svg { width: 1.6rem; height: 1.6rem; fill: var(--river-2); margin-bottom: .35rem; }
.contact-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card .value { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-card .value a { color: inherit; text-decoration: none; }
.contact-card .value a:hover { text-decoration: underline; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Links ---------- */
.link-list { padding-left: 1.2rem; }
.link-list li { margin: .7rem 0; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding-top: 2.5rem; padding-bottom: 3rem;
  background: var(--bg-soft); border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.footer p { margin: .4rem 0; }
.footer .btn { margin-bottom: .75rem; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1199px) {
  .side-photo { display: none; }
  .page { margin-left: 0; }
  .hero-photo { display: block; }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; padding: 0 .6rem;
    background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .5rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-cta { margin: .75rem 0 0; text-align: center; border-radius: 999px; border: 0; }

  .hero { padding-top: 2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gallery { columns: 2; column-gap: .5rem; }
  .gallery a { margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
