/* Pest Control Virginia Beach. Palette: dune grass, Atlantic grey-blue, boardwalk sand, buoy red.
   Bentham for headings, Shanti for text. Class names follow the bay, the boardwalk and the marsh. */

@font-face { font-family: "Bentham"; src: url("/assets/fonts/bentham-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Shanti"; src: url("/assets/fonts/shanti-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --sand: #F6F0E2;          /* boardwalk sand, page */
  --plank: #E9DCC2;         /* boardwalk plank */
  --plank-seam: #D3C09C;
  --shell: #FFFCF5;         /* cards */
  --ink: #1E2B34;           /* text, 12.7:1 on sand */
  --muted: #4F5B61;         /* secondary text, 6.2:1 on sand */
  --atlantic: #1F3443;      /* header, headings */
  --deep: #172833;          /* footer */
  --sea: #2F4B5E;
  --link: #2D5A73;          /* 6.5:1 on sand */
  --dune: #4A6B37;          /* dune grass, bars and rules */
  --dune-ink: #3E5C2E;      /* dune grass for small text, 5.4:1 on plank */
  --dune-pale: #E4E9D6;
  --mist: #DCE6EB;
  --mist-pale: #E6EEF2;
  --buoy: #B5321F;          /* buoy red: white text on it is 6.1:1 */
  --buoy-dark: #942716;
  --glow: #F2CF8C;          /* lamp light on dark grounds, 8.6:1 on Atlantic */
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: "Shanti", "Trebuchet MS", "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.62;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { font-family: "Bentham", Georgia, "Times New Roman", serif; font-weight: 400; color: var(--atlantic); line-height: 1.18; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); margin: 0 0 .9rem; letter-spacing: -.005em; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 0 0 1.1rem; }
h3 { font-size: 1.28rem; margin: 1.6rem 0 .45rem; }
p { margin: .85rem 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--atlantic); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--atlantic); }

.skip-sand { position: absolute; left: -9999px; top: .6rem; z-index: 20; background: var(--glow); color: var(--atlantic); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-sand:focus { left: 1rem; }

.bayframe { max-width: 74rem; margin: 0 auto; padding-left: clamp(1rem, 4vw, 2rem); padding-right: clamp(1rem, 4vw, 2rem); }

/* ------------------------------------------------------------------ phone button (a buoy with a white band) */
.neptunecall {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--buoy); color: #fff; text-decoration: none;
  font-size: 1.08rem; letter-spacing: .02em; padding: .68rem 1.3rem .68rem .8rem; border-radius: 999px;
  box-shadow: 0 3px 0 var(--buoy-dark); white-space: nowrap; font-weight: 700;
}
.neptunecall:hover { background: var(--buoy-dark); color: #fff; }
.neptunecall-ring { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 3px solid #fff; background: var(--buoy); flex: none; box-shadow: inset 0 0 0 2px var(--buoy), inset 0 0 0 5px #fff; }
.neptunecall-lg { font-size: 1.32rem; padding: .85rem 1.7rem .85rem 1rem; }
.neptunecall-lg .neptunecall-ring { width: 1.4rem; height: 1.4rem; }
.neptunecall-sm { font-size: .98rem; padding: .45rem 1rem .45rem .6rem; box-shadow: none; }
.neptunecall-ghost { background: transparent; color: var(--glow); border: 2px solid var(--glow); box-shadow: none; }
.neptunecall-ghost:hover { background: rgba(242, 207, 140, .12); color: var(--glow); }
.neptunecall-ghost .neptunecall-ring { border-color: var(--glow); background: transparent; box-shadow: inset 0 0 0 4px transparent; }

/* ------------------------------------------------------------------ header: Cape Henry */
.capehenry { background: var(--atlantic); border-bottom: 4px solid var(--buoy); position: relative; z-index: 5; }
.capehenry-row { display: flex; align-items: center; gap: 1.4rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.oldcape-home { display: inline-flex; align-items: center; gap: .65rem; color: var(--sand); text-decoration: none; }
.oldcape-home:hover { color: var(--sand); }
.oldcape-home svg { width: 44px; height: 44px; flex: none; }
.oldcape-word { display: flex; flex-direction: column; line-height: 1.05; }
.oldcape-small { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--glow); }
.oldcape-big { font-family: "Bentham", Georgia, serif; font-size: 1.5rem; }
.oldcape-top { margin-right: .4rem; }
.oldcape-foot { margin-bottom: .4rem; }
.oldcape-foot .oldcape-big { font-size: 1.35rem; }
.rudee-nav { flex: 1; }
.rudee-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: .3rem 1.25rem; flex-wrap: wrap; }
.rudee-nav a { color: var(--sand); text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.rudee-nav a:hover { color: #fff; border-bottom-color: var(--glow); }
.capehenry-call { margin-left: auto; }
.lifeguard-toggle { display: none; align-items: center; gap: .5rem; background: transparent; color: var(--sand); border: 2px solid rgba(246, 240, 226, .55); border-radius: 8px; padding: .4rem .7rem; font: inherit; font-size: .95rem; cursor: pointer; }
.lifeguard-bars, .lifeguard-bars::before, .lifeguard-bars::after { display: block; width: 18px; height: 2px; background: var(--sand); position: relative; content: ""; }
.lifeguard-bars::before { position: absolute; top: -6px; }
.lifeguard-bars::after { position: absolute; top: 6px; }

/* ------------------------------------------------------------------ breadcrumb: the pier walk */
.lynnpier { background: var(--plank); border-bottom: 1px solid var(--plank-seam); font-size: .9rem; }
.lynnpier ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; padding-top: .55rem; padding-bottom: .55rem; margin: 0 auto; }
.lynnpier li + li::before { content: "/"; color: var(--muted); margin-right: .5rem; }
.lynnpier [aria-current] { color: var(--muted); }

/* ------------------------------------------------------------------ homepage opener */
.chicksbeach { padding: 2.8rem 0 2.6rem; background: linear-gradient(180deg, var(--sand) 0%, var(--sand) 78%, var(--dune-pale) 100%); }
.chicksbeach-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 2.6rem; align-items: center; }
.chicksbeach-kicker, .backbay-kicker { color: var(--dune-ink); text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; margin: 0 0 .7rem; }
.chicksbeach-copy { max-width: 36rem; }
.chicksbeach-lead { font-size: 1.18rem; }
.chicksbeach-act { margin-top: 1.5rem; }
.chicksbeach-act p { font-size: .95rem; color: var(--muted); max-width: 30rem; }
.chicksbeach-art .dunedraw { box-shadow: 10px 10px 0 var(--plank); }

/* ------------------------------------------------------------------ figures: drawings and pictures */
.dunedraw { margin: 0; background: var(--mist); border: 1px solid #C3D2DA; border-radius: 18px; padding: 1rem 1rem .8rem; }
.dunedraw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dunedraw-scroll svg { display: block; width: 100%; height: auto; }
.dunedraw-hint { display: none; margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.dunedraw-cap { font-size: .92rem; color: var(--muted); margin-top: .7rem; padding-top: .55rem; border-top: 1px dashed #A9BCC7; }
.baysnap { margin: 0; }
.baysnap img { width: 100%; border-radius: var(--radius); }
.baysnap-wide img, .baysnap-classic img { border-radius: var(--radius); }
.baysnap-tall img { border-radius: 200px 200px var(--radius) var(--radius); }
.baysnap-square img { border-radius: 50%; }
.baysnap-pano img { border-radius: 6px; }
.baysnap .dunedraw-hint { display: none; margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.dunedraw-cap { border-top: 0; padding-top: 0; }

/* ------------------------------------------------------------------ inner page opener: the backbay */
.backbay {
  padding: 2.5rem 0 2.2rem;
  background: var(--plank) repeating-linear-gradient(180deg, transparent 0 54px, rgba(211, 192, 156, .55) 54px 56px);
}
.backbay-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.backbay-solo { grid-template-columns: minmax(0, 50rem); }
.backbay-copy { min-width: 0; }
.backbay-lead { font-size: 1.16rem; max-width: 44rem; }
.backbay-act { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.3rem; }
.backbay-act p { margin: 0; font-size: .95rem; max-width: 26rem; color: var(--ink); }
.tidegauge { background: var(--shell); border: 1px solid var(--plank-seam); border-left: 6px solid var(--dune); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem .6rem; }
.tidegauge-head { font-family: "Bentham", Georgia, serif; font-size: 1.25rem; color: var(--atlantic); margin: 0 0 .4rem; }
.tidegauge dl { margin: 0; }
.tidegauge dl > div { padding: .5rem 0; border-top: 1px dotted var(--plank-seam); }
.tidegauge dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dune-ink); }
.tidegauge dd { margin: .1rem 0 0; font-size: .98rem; }

/* ------------------------------------------------------------------ sections: boardwalk rows */
.plankrow { padding: 3rem 0; }
.plankrow + .plankrow { border-top: 7px solid transparent; border-image: repeating-linear-gradient(90deg, var(--plank-seam) 0 46px, transparent 46px 50px) 7; }
.plankrow-dune { background: var(--dune-pale); }
.plankrow-mist { background: var(--mist-pale); }
.plankrow-lead { font-size: 1.08rem; max-width: 46rem; margin-top: -.3rem; }
.saltcopy { max-width: 46rem; }
.saltcopy ul, .saltcopy ol { padding-left: 1.3rem; }
.saltcopy li { margin: .5rem 0; }
.saltcopy ul li::marker { color: var(--dune); }
.saltcopy ol li::marker { color: var(--buoy); font-family: "Bentham", Georgia, serif; }
.saltcopy h3:first-child { margin-top: .2rem; }
.tidenote { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--dune); padding-left: .8rem; }
.saltsplit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.6rem; align-items: start; }
.saltbelow { margin-top: 1.6rem; max-width: 62rem; }
.saltsplit-flip > figure { order: -1; }

/* ------------------------------------------------------------------ cards: buoys on a line */
.lesnerline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.lesnercard a { display: block; height: 100%; background: var(--shell); border: 1px solid var(--plank-seam); border-top: 6px solid var(--dune); border-radius: var(--radius); padding: 1rem 1.15rem 1.15rem; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.lesnercard:nth-child(even) a { border-top-color: var(--sea); }
.lesnercard:nth-child(4n+3) a { border-top-color: var(--buoy); }
.lesnercard a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--plank); }
.lesnercard-name { display: block; font-family: "Bentham", Georgia, serif; font-size: 1.3rem; color: var(--atlantic); }
.lesnercard-text { display: block; margin-top: .35rem; font-size: .96rem; color: var(--muted); }

/* ------------------------------------------------------------------ numbered steps: channel markers */
.inletmarks { list-style: none; margin: 0; padding: 0; counter-reset: mark; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1.1rem; }
.inletmarks li { counter-increment: mark; position: relative; background: var(--shell); border: 1px solid var(--plank-seam); border-radius: var(--radius); padding: 3.3rem 1.1rem 1rem; }
.inletmarks li::before {
  content: counter(mark); position: absolute; top: 1rem; left: 1.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--buoy); color: #fff; display: grid; place-items: center; font-family: "Bentham", Georgia, serif; font-size: 1.05rem;
  box-shadow: 0 0 0 3px var(--shell), 0 0 0 5px var(--buoy);
}
.inletmarks h3 { margin: 0 0 .35rem; font-size: 1.18rem; }
.inletmarks p { margin: 0; font-size: .98rem; }

/* ------------------------------------------------------------------ questions: fathoms */
.baymouthqs { max-width: 50rem; border-top: 1px solid var(--plank-seam); }
.baymouthq { border-bottom: 1px solid var(--plank-seam); }
.baymouthq summary { list-style: none; cursor: pointer; position: relative; padding: 1rem 2.4rem 1rem 0; font-family: "Bentham", Georgia, serif; font-size: 1.17rem; color: var(--atlantic); }
.baymouthq summary::-webkit-details-marker { display: none; }
.baymouthq summary::after { content: "+"; position: absolute; right: .4rem; top: .75rem; font-family: "Shanti", sans-serif; font-size: 1.5rem; color: var(--buoy); }
.baymouthq[open] summary::after { content: "\2212"; }
.baymouthq-body p { margin: 0 0 1.1rem; }

/* ------------------------------------------------------------------ signs table: the marsh ledger */
.marshledger-wrap { margin-top: .4rem; }
.marshledger { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .96rem; background: var(--shell); border: 1px solid var(--plank-seam); border-radius: var(--radius); overflow: hidden; }
.marshledger thead th { background: var(--atlantic); color: var(--sand); text-align: left; font-family: "Bentham", Georgia, serif; font-weight: 400; font-size: 1.02rem; padding: .75rem .85rem; }
.marshledger tbody th, .marshledger tbody td { padding: .8rem .85rem; vertical-align: top; border-top: 1px solid var(--plank-seam); text-align: left; }
.marshledger tbody th { font-weight: 400; color: var(--atlantic); width: 27%; }
.marshledger tbody tr:nth-child(even) { background: #F8F3E8; }

/* ------------------------------------------------------------------ link lists: the wake */
.wakelinks { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
.wakelinks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--plank-seam); }
.wakelinks a { font-family: "Bentham", Georgia, serif; font-size: 1.18rem; }
.wakelinks span { color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ contact */
.seashoregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.seashoregrid-cell { background: var(--shell); border: 1px solid var(--plank-seam); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.seashoregrid-cell h3 { margin-top: 0; }

/* ------------------------------------------------------------------ the offer's notice */
.offerwrack { font-size: .86rem; line-height: 1.55; padding: .95rem 1.1rem; border: 1px solid var(--plank-seam); border-radius: 10px; background: var(--shell); max-width: 54rem; }
.offerwrack-foot { background: rgba(246, 240, 226, .06); border-color: rgba(246, 240, 226, .3); color: var(--sand); margin-top: 2rem; max-width: none; }

/* ------------------------------------------------------------------ call band: the flare */
.flarerow { background: var(--atlantic); color: var(--sand); padding: 2.6rem 0; border-top: 8px solid transparent; border-image: repeating-linear-gradient(90deg, var(--buoy) 0 30px, var(--sand) 30px 60px) 8; }
.flarerow-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; }
.flarerow h2 { color: var(--sand); margin-bottom: .5rem; }
.flarerow p { margin: 0; max-width: 40rem; }
.flarerow-call p { color: var(--glow); font-size: .95rem; margin-top: .8rem; }

/* ------------------------------------------------------------------ footer: the dunes */
.sandbridgefoot { background: var(--deep); color: var(--sand); padding: 3rem 0 2rem; font-size: .96rem; }
.sandbridgefoot a { color: var(--sand); }
.sandbridgefoot a:hover { color: var(--glow); }
.sandbridgefoot a.neptunecall-ghost { color: var(--glow); }
.sandbridgefoot-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.sandbridgefoot h2 { font-family: "Shanti", sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--glow); margin: .3rem 0 .8rem; }
.sandbridgefoot ul { list-style: none; margin: 0; padding: 0; }
.sandbridgefoot li { margin: .38rem 0; }
.sandbridgefoot-about p { max-width: 26rem; }
.sandbridgefoot-office { color: #D9D2C3; }
.sandbridgefoot-fine { color: #D9D2C3; font-size: .86rem; margin-top: 1.2rem; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 980px) {
  .chicksbeach-grid, .backbay-grid, .saltsplit, .flarerow-grid { grid-template-columns: minmax(0, 1fr); }
  .saltsplit-flip > figure { order: 0; }
  .sandbridgefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tidegauge { max-width: 34rem; }
}
@media (max-width: 860px) {
  .capehenry-row { gap: .7rem; }
  .lifeguard-toggle { display: inline-flex; }
  .capehenry-call { margin-left: auto; }
  .rudee-nav { order: 5; flex-basis: 100%; }
  .rudee-nav ul { display: none; flex-direction: column; gap: 0; padding: .3rem 0 .5rem; }
  .rudee-nav ul.rudee-open { display: flex; }
  .rudee-nav li { border-top: 1px solid rgba(246, 240, 226, .18); }
  .rudee-nav a { display: block; padding: .7rem 0; }
}
@media (max-width: 760px) {
  .dunedraw { padding: .7rem .6rem .7rem; }
  .dunedraw-scroll svg { min-width: 640px; }
  .dunedraw-hint { display: block; }
  .marshledger, .marshledger tbody, .marshledger tr, .marshledger th, .marshledger td { display: block; width: auto; }
  .marshledger { border: 0; background: transparent; }
  .marshledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .marshledger tbody tr { background: var(--shell); border: 1px solid var(--plank-seam); border-radius: var(--radius); margin-bottom: 1rem; padding: .5rem .95rem .6rem; }
  .marshledger tbody tr:nth-child(even) { background: var(--shell); }
  .marshledger tbody th, .marshledger tbody td { border: 0; padding: .35rem 0; width: auto; }
  .marshledger tbody th::before, .marshledger tbody td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dune-ink); font-family: "Shanti", sans-serif; }
  .marshledger tbody th { font-family: "Bentham", Georgia, serif; font-size: 1.08rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .oldcape-big { font-size: 1.2rem; }
  .oldcape-small { font-size: .62rem; letter-spacing: .16em; }
  .oldcape-home svg { width: 36px; height: 36px; }
  .lifeguard-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .neptunecall-sm { font-size: .9rem; padding: .4rem .75rem .4rem .5rem; }
  .neptunecall-sm .neptunecall-ring { display: none; }
  .neptunecall-lg { font-size: 1.18rem; padding: .8rem 1.3rem .8rem .9rem; }
  .sandbridgefoot-cols { grid-template-columns: minmax(0, 1fr); }
  .plankrow { padding: 2.3rem 0; }
  .chicksbeach { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .lesnercard a { transition: none; } }
