/* ============================================================
   Coastal Cafe — bright, airy, photo-forward daytime theme
   Accent comes from config: var(--accent)
   ============================================================ */

:root {
  --accent: #e98a5b; /* fallback; overridden inline from config */
  --ink: #2c3a40;
  --ink-soft: #5a6b71;
  --paper: #ffffff;
  --cream: #fbf8f3;
  --seafoam: #e8f5f0;
  --seafoam-2: #d7ede6;
  --seafoam-line: #cfe6dd;
  --sky: #f3fafb;
  --shadow: 0 14px 38px rgba(44, 58, 64, 0.10);
  --shadow-sm: 0 6px 18px rgba(44, 58, 64, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

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

a { color: var(--accent); text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(0,0,0,.20); }

.btn-ghost {
  background: rgba(255,255,255,.85);
  color: var(--ink);
  border-color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; }

.btn-soft {
  background: var(--seafoam);
  color: var(--ink);
  border-color: var(--seafoam-line);
  font-size: 15px;
  padding: 10px 20px;
}
.btn-soft:hover { background: var(--seafoam-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--seafoam-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.brand-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .22s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--seafoam);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.hero-slides .hero-slide:only-child { opacity: 1; animation: none; }
@keyframes heroFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.45) 75%, rgba(255,255,255,.85) 100%),
    linear-gradient(90deg, rgba(44,58,64,.30), rgba(44,58,64,.05));
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 120px;
}
.hero-kicker {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.hero-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: #fff;
  text-shadow: 0 6px 28px rgba(0,0,0,.32);
  margin: 0 auto;
  max-width: 14ch;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }
.hero-wave path { fill: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--cream); }
.welcome.section { background: var(--paper); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 14px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0;
}

/* ---------- Welcome ---------- */
.welcome-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.welcome-card {
  background: var(--sky);
  border: 1px solid var(--seafoam-line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.welcome-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.welcome-card h3 { font-size: 22px; margin-bottom: 10px; }
.welcome-card p { color: var(--ink-soft); margin: 0; }
.card-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Menu ---------- */
.menu-group { margin-bottom: 64px; }
.menu-group:last-child { margin-bottom: 0; }
.menu-group-head { text-align: center; margin-bottom: 30px; }
.menu-cat {
  font-size: 28px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.menu-cat::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.menu-note {
  color: var(--ink-soft);
  font-style: italic;
  margin: 10px auto 0;
  max-width: 560px;
}
.menu-footnote {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-style: italic;
  margin: 26px auto 0;
  max-width: 620px;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.dish-card {
  background: var(--paper);
  border: 1px solid var(--seafoam-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.dish-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dish-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--seafoam);
}
.dish-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.dish-card:hover .dish-photo img { transform: scale(1.06); }
.dish-body { padding: 20px 22px 24px; }
.dish-name { font-size: 20px; margin-bottom: 6px; }
.dish-desc { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- Happy Hour ---------- */
.happy-panel {
  background: linear-gradient(165deg, var(--seafoam) 0%, var(--sky) 100%);
  border: 1px solid var(--seafoam-line);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  max-width: 940px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.happy-hours {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--accent);
  margin: 4px 0 0;
}
.pricing-lines {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 560px;
  text-align: center;
}
.pricing-lines li {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--seafoam-line);
}
.pricing-lines li:last-child { border-bottom: none; }
.happy-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.happy-list {
  background: rgba(255,255,255,.7);
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid var(--seafoam-line);
}
.happy-list h4 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
}
.happy-list ul { list-style: none; padding: 0; margin: 0; }
.happy-list li {
  padding: 6px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(207,230,221,.6);
}
.happy-list li:last-child { border-bottom: none; }

/* ---------- Events ---------- */
.events-tagline {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 18px;
  margin: 12px 0 0;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}
.event-card {
  background: var(--paper);
  border: 1px solid var(--seafoam-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--seafoam); }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-card:hover .event-photo img { transform: scale(1.06); }
.event-body { padding: 22px 24px 26px; }
.event-day {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--seafoam);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.event-title { font-size: 21px; margin-bottom: 8px; }
.event-text { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.closers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.closer {
  text-align: center;
  background: var(--sky);
  border: 1px solid var(--seafoam-line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.closer h4 { font-size: 19px; margin-bottom: 8px; color: var(--accent); }
.closer p { color: var(--ink-soft); margin: 0; }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.visit-col .section-title { text-align: left; }
.visit-col .eyebrow { text-align: left; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--seafoam-line);
  font-size: 17px;
}
.contact-list .ci {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
.socials { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--seafoam-line);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all .18s ease;
}
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.hours-col {
  background: var(--paper);
  border: 1px solid var(--seafoam-line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.hours-title { font-size: 24px; margin-bottom: 22px; }
.hours-blocks { display: grid; gap: 26px; }
.hours-block h4 {
  font-size: 16px;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hours-block ul { list-style: none; padding: 0; margin: 0; }
.hours-block li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--seafoam-line);
  font-size: 16px;
}
.hours-block li:last-child { border-bottom: none; }
.hours-block li span:last-child { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #233238;
  color: #d9e6e2;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.footer-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-tag { color: #9fb4ae; margin: 0; max-width: 32ch; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-social a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: #c7d6d1;
  transition: color .18s ease;
}
.footer-nav a:hover, .footer-social a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 20px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #8fa49e;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { min-height: 78vh; }
  .happy-panel { padding: 38px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .hero-slides .hero-slide:first-child { opacity: 1; }
}