/* ============================================================
   Airside Cafe – style.css
   airsidecafe.co.nz
   Brand colours: Blue #047ABA | Yellow #F9DD29 | Black #000000
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #047ABA;
  --yellow:  #F9DD29;
  --red:     #cc1a1a;
  --charcoal:#000000;
  --white:   #ffffff;
  --nav-h:   68px;
  --font:    'ABeeZee', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--charcoal);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* Brand: logo image + text stacked */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

.nav-brand-text {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.nav-brand-text span {
  display: block;
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--charcoal);
  background: var(--yellow);
  outline: none;
}

.cs-badge {
  font-size: 0.58rem;
  background: var(--red);
  color: #fff;
  padding: 0.12rem 0.38rem;
  border-radius: 2px;
  margin-left: 0.2rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: -1px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  flex: 1;
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  /* Washed-out Canva look: photo at reduced opacity */
  opacity: 0.80;
}

/* Strong white overlay to push the washed-out effect further */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1;
  padding: 2rem 1rem 3rem;
  min-height: calc(100dvh - var(--nav-h));
}

/* ── Logo overlay (top-right of hero) ────────────────────── */
.hero-logo-wrap {
  align-self: flex-end;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.hero-logo {
  display: block;
  width: clamp(90px, 14vw, 160px);
  height: clamp(90px, 14vw, 160px);
  object-fit: contain;
}

/* ── Stamp ────────────────────────────────────────────────── */
.stamp-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp {
  font-family: var(--font);
  font-size: clamp(2rem, 7.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  border: 0.16em solid var(--red);
  border-radius: 0.18em;
  padding: 0.18em 0.55em;
  transform: rotate(-8deg) scale(0.55);
  opacity: 0;
  display: inline-block;
  -webkit-mask-image: radial-gradient(ellipse 97% 97% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 97% 97% at 50% 50%, #000 55%, transparent 100%);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.stamp.stamp-landed {
  transform: rotate(-8deg) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .stamp { transition: none; transform: rotate(-8deg) scale(1); opacity: 1; }
}

/* ── Location block ───────────────────────────────────────── */
.location {
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.location.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .location { transition: none; opacity: 1; transform: none; }
}

.location-heading {
  font-family: var(--font);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.location-address {
  font-family: var(--font);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.75;
  color: #222;
}

/* ── Map section ──────────────────────────────────────────── */
.map-section {
  background: #111;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.map-section h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-align: center;
}

.map-embed {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--blue);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #666;
  font-family: var(--font);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.map-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: var(--blue);
  opacity: 0.5;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #0a0a0a;
  border-top: 2px solid var(--yellow);
  padding: 1.5rem;
  text-align: center;
}

.footer p {
  font-family: var(--font);
  font-size: 0.8rem;
  color: #777;
  line-height: 1.7;
}

.footer a {
  color: var(--blue);
  text-decoration: none;
}

.footer a:hover { color: var(--yellow); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --nav-h: 60px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(18, 18, 18, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
    gap: 0.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 2px solid var(--yellow);
  }

  .nav-links.nav-open {
    max-height: 400px;
    padding: 0.75rem 1rem 1rem;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
  }

  .nav-hamburger { display: flex; }

  .hero-logo-wrap { padding: 0.35rem; }
}

@media (max-width: 400px) {
  .nav-brand-text { font-size: 0.95rem; }
}
