/* ==========================================================================
   Café Thuishaven Made — stylesheet
   Plain CSS, no build step, no framework. Safe to edit directly.
   Colors are defined once below — change them there to re-theme the site.
   ========================================================================== */

:root {
  --royal-blue: #1a3a8f;
  --royal-blue-dark: #0f2660;
  --royal-blue-darker: #0a1a42;
  --brown: #5c3a21;
  --brown-light: #8a5a34;
  --black: #0b0b0d;
  --near-black: #131318;
  --white: #f6f4ef;
  --white-dim: #cfd2de;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--white);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--brown-light);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--near-black);
}

.section-intro {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-intro p {
  color: var(--white-dim);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  font-size: 0.98rem;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--royal-blue);
  color: var(--white);
}
.btn--primary:hover { background: #234aad; }

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

.btn--brown {
  background: var(--brown);
  color: var(--white);
}
.btn--brown:hover { background: var(--brown-light); }

.btn--instagram {
  background: #e1306c;
  color: #fff;
}
.btn--instagram:hover { background: #c22a5d; }

.btn--facebook {
  background: #3b5998;
  color: #fff;
}
.btn--facebook:hover { background: #2d4373; }

.btn--whatsapp {
  background: #25d366;
  color: #08341c;
}
.btn--whatsapp:hover { background: #1fb958; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.site-logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ---------- Logo badge (black, rounded-corner chip behind the white logo) ---------- */

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.08);
}

.logo-badge--header {
  padding: 8px 16px;
  border-radius: 12px;
}

.logo-badge--hero {
  padding: 22px 30px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.logo-badge--footer {
  padding: 12px;
  border-radius: 14px;
}

.logo-badge--footer img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 78px;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.65) 45%, var(--black) 100%),
    url('assets/images/bar-crowd.jpg') center 30% / cover no-repeat;
}

.hero-content {
  max-width: 720px;
}

.logo-badge--hero {
  margin-bottom: 28px;
}

.hero-logo {
  width: min(560px, 85vw);
  display: block;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 560px;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--royal-blue-darker);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.feature-card--photo {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.feature-card--photo img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.feature-card--photo .feature-body { padding: 22px 24px 26px; }

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--brown-light);
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--white-dim);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Events / Instagram ---------- */

.events-widget {
  background: var(--near-black);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white-dim);
  max-width: 100%;
  overflow-x: auto;
}

.events-widget p {
  max-width: 480px;
  margin: 0 auto 20px;
  text-align: center;
}

#instagram-feed {
  min-height: 60px;
  max-width: 100%;
}

#instagram-feed > * {
  max-width: 100% !important;
}

.events-follow {
  margin-top: 32px;
  justify-content: center;
}

/* ---------- Event booking form ---------- */

.event-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.form-row input,
.form-row textarea {
  background: var(--royal-blue-darker);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--white-dim);
  opacity: 0.7;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(35, 74, 173, 0.35);
}

.event-form .btn {
  align-self: flex-start;
  border: none;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-status--success { color: #7fd39a; }
.form-status--error { color: #e59a9a; }

/* ---------- Hours & Location ---------- */

.hours-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--white);
  width: 40%;
}

.hours-table td:last-child {
  color: var(--white-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--brown-light);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 4 / 3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.address-block {
  margin-top: 20px;
}

.address-block p {
  margin: 0 0 4px;
  color: var(--white-dim);
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #08341c;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover { transform: translateY(-3px); }

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--royal-blue-darker);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand .logo-badge { margin-bottom: 12px; }

.footer-brand p { color: var(--white-dim); font-size: 0.9rem; margin: 0; }

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-light);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--white-dim);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--white-dim);
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hours-location {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-130%);
    transition: transform 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-toggle { display: block; }

  .header-cta .btn { display: none; }

  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .whatsapp-float, .nav-links { transition: none; }
}
