/* ──────────────────────────────────────────────
   Raupo Café & Restaurant — Shared Stylesheet
   Aesthetic: Earthy Editorial
   ────────────────────────────────────────────── */

:root {
  --primary: #1a2e3b;
  --secondary: #87402e;
  --accent: #c45a2d;
  --bg: #f4efe8;
  --surface: #e9e2d8;
  --text: #1a1a17;
  --text-muted: #5e564d;
  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;
  --nav-height: 72px;
  --container-px: 1.5rem;
  --radius: 6px;
  --transition: 0.25s ease;
}

/* ── Reset ───────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--secondary);
}

/* ── Typography ──────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 700; }

p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 65ch;
}

p + p {
  margin-top: 1em;
}

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.body-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ── Layout ──────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
}

/* ── Site Navigation ─────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--surface);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(26, 46, 59, 0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  z-index: 1001;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

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

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 999;
  padding-top: calc(var(--nav-height) + 2rem);
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu .nav-link {
  font-size: 1.375rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
}

/* ── Inner-Page Hero Strip (Shared) ──────────── */

.inner-hero {
  background-color: var(--primary);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #243d4d 100%);
  opacity: 1;
}

.inner-hero .container {
  position: relative;
  z-index: 1;
}

.inner-hero .display-heading,
.inner-hero .section-title {
  color: var(--bg);
}

.inner-hero .body-text {
  color: rgba(244, 239, 232, 0.75);
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ─────────────────────────────────── */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 90, 45, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 46, 59, 0.15);
}

/* ── Card ────────────────────────────────────── */

.card {
  background-color: var(--surface);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 46, 59, 0.1);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── River-Curve SVG Divider ─────────────────── */

.river-divider {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
  overflow: visible;
  margin: 0 auto;
  pointer-events: none;
}

.river-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.river-divider path {
  fill: none;
  stroke: var(--surface);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.river-divider--accent path {
  stroke: var(--accent);
  opacity: 0.3;
}

/* Inline SVG helper: place between sections
   <div class="river-divider">
     <svg viewBox="0 0 1280 60" preserveAspectRatio="none">
       <path d="M0,30 C180,5 320,55 480,30 C640,5 800,55 960,30 C1100,10 1200,45 1280,30" />
     </svg>
   </div>
*/

/* ── Fade-In Animation ───────────────────────── */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.35s ease-out forwards;
}

/* ── Language Switcher ───────────────────────── */

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  background: none;
  padding: 0;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lang-flag:hover,
.lang-flag.active {
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ── Site Footer ─────────────────────────────── */

.site-footer {
  background-color: var(--primary);
  color: rgba(244, 239, 232, 0.8);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 239, 232, 0.12);
}

.footer-inner a {
  color: rgba(244, 239, 232, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer-inner h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--bg);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-inner p {
  color: rgba(244, 239, 232, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-inner ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(244, 239, 232, 0.45);
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(244, 239, 232, 0.45);
  transition: color var(--transition);
}

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

/* ── Utility ─────────────────────────────────── */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Responsive: Tablet (768px) ──────────────── */

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --container-px: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .display-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  h1 { font-size: clamp(2rem, 7vw, 2.75rem); }
  h2 { font-size: clamp(1.625rem, 5vw, 2.25rem); }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .river-divider {
    height: 40px;
  }
}

/* ── Responsive: Small (below 1024px) ────────── */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ── Reduced Motion ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-in {
    animation: none;
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Image quality defaults ── */
img { object-fit: cover; max-width: 100%; height: auto; }
img[class*="logo"], img[class*="icon"], img[class*="flag"] { object-fit: contain; }
