/*
Theme Name:  CEO Unisex Salon v7
Theme URI:   https://example.com/
Author:      CEO Unisex Salon
Description: Premium luxury WordPress theme for CEO Unisex Salon, Zirakpur. Fully admin-panel editable — no code required. Includes booking system, gallery, team, offers, testimonials, GIF hero, admin notifications, and complete image management.
Version:     4.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ceo-salon
*/

/* ===== DESIGN TOKENS ===== */
:root {
  --ceo-ink:       #181716;
  --ceo-cream:     #f7f3ec;
  --ceo-ivory:     #fffdf9;
  --ceo-gold:      #c9a46a;
  --ceo-gold-dark: #9f7a46;
  --ceo-line:      rgba(24,23,22,.12);
  --ceo-muted:     #716d66;
  --ceo-max:       1240px;
  --ceo-radius:    22px;
  --ceo-shadow:    0 18px 60px rgba(18,16,12,.10);
  --ceo-font:      Arial, Helvetica, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; } /* overflow-x NOT on html — breaks fixed positioning on iOS */
body {
  margin: 0;
  color: var(--ceo-ink);
  background: var(--ceo-ivory);
  font-family: var(--ceo-font);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; width: auto; }
a { color: inherit; }
h1,h2,h3,h4,h5,h6 { margin-top: 0; }
p { margin-top: 0; }

/* ===== LAYOUT ===== */
.container { width: min(calc(100% - 40px), var(--ceo-max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-alt { background: var(--ceo-cream); }
.section-dark { background: var(--ceo-ink); color: #fff; }

/* ===== GRID ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ===== SECTION HEAD ===== */
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 42px; flex-wrap: wrap; }
.section-head h2 { font: 500 clamp(34px,4vw,56px)/1.05 Georgia, serif; margin: 10px 0 0; }
.section-head p { max-width: 570px; color: var(--ceo-muted); margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ceo-gold); font-weight: 700; display: block; margin-bottom: 8px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,249,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ceo-line);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: 0 0 auto; }
.brand img, .brand .custom-logo { max-height: 54px; width: auto; }
.brand-text { font-family: Georgia,'Times New Roman',serif; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: .18em; color: var(--ceo-muted); display: block; margin-top: 2px; }

/* ===== NAVIGATION ===== */
.main-nav { margin-left: auto; }
.screen-reader-text { border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 25px; }
.primary-menu .menu-item { position: relative; }
.primary-menu > li > a {
  position: relative; display: inline-flex; align-items: center;
  padding: 31px 0 29px; text-decoration: none; color: var(--ceo-ink);
  font-size: 12px; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap;
}
.primary-menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 20px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.primary-menu > li:hover > a::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-menu .sub-menu {
  position: absolute; left: 50%; top: calc(100% - 10px);
  min-width: 210px; transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  background: #fff; border: 1px solid var(--ceo-line);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  transition: .2s ease;
}
.primary-menu .menu-item:hover > .sub-menu,
.primary-menu .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.primary-menu .sub-menu a { display: block; padding: 10px 12px; text-decoration: none; border-radius: 9px; font-size: 12px; }
.primary-menu .sub-menu a:hover { background: var(--ceo-cream); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; padding: 12px 20px;
  text-decoration: none; border: 1px solid var(--ceo-ink);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ceo-ink); color: #fff; white-space: nowrap;
  transition: .25s; flex-shrink: 0;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); background: var(--ceo-gold); border-color: var(--ceo-gold); }
.menu-toggle {
  display: none; cursor: pointer;
  width: 46px; height: 46px;
  border: 1px solid var(--ceo-line);
  border-radius: 50%; background: #fff;
  align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
}
.menu-icon { display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.menu-icon i { display: block; width: 19px; height: 1.5px; background: var(--ceo-ink); transition: .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .header-inner { min-height: 72px; }
  .header-cta { display: none; }
  /* FIX: backdrop-filter makes the header the containing block of position:fixed children,
     which pushed the drawer off-screen to the right (page had to be scrolled sideways to see it). */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,253,249,.98); }
  .menu-toggle { display: flex; z-index: 9991; }
  body.menu-open .menu-toggle { visibility: hidden; } /* drawer has its own close button */
  .main-nav {
    position: fixed; top: 0; right: 0;
    width: min(88vw, 390px); height: 100dvh;
    margin: 0; padding: 90px 26px 30px;
    background: #fff; z-index: 9990; /* high z to beat any plugin overlays */
    box-shadow: -22px 0 70px rgba(0,0,0,.16);
    transform: translateX(105%);
    visibility: hidden; pointer-events: none;
    transition: transform .28s ease, visibility 0s linear .28s;
    overflow-y: auto; overflow-x: hidden;
  }
  .main-nav::before { content: "MENU"; position: absolute; top: 34px; left: 26px; font-size: 11px; letter-spacing: .25em; color: var(--ceo-muted); }
  /* Close button inside drawer */
  .nav-close-btn {
    position: absolute; top: 22px; right: 22px;
    width: 42px; height: 42px;
    border: 1px solid var(--ceo-line); border-radius: 50%;
    background: #fff; font-size: 16px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--ceo-ink); z-index: 9992;
  }
  .nav-close-btn:hover { background: var(--ceo-cream); }
  .main-nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .28s ease, visibility 0s; }
  .primary-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-menu > li > a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--ceo-line); font-size: 13px; justify-content: space-between; }
  .primary-menu > li > a::after { bottom: 0; left: 0; right: auto; width: 35px; }
  .primary-menu .sub-menu { position: static; min-width: 0; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 6px 12px; }
  body.menu-open { overflow: hidden; }
  /* Real overlay div — avoids stacking context bug from site-header */
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(24,23,22,.35); z-index: 99; }
  body.menu-open .nav-overlay { display: block; }
}
@media (min-width: 1021px) { .main-nav { display: block !important; } .menu-toggle { display: none !important; } .nav-close-btn { display: none !important; } }


/* ===== HERO SOUND TOGGLE ===== */
.hero-sound-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(18,16,12,.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: none; /* only shown on video hero */
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, border-color .2s;
}
.hero-video-active .hero-sound-btn { display: flex; }
.hero-sound-btn:hover { background: rgba(201,164,106,.72); border-color: var(--ceo-gold); }
.hero-sound-btn svg { width: 18px; height: 18px; pointer-events: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; padding: 13px 24px;
  text-decoration: none; border: 1px solid var(--ceo-ink);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
  transition: .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.btn-dark  { background: var(--ceo-ink); color: #fff; }
.btn-gold  { background: var(--ceo-gold); border-color: var(--ceo-gold); color: #fff; }
.btn-gold:hover { background: var(--ceo-gold-dark); border-color: var(--ceo-gold-dark); }
.btn-light { background: #fff; border-color: var(--ceo-line); color: var(--ceo-ink); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ===== HERO — GIF FRAME SYNC ===== */
.hero {
  --hero-cycle: 1300ms;
  position: relative;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #f4efdf;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero.hero-image-active .hero-media { background: rgba(18,16,12,.45); }
.hero-media { position: absolute; inset: 0; background: #f4efdf; overflow: hidden; }
.hero-gif-media { display: flex; align-items: center; justify-content: center; }
.hero-sync-stage {
  position: absolute; inset: 0; overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}
.hero-sync-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center center; display: block;
  opacity: 0; transform: scale(1.035) translate3d(0,0,0);
  will-change: opacity, transform, filter;
  transition: opacity 90ms linear;
  backface-visibility: hidden;
}
.hero-sync-frame.is-active { opacity: 1; }
.hero-sync-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.06), transparent 52%),
              linear-gradient(180deg, rgba(24,23,22,.03), rgba(24,23,22,.06));
  opacity: .72; transform: scale(1);
  will-change: opacity, transform; backface-visibility: hidden;
}
.hero.hero-gif-active .hero-content { display: none !important; }
.hero.hero-sync .hero-content { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.hero-sync[data-hero-frame="0"] .hero-sync-stage { transform: scale(1.000) translate3d(0,0,0); opacity: 1; }
.hero-sync[data-hero-frame="1"] .hero-sync-stage { transform: scale(1.008) translate3d(-0.10%,0,0); opacity: .985; }
.hero-sync[data-hero-frame="2"] .hero-sync-stage { transform: scale(1.016) translate3d(-0.20%,-0.08%,0); opacity: .970; }
.hero-sync[data-hero-frame="3"] .hero-sync-stage { transform: scale(1.024) translate3d(-0.12%,-0.16%,0); opacity: .955; }
.hero-sync[data-hero-frame="4"] .hero-sync-stage { transform: scale(1.032) translate3d(0.08%,-0.10%,0); opacity: .965; }
.hero-sync[data-hero-frame="5"] .hero-sync-stage { transform: scale(1.040) translate3d(0.18%,0.04%,0); opacity: .985; }
.hero-sync[data-hero-frame="6"] .hero-sync-stage { transform: scale(1.045) translate3d(0.05%,0.12%,0); opacity: 1; }
.hero-sync[data-hero-frame="0"] .hero-sync-overlay { opacity: .68; transform: scale(1.000); }
.hero-sync[data-hero-frame="1"] .hero-sync-overlay { opacity: .70; transform: scale(1.008); }
.hero-sync[data-hero-frame="2"] .hero-sync-overlay { opacity: .74; transform: scale(1.016); }
.hero-sync[data-hero-frame="3"] .hero-sync-overlay { opacity: .77; transform: scale(1.024); }
.hero-sync[data-hero-frame="4"] .hero-sync-overlay { opacity: .75; transform: scale(1.032); }
.hero-sync[data-hero-frame="5"] .hero-sync-overlay { opacity: .71; transform: scale(1.040); }
.hero-sync[data-hero-frame="6"] .hero-sync-overlay { opacity: .68; transform: scale(1.045); }
/* Hero: align content to bottom-left */
.hero { align-items: flex-end; }
.hero-content {
  position: relative; z-index: 3;
  /* hero-content is also .container — padding bottom pushes content low */
  padding-top: clamp(60px, 12vw, 100px);
  padding-bottom: clamp(60px, 10vw, 90px);
  max-width: 680px;
  width: min(calc(100% - 40px), var(--ceo-max));
  margin-inline: auto;
  /* Left-align text, sit at bottom */
  align-self: flex-end;
}
.hero h1 { font-family: Georgia,'Times New Roman',serif; font-size: clamp(36px,6vw,80px); line-height: 1.02; font-weight: 500; margin: 16px 0 18px; }
.hero p { font-size: clamp(14px, 2vw, 17px); max-width: 540px; color: rgba(255,255,255,.84); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; margin-left: -6px; }
@media (prefers-reduced-motion: reduce) { .hero-sync-stage,.hero-sync-overlay { transition: none !important; } .hero-sync-frame { transition: opacity 0ms linear; } }
/* The GIF/frame-sync hero shows no text, so it can safely lock to an aspect ratio
   instead of a viewport-height min-height on small screens. Image/video heroes keep
   text, so they keep a flexible min-height instead (set below). */
@media (max-width: 767px) {
  .hero.hero-sync { min-height: 0; aspect-ratio: 4 / 5; }
  .hero:not(.hero-sync) { min-height: min(64vh, 620px); }
  .hero-sync-frame { object-fit: cover; }
}
@media (max-width: 480px) {
  .hero.hero-sync { aspect-ratio: 3 / 4; }
  .hero:not(.hero-sync) { min-height: 56vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  /* Hide Explore Services on mobile */
  .hero-actions .btn-explore-services { display: none !important; }
}
@media (max-width: 767px) and (orientation: landscape) {
  .hero.hero-sync { aspect-ratio: 16 / 9; }
  .hero:not(.hero-sync) { min-height: 88vh; }
}
.hero-media.no-image { background: linear-gradient(135deg, #211f1b 0%, #2e2a24 40%, #181716 100%); }
.hero-media.no-image::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(201,164,106,.03) 0, rgba(201,164,106,.03) 1px, transparent 0, transparent 50%); background-size: 30px 30px; }

/* ===== VIDEO HERO ===== */
.hero-mobile-video { display: none; } /* shown only on mobile via @media */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-video-overlay { position: absolute; inset: 0; z-index: 2; background: rgba(18,16,12,.45); }

/* ===== MOBILE HERO IMAGE OVERRIDE =====
   When hero_mobile_image_enable is on, .hero-has-mobile-img swaps the
   video / GIF for a static image on screens ≤ 768 px. The desktop-only
   elements (video, frame-sync stage, their overlays) are hidden; the
   mobile image layer is hidden on desktop and revealed on mobile.
   No JS needed — pure CSS media-query swap.                              */
.hero-mobile-image-layer {
  display: none; /* hidden on desktop */
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 1;
}
.hero-mobile-image-overlay {
  display: none; /* hidden on desktop */
  position: absolute; inset: 0;
  z-index: 2;
  background: rgba(18,16,12,.42);
}

@media (max-width: 768px) {
  /* Hide video / GIF elements on mobile when override is active */
  .hero-has-mobile-img .hero-desktop-only,
  .hero-has-mobile-vid .hero-desktop-only { display: none !important; }

  /* Show the static image + its overlay */
  .hero-has-mobile-img .hero-mobile-image-layer,
  .hero-has-mobile-img .hero-mobile-image-overlay { display: block; }

  /* ===== MOBILE VIDEO HERO ===== */
  .hero-mobile-video {
    display: none; /* hidden on desktop */
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  .hero-has-mobile-vid .hero-mobile-video { display: block; }
  .hero-has-mobile-vid .hero-mobile-image-overlay { display: block; z-index: 2; }
  /* Restore hero text above mobile video */
  .hero-has-mobile-vid .hero-content {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
  }
  /* Comfortable height for mobile video hero */
  .hero-has-mobile-vid { min-height: min(65vh, 600px); }
  .hero-has-mobile-vid.hero-sync { aspect-ratio: unset; }

  /* GIF hero normally hides text — restore it on mobile image mode */
  .hero-has-mobile-img.hero-sync .hero-content {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .hero-has-mobile-img.hero-gif-active .hero-content { display: flex !important; }

  /* Comfortable height for mobile image hero */
  .hero-has-mobile-img { min-height: min(62vh, 560px); }
  .hero-has-mobile-img.hero-sync { aspect-ratio: unset; }

  /* Hide Explore Services button on mobile */
  .hero-actions .btn-explore-services { display: none !important; }

  /* Fix mobile hero content */
  .hero .container { width: 100%; padding: 0 16px; }
  .hero-content { padding: 40px 0 40px; }

  /* Fix image overflow on mobile */
  img { max-width: 100% !important; height: auto !important; }
  .card-media img { width: 100%; object-fit: cover; }
}

/* ===== CARDS ===== */
.card { background: #fff; border: 1px solid var(--ceo-line); border-radius: var(--ceo-radius); overflow: hidden; box-shadow: 0 10px 35px rgba(0,0,0,.045); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(0,0,0,.10); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--ceo-cream), #e8e0d5); display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { font-size: 42px; opacity: .35; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.card-placeholder span { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ceo-muted); }
.card-body { padding: 24px; }
.card-body h3 { font: 500 22px/1.15 Georgia, serif; margin: 0 0 10px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--ceo-gold-dark); }
.service-price { color: var(--ceo-gold-dark); font-weight: 700; font-size: 14px; }
.service-meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ceo-muted); }

/* ===== SERVICE CATEGORY TABS ===== */
.service-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.service-tab {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--ceo-line); background: #fff;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.service-tab.active,.service-tab:hover { background: var(--ceo-gold); border-color: var(--ceo-gold); color: #fff; }

/* ===== FEATURE SPLIT ===== */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-image { border-radius: 32px; overflow: hidden; box-shadow: var(--ceo-shadow); }
.feature-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.feature-image .img-placeholder { width: 100%; aspect-ratio: 4/5; background: linear-gradient(135deg, var(--ceo-cream), #e8e0d5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ceo-muted); }
.feature-image .img-placeholder span { font-size: 52px; opacity: .4; }
.feature-image .img-placeholder p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }

/* ===== BOOKING FORM ===== */
.booking-box { background: #fff; border: 1px solid var(--ceo-line); border-radius: 28px; padding: 40px; box-shadow: var(--ceo-shadow); }
.booking-box h3 { font: 500 30px/1.1 Georgia, serif; margin: 0 0 6px; }
.booking-box .book-intro { color: var(--ceo-muted); margin: 0 0 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ceo-ink); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; border: 1px solid var(--ceo-line);
  background: var(--ceo-ivory); padding: 13px 15px;
  border-radius: 12px; font: inherit; font-size: 14px;
  color: var(--ceo-ink); transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23716d66' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { outline: none; border-color: var(--ceo-gold); background: #fff; }
.form-field input::placeholder,.form-field textarea::placeholder { color: #bbb; }
.form-submit { margin-top: 6px; }
.form-note { font-size: 12px; color: var(--ceo-muted); margin-top: 10px; }
.form-success { display: none; background: #f0f9f4; border: 1px solid #b7e2c8; border-radius: 14px; padding: 20px 22px; text-align: center; color: #1a6a3b; font-size: 15px; margin-top: 16px; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: #fff; border: 1px solid var(--ceo-line); border-radius: var(--ceo-radius); padding: 28px 30px; box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.testimonial-stars { color: var(--ceo-gold); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 16px; line-height: 1.65; font-style: italic; color: #4a4540; margin: 0 0 20px; }
.testimonial-author { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.testimonial-service { font-size: 11px; color: var(--ceo-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid a,.gallery-grid div { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 18px; background: var(--ceo-cream); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ===== LIGHTBOX ===== */
.ceo-lightbox { position: fixed; inset: 0; background: rgba(18,16,12,.94); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.ceo-lightbox.open { display: flex; }
.ceo-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.ceo-lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; opacity: .8; }
.ceo-lightbox-close:hover { opacity: 1; }
.ceo-lightbox-prev,.ceo-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 14px 18px; border-radius: 50%; transition: background .2s; }
.ceo-lightbox-prev { left: 16px; }
.ceo-lightbox-next { right: 16px; }
.ceo-lightbox-prev:hover,.ceo-lightbox-next:hover { background: rgba(255,255,255,.24); }

/* ===== TEAM CARDS ===== */
.team-card { text-align: center; }
.team-card .card-media { border-radius: 50%; margin: 24px auto 0; width: 130px; height: 130px; aspect-ratio: 1/1; overflow: hidden; border: 3px solid var(--ceo-gold); }
.team-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.team-card .card-body { padding: 16px 20px 24px; }
.team-card .role { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ceo-muted); }

/* ===== STATS STRIP ===== */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; text-align: center; }
.stat-box { padding: 22px 20px; }
.stat-box strong { display: block; font: 700 clamp(36px,5vw,56px)/1 Georgia, serif; color: var(--ceo-gold); }
.stat-box span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 8px; display: block; }

/* ===== WHY CARDS ===== */
.why-icon { font-size: 32px; margin-bottom: 14px; }

/* ===== OFFER BADGE ===== */
.offer-badge { display: inline-block; background: var(--ceo-gold); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ===== PRICING TABLE ===== */
.pricing-card { background: #fff; border: 1px solid var(--ceo-line); border-radius: var(--ceo-radius); padding: 32px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.05); transition: .3s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--ceo-shadow); }
.pricing-card.featured { border-color: var(--ceo-gold); background: linear-gradient(135deg, #fdf8f0, #fff); }
.pricing-card .pricing-price { font: 700 clamp(36px,5vw,52px)/1 Georgia, serif; color: var(--ceo-gold); margin: 12px 0; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.pricing-card li { padding: 8px 0; border-bottom: 1px solid var(--ceo-line); font-size: 14px; color: var(--ceo-muted); display: flex; gap: 8px; align-items: center; }
.pricing-card li::before { content: "✓"; color: var(--ceo-gold); font-weight: 700; flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer { background: #181716; color: #fff; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--ceo-gold); }
.footer-title { font: 500 22px/1 Georgia, serif; margin: 0 0 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; color: rgba(255,255,255,.45); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { font: 500 22px/1 Georgia, serif; letter-spacing: .06em; margin-bottom: 12px; color: #fff; }
.footer-tagline { color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); font-size: 13px; text-decoration: none; transition: .2s; }
.footer-social a:hover { border-color: var(--ceo-gold); color: var(--ceo-gold); background: rgba(201,164,106,.1); }

/* ===== FLOATING BUTTONS ===== */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #1a6fd4; color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 20px; transition: .2s; }
.float-btn:hover { transform: scale(1.08); }
.float-btn.gold { background: var(--ceo-gold); }

/* ===== ARCHIVE / PAGE HERO ===== */
.archive-hero { padding: 80px 0 45px; background: var(--ceo-cream); }
.archive-hero h1 { font: 500 clamp(42px,6vw,76px)/1 Georgia, serif; margin: 10px 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 12px; letter-spacing: .08em; color: var(--ceo-muted); margin-bottom: 6px; }
.breadcrumb a { text-decoration: none; color: var(--ceo-muted); }
.breadcrumb a:hover { color: var(--ceo-gold-dark); }

/* ===== SINGLE PAGES ===== */
.content h1,.content h2,.content h3 { font-family: Georgia,'Times New Roman',serif; font-weight: 500; line-height: 1.15; }
.content h1 { font-size: clamp(38px,5vw,68px); }
.content h2 { font-size: 36px; }
.prose { max-width: 820px; }
.muted { color: var(--ceo-muted); }

/* ===== PAGINATION ===== */
.pagination { margin-top: 40px; }
.pagination .page-numbers { display: inline-flex; padding: 9px 13px; border: 1px solid var(--ceo-line); border-radius: 10px; text-decoration: none; margin-right: 5px; }
.pagination .current { background: var(--ceo-ink); color: #fff; border-color: var(--ceo-ink); }

/* ===== GOLD DIVIDER ===== */
.gold-divider { width: 42px; height: 2px; background: var(--ceo-gold); border: 0; margin: 18px 0; }

/* ===== NOTICE BANNER ===== */
.notice-banner { background: var(--ceo-gold); color: #fff; text-align: center; padding: 11px; font-size: 12px; letter-spacing: .08em; }

/* ===== BOOKING PAGE ===== */
.booking-page-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.booking-info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.booking-info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.booking-info-list .bi-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail .cd-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ceo-cream); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.contact-detail p { margin: 0; color: var(--ceo-muted); font-size: 14px; }
.map-embed { border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: var(--ceo-cream); display: flex; align-items: center; justify-content: center; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== ADMIN HELPERS ===== */
.admin-note { font-size: 13px; color: var(--ceo-muted); }
.wp-block-button__link { border-radius: 999px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-image { order: -1; }
  .booking-page-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--ceo-max)); }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .booking-box { padding: 24px 20px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .service-tabs { gap: 6px; }
  .service-tab { padding: 7px 14px; font-size: 11px; }

  /* Prevent any horizontal scrollbar / overflow on mobile */
  .header-inner { gap: 12px; }
  .site-footer { overflow: hidden; } /* .site-header overflow:hidden removed — would clip fixed nav drawer */
  table, .wp-block-table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
}

/* ===== GLOBAL MOBILE OVERFLOW FIX ===== */
@media (max-width: 768px) {
  /* Prevent horizontal scroll — on body/html only, NOT on parent containers
     because overflow:hidden on a parent clips fixed/sticky child elements like the nav drawer */
  body { overflow-x: hidden; } /* html overflow-x removed — breaks position:fixed on iOS Safari */
  /* Fix any absolute/fixed elements that escape viewport */
  .ceo-floating-whatsapp, .ceo-floating-phone { right: 16px !important; }
  /* Images responsive fix */
  img, video, iframe, embed, object { max-width: 100% !important; }
  /* Fix feature split grid on tablet */
  .feature-split { display: grid; grid-template-columns: 1fr; gap: 32px; }
  /* Fix stats strip from overflowing */
  .stats-strip { grid-template-columns: repeat(2, 1fr) !important; }
  /* Hero explore services — hidden on mobile */
  .btn-explore-services { display: none !important; }
}


/* ===== FULL RESPONSIVE ADDITIONS ===== */

/* Pricing grid — stacks on mobile */
@media (max-width: 900px) {
  .grid.grid-3 .pricing-card,
  .pricing-card { padding: 24px 18px; }
}
@media (max-width: 600px) {
  /* Pricing: single column */
  .grid.grid-3:has(.pricing-card),
  div:has(> .pricing-card) { grid-template-columns: 1fr !important; }
  .pricing-card { padding: 20px 16px; }
  .pricing-card .pricing-price { font-size: clamp(28px,8vw,40px); }
}

/* Tables — full-width scrollable on mobile */
@media (max-width: 768px) {
  .card table, table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  td, th { white-space: nowrap; }
}

/* Offers page responsive */
@media (max-width: 767px) {
  .offer-card { padding: 20px 16px; }
  .offer-badge { font-size: 11px; padding: 4px 10px; }
}

/* Team page — single column on small phones */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* Gallery — 2 cols on mobile, not 1 */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* Booking form full width on mobile */
@media (max-width: 600px) {
  .booking-box { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr !important; gap: 12px; }
  select, input, textarea { font-size: 16px; } /* prevent iOS zoom */
}

/* Contact page responsive */
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { order: -1; }
}

/* FAQ page */
@media (max-width: 600px) {
  .faq-question { font-size: 14px; padding: 14px 16px; }
  .faq-answer { padding: 0 16px 16px; }
}

/* Stat boxes — 2 col on phones */
@media (max-width: 480px) {
  .stats-strip { grid-template-columns: repeat(2,1fr) !important; gap: 16px; }
  .stat-box { padding: 24px 12px; }
  .stat-number { font-size: clamp(30px,8vw,44px); }
}

/* Section headings fluid */
@media (max-width: 480px) {
  .section-head h2 { font-size: clamp(26px,7vw,36px); }
  .archive-hero h1 { font-size: clamp(28px,8vw,42px); }
}

/* Hero content safe padding on small screens */
@media (max-width: 380px) {
  .hero-content { padding: 28px 0 32px; }
  .hero-title { font-size: clamp(28px,9vw,48px) !important; }
}

/* Floating buttons — safe on very small screens */
@media (max-width: 380px) {
  .floating-actions { right: 10px; bottom: 14px; gap: 8px; }
  .float-btn { width: 44px; height: 44px; font-size: 17px; }
}

/* Service tabs wrap properly */
@media (max-width: 480px) {
  .service-tabs { flex-wrap: wrap; gap: 6px; }
  .service-tab { flex: 1 1 auto; min-width: 80px; text-align: center; }
}

/* Card images don't overflow */
.card-media { overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* Prevent any element wider than viewport */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }

/* ===== MOBILE RESPONSIVE FIX (v7) ===== */

/* Hero: fix text overlap and layout on mobile */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 32px !important;
    padding-bottom: 36px !important;
    box-sizing: border-box;
    margin-inline: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .hero-content .eyebrow {
    font-size: 10px;
    letter-spacing: .2em;
    margin-bottom: 6px;
  }
  .hero-content h1 {
    font-size: clamp(30px, 8vw, 46px) !important;
    line-height: 1.08 !important;
    margin: 10px 0 14px !important;
  }
  .hero-content p {
    font-size: 14px !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    line-height: 1.55;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  /* Fix hero container padding on mobile */
  .hero .container,
  .hero-content.container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* Services grid: stack to single column at 768px on mobile */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  /* Ensure cards don't overflow */
  .card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .card-body {
    padding: 18px !important;
  }
  /* Service tabs scroll horizontally on mobile */
  .service-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 8px;
  }
  .service-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* Section heads stack on mobile */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-head .btn {
    align-self: flex-start;
  }
  /* Stats strip always 2 columns on mobile */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0;
  }
  /* Feature split single column */
  .feature-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Footer grid single column */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Gallery 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  /* Booking and contact pages */
  .booking-page-wrap,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Prevent wide elements from causing horizontal scroll */
  .section, .site-footer, .notice-banner, .archive-hero {
    overflow-x: hidden;
  }
}

/* Extra small phones: 480px and below */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(26px, 8.5vw, 38px) !important;
  }
  .hero-content p {
    font-size: 13px !important;
  }
  .stat-box {
    padding: 22px 8px !important;
  }
  .stat-box strong {
    font-size: clamp(28px, 9vw, 40px) !important;
  }
  .stat-box span {
    font-size: 10px !important;
  }
  .container {
    width: min(calc(100% - 24px), var(--ceo-max)) !important;
  }
}
