/* ─── Variables ─── */
:root {
  --bg:           #F9F4EC;
  --text:         #2B1D0E;
  --accent:       #8C4727;
  --accent-dk:    #6F341A;
  --secondary:    #627454;
  --surface:      #EFE6D7;
  --muted:        #645542;
  --border:       rgba(43, 29, 14, 0.10);
  --white:        #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --radius:       8px;
  --radius-lg:    14px;
  --section-pad:  96px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(160, 82, 45, 0.08), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(107, 124, 92, 0.08), transparent 25%),
    var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

/* ─── Container ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dk); }

.btn--wa { background: #25D366; border-color: #25D366; }
.btn--wa:hover { background: #1EB858; border-color: #1EB858; }

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* ─── Section Label ─── */
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* ─── Header & Nav ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#site-header.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(43, 29, 14, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.18s;
}
.header__nav a:hover { color: var(--accent); }
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ─── */
section[id] { scroll-margin-top: 64px; }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(160, 82, 45, 0.20) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(43, 29, 14, 0.58) 0%, rgba(43, 29, 14, 0.88) 100%),
    url("images/hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.8fr);
  gap: 2.5rem;
  align-items: center;
  padding: var(--section-pad) 0;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.96;
}
.hero__title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--bg);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(249, 244, 236, 0.72);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero__hours-chip {
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: rgba(249, 244, 236, 0.12);
  border: 1px solid rgba(249, 244, 236, 0.22);
  font-size: 0.88rem;
  color: rgba(249, 244, 236, 0.75);
  backdrop-filter: blur(8px);
}
.hero__hours-chip strong {
  color: rgba(249, 244, 236, 0.92);
}

.hero__card {
  background: rgba(249, 244, 236, 0.12);
  border: 1px solid rgba(249, 244, 236, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem;
}

.hero__photo {
  min-height: 420px;
  border-radius: calc(var(--radius-lg) - 2px);
  background:
    linear-gradient(180deg, rgba(30, 18, 8, 0.12), rgba(30, 18, 8, 0.38)),
    url("images/cafe board.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  overflow: hidden;
}

.hero__note {
  align-self: flex-start;
  max-width: 15rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(249, 244, 236, 0.92);
  box-shadow: 0 10px 24px rgba(52, 33, 18, 0.14);
  font-size: 0.93rem;
  color: rgba(43, 29, 14, 0.82);
}
.hero__note strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
  font-size: 0.98rem;
  color: var(--text);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.meta-card {
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(249, 244, 236, 0.90);
  border: 1px solid rgba(43, 29, 14, 0.08);
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 29, 14, 0.50);
}

.meta-value {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(43, 29, 14, 0.84);
}

/* ─── About ─── */
#about {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid__text h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.about-grid__text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.about-grid__text p:last-child { margin-bottom: 0; }
.about-grid__visual {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(43, 29, 14, 0.08), rgba(43, 29, 14, 0.20)),
    url("images/kalk bay.jpg");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.about-grid__deco {
  position: absolute;
  inset: 24px;
  border: 1.5px solid rgba(249, 244, 236, 0.32);
  border-radius: calc(var(--radius-lg) - 6px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(43, 29, 14, 0.02), rgba(43, 29, 14, 0.24));
}
.about-grid__deco::before {
  content: "Est.";
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(249, 244, 236, 0.74);
  letter-spacing: 0.08em;
}
.about-grid__deco::after {
  content: "Kalk Bay";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--bg);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.about-grid__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 244, 236, 0.88);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Menu ─── */
#menu {
  padding: var(--section-pad) 0;
  background: var(--surface);
}
#menu h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.menu-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.menu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.menu-card:hover { box-shadow: 0 6px 24px rgba(43, 29, 14, 0.10); }
.menu-card__header {
  background: var(--accent);
  padding: 16px 20px;
}
.menu-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.menu-card__list {
  padding: 4px 20px 16px;
  display: flex;
  flex-direction: column;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 1px dotted var(--border);
  gap: 12px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item__name { color: var(--text); display: block; }
.menu-item__desc {
  display: block;
  font-size: 0.80rem;
  color: var(--muted);
  margin-top: 2px;
}
.menu-item__price {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 12px;
  flex-shrink: 0;
}

/* ─── Gallery ─── */
#gallery {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
#gallery h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery-item--latte { grid-row: span 2; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
.gallery-item__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249, 244, 236, 0.92);
  background: rgba(43, 29, 14, 0.40);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 29, 14, 0.04), rgba(43, 29, 14, 0.36));
}
.gallery-item--latte    { background-image: url("images/latte.jpg"); }
.gallery-item--sandwich { background-image: url("images/sandwich.jpg"); }
.gallery-item--outdoor  { background-image: url("images/outdoor.jpg"); }
.gallery-item--filter   { background-image: url("images/filter.jpg"); }
.gallery-item--interior { background-image: url("images/interior.jpg"); }
.gallery-item--pastry   { background-image: url("images/pastry.jpg"); }

/* ─── Hours & Location ─── */
#hours {
  padding: var(--section-pad) 0;
  background: var(--surface);
}
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.hours-grid__info h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.hours-table th,
.hours-table td {
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.hours-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  width: 45%;
}
.hours-table td { color: var(--muted); }
.hours-table tbody tr:last-child th,
.hours-table tbody tr:last-child td { border-bottom: none; }
.hours-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hours-address p {
  font-size: 0.95rem;
  color: var(--muted);
}
.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(43, 29, 14, 0.10);
  filter: sepia(15%) saturate(85%) contrast(96%);
  display: block;
}

/* ─── Contact ─── */
#contact {
  padding: var(--section-pad) 0;
  background: var(--bg);
  text-align: center;
}
#contact h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.contact__sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}
.contact__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
footer {
  background: var(--text);
  padding: 48px 0;
  text-align: center;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 4px;
}
.footer__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer__credit {
  font-size: 0.78rem;
  color: rgba(249, 244, 236, 0.35);
  letter-spacing: 0.04em;
}
.footer__credit a {
  color: var(--accent);
  text-decoration: underline;
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  align-items: center;
  gap: 8px;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
}
.whatsapp-float:hover { background: #1EB858; transform: translateY(-2px); }

/* ─── Scroll-reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 580ms ease, transform 580ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive (single breakpoint) ─── */
@media (max-width: 640px) {
  :root { --section-pad: 64px; }

  /* Header */
  .header__hamburger { display: flex; }
  .header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { font-size: 1rem; }

  /* Hero */
  #hero { min-height: auto; }
  .hero__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__card { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid__visual { height: 220px; order: -1; }

  /* Menu */
  .menu-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item { height: 160px; }
  .gallery-item--latte { grid-row: span 1; }

  /* Hours */
  .hours-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-frame { height: 260px; }

  /* Contact */
  .contact__actions { flex-direction: column; align-items: center; }
  .contact__actions .btn { width: 100%; justify-content: center; }

  /* WhatsApp float */
  .whatsapp-float { display: flex; }
}
