/* ==================================================================
   style.css — Basic CSS structure
   - Lightweight reset
   - CSS custom properties (design tokens)
   - Base typography and form styles
   - Layout helpers (container, grid row/col)
   - Header / footer / main scaffolding
   - Buttons, utilities, and responsive breakpoints
   ================================================================== */

/* --------------------------
   1) Reset / box sizing
   -------------------------- */
/* A minimal reset to create consistent base across browsers */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body, #root {
  height: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #222;
  background-color: #fff;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Reset form elements a little */
button, input, select, textarea {
  font: inherit;
}

/* --------------------------
   2) Design tokens / variables
   -------------------------- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-foreground: #111827; /* dark */
  --color-muted: #6b7280; /* gray-500 */
  --color-primary: #0ea5a4; /* teal-ish */
  --color-primary-600: #0891b2;
  --color-accent: #f97316; /* orange */
  --color-success: #10b981;
  --color-danger: #ef4444;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Typography */
  --fs-sm: 0.875rem; /* 14px */
  --fs-base: 1rem; /* 16px */
  --fs-lg: 1.125rem; /* 18px */
  --fs-xl: 1.25rem; /* 20px */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Layout */
  --max-width: 1100px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(2,6,23,0.08);
}

/* --------------------------
   3) Base typography
   -------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-foreground);
  line-height: 1.2;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-md) 0; }
small { font-size: var(--fs-sm); color: var(--color-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------
   4) Layout helpers
   -------------------------- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  max-width: var(--max-width);
}

.stack { display: flex; flex-direction: column; gap: var(--space-md); }
.center { display:flex; align-items:center; justify-content:center; }

/* Simple responsive row/col utility */
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.col { padding-left: 12px; padding-right: 12px; flex: 1 1 0%; }
.col-auto { flex: 0 0 auto; }

/* --------------------------
   5) Header / main / footer
   -------------------------- */
header.site-header {
  background: linear-gradient(180deg, rgba(14,165,164,0.06), transparent);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.site-brand { font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.site-nav { display:flex; gap: var(--space-sm); align-items:center; }

main.site-main { padding: var(--space-lg) 0; min-height: 60vh; }

footer.site-footer {
  padding: var(--space-lg) 0;
  background-color: #fafafa;
  color: var(--color-muted);
}

/* --------------------------
   6) Buttons and forms
   -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background-color: var(--color-primary);
  color: white;
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background-color: var(--color-primary-600); }
.btn.secondary { background: transparent; color: var(--color-foreground); border: 1px solid #e5e7eb; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
}

/* --------------------------
   7) Utilities
   -------------------------- */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.muted { color: var(--color-muted); }
.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Spacing helpers */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mt-md { margin-top: var(--space-md); }

/* --------------------------
   8) Responsive breakpoints
   -------------------------- */
@media (min-width: 640px) {
  /* sm */
  :root { --fs-base: 1rem; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1024px) {
  /* lg */
  h1 { font-size: 2.25rem; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

@media (max-width: 768px) {
    .hero {
        height: 90vh;
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .logo img {
        width: 200px;
    }
}

/* --------------------------
   9) Small helpers for demo and prototyping
   -------------------------- */
.card {
  background: white;
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  width: 600px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.hero {
    position: relative;
    height: 100svh;
    width: 100%;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    inset: 0; /* fills entire hero */
    width: 100%;
    height: 100%;
    overflow: hidden
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-overlay h2 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #FFD63E;
    text-shadow: 0 0 20px rgba(255,214,62,0.6);
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    width: auto;
    background: #FFD63E;
    color: #2248D7;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #2248D7;
    color: #FFD63E;
    transform: scale(1.05);
}

/* ===== Booking Page Styling ===== */

.booking-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #2248D7, #1a36a8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h1 {
    color: #FFD63E;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(255, 214, 62, 0.7),
        0 0 20px rgba(255, 214, 62, 0.4);
}

.booking-header p {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.85;
}

/* Luxury Card Container */
.booking-card {
    width: 100%;
    max-width: 1100px;
    height: 900px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 4px solid #FFD63E;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 30px rgba(255, 214, 62, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Subtle hover lift */
.booking-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

/* Iframe Styling */
.booking-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Animated Barber Pole Stripes === */

.barber-pole-left,
.barber-pole-right {
    position: fixed;
    top: 0;
    width: 18px;
    height: 100vh;
    z-index: 0;
    background: repeating-linear-gradient(
        45deg,
        #FFD63E,
        #FFD63E 15px,
        white 15px,
        white 30px,
        #2248D7 30px,
        #2248D7 45px
    );
    animation: poleScroll 3s linear infinite;
}

.barber-pole-left {
    left: 0;
}

.barber-pole-right {
    right: 0;
}

.map-section {
    padding: 20px 20px;
    background: #111;
}

.map-container {
    padding-bottom: 20px;
    background: #111;
}

.map-container iframe {
    position: relative;
    width: 100%;
    height: 450px;
    max-width: 1200px;;
    display:block;
    margin:auto;
    margin-top: 20px;
    border: 4px solid #FFD63E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.5),
        0 0 20px rgba(255,214,62,0.3);
}

@keyframes poleScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100px;
    }
}
