/* jericbeach.com shared styles for the town pages and 404. Copied from the homepage's inline CSS (index.html); keep them in step. */
:root {
  --ink: #14202B; --lake: #2F6F8F; --lake-deep: #1D4D66; --canola: #E8B931;
  --paper: #F6F8F7; --mist: #E4EBEE; --slate: #56677A; --line: #DCE3E7; --white: #fff;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--canola); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--canola); color: var(--ink); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-block; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: .98rem; text-decoration: none; padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent; background: var(--canola); color: var(--ink); }
.btn:hover { background: #F2C94A; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper); }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-lake { background: var(--lake); color: #fff; }
.btn-lake:hover { background: var(--lake-deep); }
.btn-small { font-size: .88rem; padding: .5em 1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px var(--canola); }
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--lake); }
.menu-btn { display: none; background: none; border: 0; padding: 6px 0; font: 700 1.15rem var(--display); color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .header-row { gap: 14px; }
  .header-row .btn-small { font-size: .82rem; padding: .5em .9em; }
  .header-row .btn { margin-left: auto; }
  .menu-btn { display: block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(20,32,43,.35); }
  .site-header.open nav { display: block; }
  .site-header nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-header nav a { display: block; padding: 12px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
}

/* Hero carousel: looping, rounded cards, a neighbour peeking on each side */
.hero { padding: 28px 0 8px; overflow: hidden; --slide-w: min(1040px, calc(100% - 2 * var(--gutter) - 72px)); --slide-gap: 18px; }
.slides { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide-w); gap: var(--slide-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px calc((100% - var(--slide-w)) / 2) 4px; scroll-padding-inline: calc((100% - var(--slide-w)) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; scroll-snap-stop: always; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 440px; }
.slide-copy { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.slide-copy h1, .slide-copy .slide-h { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 .4em; }
.slide-copy p { margin: 0 0 1.4em; max-width: 30em; font-size: 1.05rem; }
.slide-copy .price { font-family: var(--display); font-weight: 700; font-size: .95rem; margin: -0.6em 0 1.4em; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.slide-copy .slide-sub { display: none; }
.slide-media { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; }
.slide-lake { background: var(--lake); color: #fff; }
.slide-lake p { color: #DCEAF1; }
.slide-ink { background: var(--ink); color: #fff; }
.slide-ink p { color: #C3CFD8; }
.slide-canola { background: var(--canola); color: var(--ink); }
.slide-canola p { color: #3A3313; }
.stack { position: relative; width: 100%; aspect-ratio: 16 / 11; }
.stack img { position: absolute; border-radius: 8px; box-shadow: 0 20px 44px -16px rgba(0,0,0,.5); }
.stack .s-back { width: 78%; right: 0; top: 0; }
.stack .s-front { width: 78%; left: 0; bottom: 6%; }
.stack .s-phone { width: 23%; right: 4%; bottom: 0; border-radius: 12px; }

/* Visit note (family tech check-ins) */
.note { width: min(100%, 360px); background: #fff; color: var(--ink); border-radius: 16px; padding: 20px 22px; box-shadow: 0 24px 50px -20px rgba(20,32,43,.45); transform: rotate(1.2deg); font-size: .95rem; }
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--display); }
.note-head img { width: 34px; height: 34px; border-radius: 50%; }
.note-head b { display: block; font-size: .95rem; line-height: 1.1; }
.note-head span { font-size: .8rem; color: var(--slate); }
.note-head .ex { margin-left: auto; font-size: .72rem; background: var(--mist); color: var(--slate); padding: 2px 8px; border-radius: 99px; }
.note-title { font-family: var(--display); font-weight: 700; margin: 0 0 8px !important; color: var(--ink) !important; font-size: 1rem !important; }
.note ul { margin: 0 0 12px; padding: 0; list-style: none; }
.note li { padding: 6px 0 6px 24px; border-top: 1px solid var(--line); position: relative; line-height: 1.4; }
.note li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 5px; border-left: 2px solid var(--lake); border-bottom: 2px solid var(--lake); transform: rotate(-45deg); }
.note-foot { margin: 0 !important; font-style: italic; color: var(--slate) !important; font-size: .9rem !important; }

/* Social profile card */
.social { width: min(100%, 360px); background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); transform: rotate(-1.2deg); }
.social-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--display); }
.social-head img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--canola); }
.social-head b { display: block; font-size: .95rem; line-height: 1.1; }
.social-head span { font-size: .8rem; color: var(--slate); }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 8px; overflow: hidden; }
.social-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.carousel-nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--slide-w); margin: 14px auto 0; }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .2s; }
.dots button[aria-current="true"] { width: 22px; background: var(--lake); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 1rem; line-height: 1; }
.arrows button:hover { border-color: var(--ink); }
.towns { max-width: var(--slide-w); margin: 18px auto 0; font-size: .95rem; font-style: italic; color: var(--slate); }
@media (max-width: 760px) {
  /* Phone: near full-width cards with a sliver of each neighbour, short copy,
     one button, a big image underneath and centred dots. */
  .hero { padding-top: 16px; --slide-w: calc(100% - 40px); --slide-gap: 10px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 560px; border-radius: 22px; }
  .slide-copy { padding: 30px 26px 8px; justify-content: flex-start; }
  .slide-copy h1, .slide-copy .slide-h { font-size: 2.05rem; margin-bottom: .3em; }
  .slide-copy .slide-sub { display: block; font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.3; margin: 0 0 1.1em; }
  .slide-copy .slide-long { display: none; }
  .slide-lake .slide-sub, .slide-ink .slide-sub { color: #fff; }
  .slide-canola .slide-sub { color: var(--ink); }
  .slide .btn { font-size: 1.05rem; padding: .8em 1.5em; }
  .slide-media { padding: 12px 22px 30px; align-items: center; }
  .stack { width: 100%; }
  .note, .social { width: 100%; transform: rotate(1deg); }
  .note ul li:nth-child(n+4), .note-foot { display: none; }
  .note ul { margin-bottom: 0; }
  .social-grid img:nth-child(n+7) { display: none; }
  .slide { min-height: 0; }
  .carousel-nav { justify-content: center; margin-top: 16px; }
  .dots button { width: 10px; height: 10px; background: #B9D3E0; }
  .dots button[aria-current="true"] { width: 10px; background: var(--lake); }
  .arrows { display: none; }
  .towns { max-width: calc(100% - 2 * var(--gutter)); text-align: center; }
}

/* Section heads */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .more { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.center { text-align: center; }
.kicker { font-family: var(--display); font-weight: 500; color: var(--slate); margin: -6px 0 28px; }

/* Services: topic tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s; }
.tile:hover { border-color: var(--lake); background: #fff; }
.tile svg { width: 30px; height: 30px; stroke: var(--lake); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0; font-size: 1.02rem; }
.tile p { margin: 0; font-size: .95rem; line-height: 1.5; color: #2A3B4C; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile h3 .new { display: inline-block; vertical-align: 2px; margin-left: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; background: var(--canola); color: var(--ink); }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

/* Service tiles open a details panel (tiles.js) */
.tile { position: relative; cursor: pointer; }
.tile::after { content: "+"; position: absolute; top: 12px; right: 16px; font: 400 1.75rem/1 var(--display); color: var(--slate); transition: color .15s; }
.tile:hover::after { color: var(--lake); }
.tile-btn { all: unset; cursor: pointer; }
.tile-btn::before { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.tile-btn:focus-visible::before { outline: 3px solid var(--canola); outline-offset: 2px; }
.svc-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(20,32,43,.5); }
.svc-dialog::backdrop { background: rgba(20,32,43,.55); }
.svc-inner { position: relative; padding: 32px clamp(22px, 5vw, 36px) 28px; max-height: calc(100vh - 48px); overflow-y: auto; }
.svc-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.svc-close:hover { border-color: var(--ink); }
.svc-icon svg { width: 36px; height: 36px; stroke: var(--lake); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.svc-dialog h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); padding-right: 40px; }
.svc-body > p { color: #2A3B4C; margin: 0 0 14px; }
.svc-body ul { margin: 0 0 16px; padding: 0; list-style: none; }
.svc-body li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; line-height: 1.45; }
.svc-body li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 5px; border-left: 2px solid var(--lake); border-bottom: 2px solid var(--lake); transform: rotate(-45deg); }
.svc-body .tile-note { font-size: .95rem; color: var(--slate); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 480px) {
  .svc-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 88vh; }
  .svc-inner { max-height: 88vh; }
  .svc-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Calls band */
.calls { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 88px) 0; text-align: center; }
.calls h2 { color: #fff; }
.calls p.sub { color: #C3CFD8; margin: -4px 0 28px; font-family: var(--display); }
.quotes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto 30px; padding: 0; list-style: none; }
.quotes li { font-style: italic; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 9px 18px; font-size: .98rem; color: #E9EEF1; }

/* Work: latest-episodes pattern */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; margin-bottom: 32px; text-decoration: none; color: inherit; }
.thumb { position: relative; border-radius: 6px; overflow: hidden; background: var(--mist); }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .3s; }
a:hover .thumb img { transform: scale(1.02); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-family: var(--display); font-size: .76rem; font-weight: 500; padding: 3px 9px; border-radius: 4px; background: var(--mist); color: var(--lake-deep); }
.tag-hot { background: #FBEFC6; color: #6B5208; }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.025em; }
.feature p, .card p { color: #2A3B4C; margin: 0; }
.meta { font-family: var(--display); font-size: .85rem; color: var(--slate); margin-top: 10px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-bottom: 44px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.card { text-decoration: none; color: inherit; }
.card .thumb { margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.cards-3 .card p { font-size: .95rem; }
.sub-head { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin: 0 0 16px; letter-spacing: -0.02em; }
@media (max-width: 760px) { .feature, .cards-2 { grid-template-columns: 1fr; } .cards-3 { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About band */
.about { background: #0E161E; color: #fff; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.about-text { padding: clamp(56px, 8vw, 96px) 0; }
.about-text h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.about-text p { color: #C9D3DB; max-width: 34em; }
.about-photo { align-self: end; margin: 0; }
.about-photo img { filter: grayscale(1) contrast(1.08) brightness(.92); width: 100%; max-width: 440px; margin-left: auto; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-text { padding-bottom: 0; } .about-photo img { margin: 0 auto; max-width: 320px; } }

/* Colour bands */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.band p { max-width: 32em; }
.band-canola { background: var(--canola); color: var(--ink); }
.band-canola .object { border-radius: 6px; box-shadow: 0 30px 60px -22px rgba(20,32,43,.55); transform: rotate(-1.5deg); }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); font: 800 2rem/1 var(--display); color: var(--lake); display: block; margin-bottom: 10px; }
.steps p { margin: 0; font-size: .97rem; color: #2A3B4C; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { border-top: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.reviews-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.review-empty { border: 1px dashed #B9C6CE; border-radius: 6px; padding: 28px; background: var(--paper); }
.review-empty p { margin: 0 0 16px; color: #2A3B4C; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Contact and footer */
.contact { background: var(--paper); border-top: 1px solid var(--line); text-align: center; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact p { max-width: 36em; margin: 0 auto 24px; color: #2A3B4C; }
.contact .slide-actions { justify-content: center; }
.contact .small { font-size: .95rem; color: var(--slate); margin-top: 22px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 36px; }
.footer-cols h3 { font-size: .95rem; margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: .93rem; }
.footer-cols a:hover { color: var(--lake); }
.footer-cols .blurb { color: var(--slate); max-width: 22em; margin: 10px 0 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--slate); font-family: var(--display); font-size: .85rem; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > div:first-child { grid-column: 1 / -1; } }

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

/* Town pages and 404 */
.page-hero { padding: 28px 0 8px; }
.page-hero .slide { min-height: 400px; }
.page-hero .slide-copy p { display: block; }
.prose { max-width: 40em; }
.prose p { color: #2A3B4C; }
.nearby { padding: 0 0 clamp(40px, 6vw, 64px); background: var(--paper); text-align: center; font-family: var(--display); color: var(--slate); }
.nearby p { margin: 0; }
@media (max-width: 760px) {
  .page-hero { padding-top: 16px; }
  .page-hero .slide { min-height: 0; }
  .page-hero .slide-copy { padding: 30px 26px 8px; }
  .page-hero .slide-actions .btn-line { display: none; }
}
.slide-solo { grid-template-columns: 1fr; min-height: 340px; }
