/* ==========================================================================
   Oldcourt Fresh Seafood
   ========================================================================== */
:root {
  --navy: #0e2a47;
  --navy-soft: #3b4f66;
  --teal: #3a8a85;
  --teal-dark: #2d6f6b;
  --mint: #e8f3f2;
  --ice: #f4f7fa;
  --white: #ffffff;
  --line: #d8e3e6;
  --text: #24364a;
  --muted: #5d6e7f;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.08; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; margin-left: auto; margin-right: auto; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 8px 20px rgba(58, 138, 133, .3); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-light { background: rgba(255,255,255,.9); color: var(--navy); border-color: rgba(14,42,71,.12); }
.btn-light:hover { background: var(--white); }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(14,42,71,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 68px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--navy); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--navy); transform: scaleX(0); transition: transform .2s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: var(--navy); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* Drop a photo at images/hero.jpg and it will appear automatically on top of this sea scene. */
  background:
    url("../images/hero.webp") center / cover no-repeat,
    radial-gradient(ellipse 22% 30% at 70% 62%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 60% 14% at 70% 62%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%),
    repeating-linear-gradient(176deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,.07) 9px 11px),
    linear-gradient(180deg, #f6f8f9 0%, #eef2f4 56%, #c9d6de 61.5%, #8fa7b8 62%, #6d8aa0 74%, #4e6c85 88%, #3d5a73 100%);
}
.hero-content { padding-top: clamp(48px, 8vh, 96px); padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.9rem, 8.5vw, 6.6rem); font-weight: 600; margin-bottom: .3em; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 30em; color: var(--navy-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.open-status { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; font-weight: 500; padding: .35em .95em; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); margin-bottom: 24px; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa7b3; }
.open-status.is-open::before { background: #2fa36b; box-shadow: 0 0 0 4px rgba(47,163,107,.18); }

/* ---- Ticker ---- */
.ticker { overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.25); background: rgba(14,42,71,.18); backdrop-filter: blur(2px); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--white); white-space: nowrap; padding-right: 1.1em; }
.ticker-track span::after { content: "•"; padding-left: 1.1em; opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- About ---- */
.about { background: var(--mint); padding: clamp(64px, 10vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text > p { font-size: 1.12rem; color: var(--navy-soft); max-width: 34em; }
.pillars { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.pillars li { display: grid; gap: 2px; padding-left: 22px; border-left: 2px solid var(--teal); }
.pillars strong { color: var(--navy); font-weight: 600; }
.pillars span { color: var(--muted); font-size: .97rem; }
.about-media { margin: 0; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---- Placeholder ---- */
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ice); }
.placeholder svg { width: 34%; max-width: 110px; fill: none; stroke: #5d6e7f; stroke-width: 1.6; stroke-linejoin: round; }
.placeholder-tall { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--white); }

/* ---- Selection ---- */
.selection { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.carousel { position: relative; }
.products {
  list-style: none; margin: 0; padding: 4px 4px 20px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.products::-webkit-scrollbar { display: none; }
.product { scroll-snap-align: start; }
.product a { display: block; text-decoration: none; }
.product-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--ice); margin-bottom: 16px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product a:hover .product-media img { transform: scale(1.05); }
.product a:hover .placeholder { background: #ebf0f4; }
.tag { position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--teal-dark); font-size: .78rem; font-weight: 600; padding: .3em .85em; border-radius: 999px; box-shadow: 0 2px 8px rgba(14,42,71,.08); }
.product-name { font-family: var(--sans); font-weight: 500; font-size: 1.06rem; color: var(--text); margin: 0 0 4px; }
.product-price { color: var(--muted); margin: 0 0 6px; font-size: 1.02rem; }
.product-cta { font-size: .92rem; font-weight: 600; color: var(--teal); opacity: 0; transform: translateX(-4px); display: inline-block; transition: opacity .2s, transform .2s; }
.product a:hover .product-cta, .product a:focus-visible .product-cta { opacity: 1; transform: none; }
.carousel-btn {
  position: absolute; top: calc(50% - 60px); z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 4px;
}
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.note { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---- Order channels ---- */
.order { background: var(--navy); padding: clamp(64px, 9vw, 110px) 0; color: #d7e2ea; }
.order h2, .order h3 { color: var(--white); }
.order .eyebrow { color: #8ccac4; }
.order .lead { color: #b9c8d4; }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.channel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 36px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.channel p { flex: 1; color: #b9c8d4; }
.channel-icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(58,138,133,.25); display: grid; place-items: center; margin-bottom: 22px; }
.channel-icon svg { width: 26px; height: 26px; fill: none; stroke: #9fd6d0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Visit ---- */
.visit { padding: clamp(64px, 9vw, 110px) 0; background: var(--mint); }
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
address { font-style: normal; font-size: 1.12rem; color: var(--navy-soft); margin-bottom: 10px; }
.link { color: var(--teal-dark); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.visit h3 { margin-top: 28px; font-size: 1.3rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; margin-bottom: 30px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--navy); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--ice); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--white); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 160px; height: auto; }
.site-footer h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--navy); }
.site-footer a:hover { color: var(--teal); }
.site-footer p { color: var(--muted); margin-bottom: .6em; }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .channels { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav ul {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 24px 24px; box-shadow: 0 12px 24px rgba(14,42,71,.1); display: none;
  }
  .nav ul.open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 16px; width: 100%; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
  .products { grid-auto-columns: calc((100% - 16px) / 2.15); gap: 16px; }
  .carousel-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { height: 56px; }
  .header-inner { height: 72px; }
  .nav ul { top: 72px; }
  .hero { min-height: 640px; }
  .hero-actions .btn { width: 100%; }
  .products { grid-auto-columns: 72%; }
  .section-head .btn { width: 100%; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}
