/*
Theme Name: Magic by Rob
Theme URI: https://magicbyrob.com
Author: Rob Greenlee
Description: Custom premium dark theme for Magic by Rob — Houston's premier close-up magician.
Version: 1.0
*/

.hidden, .d-none { display: none !important; }

/* ================================
   VARIABLES & RESET
================================ */
:root {
  --bg:          #111111;
  --bg-alt:      #1A1A1A;
  --green:       #1B4332;
  --green-light: #2D6A4F;
  --gold:        #B8952A;
  --gold-light:  #C9A84C;
  --white:       #F5F5F5;
  --gray:        #A0A0A0;
  --border:      rgba(184,149,42,0.18);
  --max:         1280px;
  --pad:         clamp(60px,8vw,100px);
  --radius:      4px;
  --ease:        0.3s ease;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width:100%; height:auto; display:block; }
a   { color:inherit; text-decoration:none; }
ul  { list-style:none; }

/* ================================
   TYPOGRAPHY
================================ */
h1,h2,h3,h4 { font-weight:700; line-height:1.2; letter-spacing:-0.01em; color:var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { color: var(--gray); }
p strong { color: var(--white); }
em { font-style: italic; }

/* ================================
   LAYOUT
================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section     { padding: var(--pad) 0; }
.section-alt { padding: var(--pad) 0; background: var(--bg-alt); }

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--ease);
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,149,42,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ================================
   SECTION LABEL
================================ */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p  { font-size: 1rem; }

/* ================================
   NAVIGATION
================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}
.site-nav.scrolled {
  background: rgba(17,17,17,0.97);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(0.96);
  transition: opacity var(--ease);
}
.nav-logo img:hover { opacity:0.8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { opacity:1; }

/* Dropdown — top:100% with padding-top bridges the gap so hover doesn't break */
.nav-links .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1C1C1C;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 190px;
  padding: 16px 0 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}
.nav-links .has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-links .dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.75rem;
  opacity: 0.7;
}
.nav-links .dropdown li a:hover { opacity:1; color:var(--gold); }

.nav-cta { padding: 10px 22px !important; font-size: 0.76rem !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ================================
   HERO (homepage)
================================ */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: 30% center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17,17,17,0.88) 0%,
    rgba(17,17,17,0.55) 55%,
    rgba(17,17,17,0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px clamp(20px,5vw,60px) 60px clamp(20px,10vw,120px);
  max-width: 680px;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content p {
  font-size: clamp(1rem,1.8vw,1.2rem);
  color: rgba(245,245,245,0.82);
  margin-bottom: 36px;
  max-width: 480px;
}

/* SPLIT HERO — headline left, form right */
.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-split .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(17,17,17,0.90) 0%,
    rgba(17,17,17,0.72) 50%,
    rgba(17,17,17,0.50) 100%
  );
}
.hero-split-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 60px 80px;
  box-sizing: border-box;
}
.hero-text { max-width: 520px; }
.hero-text h1 { margin-bottom: 20px; font-size: clamp(2rem,4.5vw,3.4rem); }
.hero-text p {
  font-size: clamp(0.95rem,1.4vw,1.1rem);
  color: rgba(245,245,245,0.80);
  line-height: 1.7;
}

/* Hero inline form box */
.hero-form-box {
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(184,149,42,0.25);
  border-radius: 8px;
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-form-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px !important;
  display: block;
}

@media (max-width: 1000px) {
  .hero-split-inner {
    grid-template-columns: 1fr !important;
    padding: 110px 32px 60px !important;
  }
  /* Hide form in hero on mobile — standalone form sections handle it */
  .hero-form-box { display: none !important; }
}
@media (max-width: 640px) {
  .hero-split-inner { padding: 100px 20px 50px !important; }
}

/* ================================
   PAGE HERO (service pages)
================================ */
.page-hero {
  min-height: 62vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
}
/* Corporate hero crops slightly higher so subjects' heads are centered */
.corp-page-hero { background-position: center 20%; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,17,17,1) 0%,
    rgba(17,17,17,0.6) 50%,
    rgba(17,17,17,0.2) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 60px clamp(20px,5vw,60px);
  max-width: 800px;
}
.page-hero-content h1 { margin-bottom: 16px; }
.page-hero-content .hero-sub {
  font-size: clamp(1rem,1.8vw,1.15rem);
  color: rgba(245,245,245,0.82);
  margin-bottom: 32px;
  max-width: 580px;
}

/* ================================
   CONTACT FORM SECTION
================================ */
.contact-form-section {
  background: var(--bg-alt);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cfs-header {
  text-align: center;
  margin-bottom: 40px;
}
.cfs-header h2 { font-size: clamp(1.5rem,2.5vw,2.1rem); margin-bottom: 10px; }
.cfs-header p  { font-size: 1rem; }
.form-inner { max-width: 680px; margin: 0 auto; overflow: hidden; }

/* Video + Form split layout (homepage top section) */
.contact-form-section:has(.vfs-grid) .container {
  max-width: 1500px;
  padding: 0 clamp(16px, 3vw, 48px);
}
.vfs-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 40px;
  align-items: center;
}
.vfs-video .video-wrap { max-width: 100%; margin: 0; }
.cfs-header--left { text-align: left; }
@media (max-width: 860px) {
  .contact-form-section:has(.vfs-grid) .container { padding: 0 clamp(16px, 5vw, 32px); }
  .vfs-grid { grid-template-columns: 1fr; gap: 36px; }
  .vfs-form { order: 1; }
  .vfs-video { order: 2; }
}

/* Contact Form 7 — dark theme styling */
.wpcf7 { max-width: 100%; }
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}
/* Two-column row */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
@media (max-width: 600px) {
  .cf7-row { grid-template-columns: 1fr; }
}
/* Date field with inline label (for email+date row) */
.cf7-date-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.wpcf7-form input[type="date"] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  transition: border-color var(--ease);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(160,160,160,0.55); }
.wpcf7-form input[type="date"] { color-scheme: dark; }
.cf7-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
  display: block;
}
.wpcf7-form textarea {
  height: auto;
  min-height: 90px;
  resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,149,42,0.12);
  background: rgba(255,255,255,0.07);
}
/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: var(--gold);
  color: #111;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 48px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  width: 100%;
  height: auto;
  transition: background var(--ease), transform var(--ease);
}
.wpcf7-form input[type="submit"]:hover { background: var(--gold-light); transform: translateY(-2px); }
/* Validation errors */
.wpcf7-not-valid-tip { color: #e05252; font-size: 0.78rem; margin-top: 4px; display: block; }
.wpcf7-not-valid input,
.wpcf7-not-valid textarea { border-color: #e05252 !important; }
/* Success / error response */
.wpcf7-response-output {
  border: none !important;
  text-align: center;
  padding: 12px 0 0 !important;
  font-size: 0.9rem;
  color: var(--white);
  margin: 0 !important;
}
.wpcf7-mail-sent-ok { color: #5cb85c !important; }
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng { color: #e05252 !important; }

/* ================================
   LOCATION PAGES
================================ */
.loc-event-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.loc-event-link:hover {
  border-color: var(--gold);
  background: rgba(184,149,42,0.08);
  color: var(--gold);
}

/* ================================
   DECK PAGES
================================ */
.deck-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.deck-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.btn-outline {
  display: inline-block;
  padding: 13px 32px;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.btn-outline:hover { background: var(--gold); color: #111; }

/* ================================
   SERVICES GRID
================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 3px;
  margin-top: 8px;
}
.service-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #161616;
  cursor: pointer;
  text-decoration: none;
}
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s ease;
}
.service-card:hover .service-card-bg { transform: scale(1.06); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.3) 100%);
  transition: background var(--ease);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(27,67,50,0.95) 0%, rgba(27,67,50,0.35) 100%);
}
.service-card-content {
  position: relative;
  z-index: 1;
  padding: 36px 32px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p  { font-size: 0.88rem; line-height: 1.65; margin-bottom: 22px; }
.card-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: letter-spacing var(--ease);
}
.service-card:hover .card-link { letter-spacing: 0.15em; }

/* ================================
   LOGO MARQUEE
================================ */
.logo-bar {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logo-bar-label {
  text-align: center;
  margin-bottom: 28px;
}
.logo-bar-label p {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.marquee-track { overflow: hidden; }
.logo-marquee {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marquee 26s linear infinite;
  width: max-content;
}
.logo-marquee:hover { animation-play-state: paused; }
.logo-text-item {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.38;
  white-space: nowrap;
  transition: opacity var(--ease);
}
.logo-marquee:hover .logo-text-item { opacity: 0.7; }
.logo-img-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img-item img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity var(--ease);
}
.logo-marquee:hover .logo-img-item img { opacity: 0.8; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================
   TESTIMONIALS
================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 18px;
  left: 28px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  font-family: Georgia, serif;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245,245,245,0.82);
  margin-bottom: 24px;
  padding-top: 18px;
}
.t-author strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}
.t-author span {
  font-size: 0.78rem;
  color: var(--gold);
}

/* ================================
   PERFORMANCE STYLES
================================ */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 3px;
}
.perf-card {
  background: var(--bg-alt);
  padding: 44px 40px;
  border-left: 3px solid transparent;
  transition: border-color var(--ease), background var(--ease);
}
.perf-card:hover { border-left-color: var(--gold); background: #1E1E1E; }
.perf-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.perf-card h3 { margin-bottom: 16px; }
.perf-card p  { font-size: 0.9rem; }

/* ================================
   ABOUT SECTION
================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2    { margin-bottom: 24px; }
.about-text p     { font-size: 0.95rem; margin-bottom: 18px; }
.about-text .btn  { margin-top: 12px; }
.about-img-wrap {
  position: relative;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(184,149,42,0.3);
  border-radius: var(--radius);
  z-index: -1;
}
.about-img-wrap img { border-radius: var(--radius); width: 100%; }
.about-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.about-placeholder p { font-size: 0.75rem; letter-spacing: 0.12em; opacity: 0.4; }
.about-img-wrap img { width: 100%; height: 520px; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--border); }

/* ================================
   VIDEO SECTION
================================ */
.video-wrap {
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-wrap iframe { width:100%; height:100%; display:block; }

/* ================================
   PHOTO GALLERY GRID
================================ */
.photo-gallery-section { padding-bottom: 0; }
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.photo-gallery-item {
  flex: 0 0 calc((100% - 16px) / 3);
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.photo-gallery-item.photo-gallery-wide {
  flex: 0 0 100%;
  aspect-ratio: 16/9;
}
.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.photo-gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .photo-gallery-item { flex: 0 0 calc((100% - 8px) / 2); }
  .photo-gallery-item.photo-gallery-wide { flex: 0 0 100%; }
}
@media (max-width: 480px) {
  .photo-gallery-item { flex: 0 0 100%; }
  .photo-gallery-item.photo-gallery-wide { flex: 0 0 100%; }
}

/* ================================
   TRUST / SOCIAL PROOF BAR
================================ */
.trust-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.trust-intro {
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ================================
   GALA SPECIALIST / FEATURE BLOCK
================================ */
.feature-block {
  background: var(--green);
  border-radius: var(--radius);
  padding: 48px 52px;
  margin: 60px 0;
  border-left: 4px solid var(--gold);
}
.feature-block h3 { color: var(--white); margin-bottom: 16px; }
.feature-block p  { color: rgba(245,245,245,0.82); font-size: 0.95rem; }

/* ================================
   LOCATION / CONTENT SECTION
================================ */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.content-cols h2  { margin-bottom: 24px; }
.content-cols p   { font-size: 0.95rem; margin-bottom: 16px; }

/* ================================
   FAQ
================================ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--ease);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 24px; }
.faq-a p { font-size: 0.95rem; line-height: 1.85; }

/* ================================
   CTA BAND
================================ */
.cta-band {
  padding: var(--pad) 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p  { max-width: 540px; margin: 0 auto 36px; }

/* ================================
   CONTACT PAGE
================================ */
.contact-page-hero {
  padding: 160px clamp(20px,5vw,60px) 80px;
  text-align: center;
}
.contact-page-hero h1 { margin-bottom: 16px; }
.contact-page-hero p  { font-size: 1.05rem; max-width: 520px; margin: 0 auto 0; }
.contact-info-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 60px;
  flex-wrap: wrap;
}
.contact-info-item {
  text-align: center;
}
.contact-info-item .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.contact-info-item a {
  font-size: 1rem;
  color: var(--white);
  transition: color var(--ease);
}
.contact-info-item a:hover { color: var(--gold); }

/* ================================
   BLOG / SINGLE POST
================================ */
.blog-hero {
  padding: 160px clamp(20px,5vw,60px) 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 32px;
  padding: var(--pad) 0;
}
.post-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease);
}
.post-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #1A1A1A;
}
.post-card-body { padding: 28px; }
.post-card-body .post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.post-card-body h3 { font-size: 1.1rem; margin-bottom: 12px; }
.post-card-body p  { font-size: 0.88rem; line-height: 1.7; }

.single-post-header {
  padding: 160px clamp(20px,5vw,60px) 60px;
  max-width: 860px;
}
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px) var(--pad);
}
.post-content h2      { margin: 40px 0 18px; color: var(--white); }
.post-content p       { font-size: 1rem; line-height: 1.9; margin-bottom: 22px; }
.post-content ul      { margin: 0 0 22px 24px; list-style: disc; }
.post-content ul li   { font-size: 1rem; color: var(--gray); margin-bottom: 8px; }
.post-content strong  { color: var(--white); }
.post-content em      { color: var(--gray); font-size: 0.88rem; }
.post-content a       { color: var(--gold); border-bottom: 1px solid rgba(184,149,42,0.3); transition: border-color var(--ease); }
.post-content a:hover { border-color: var(--gold); }

/* ================================
   FOOTER
================================ */
.site-footer {
  background: #0D0D0D;
  border-top: 1px solid var(--border);
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 52px;
}
.footer-brand img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(0.92);
  opacity: 0.65;
  margin-bottom: 20px;
}
.footer-brand p { font-size: 0.88rem; max-width: 240px; line-height: 1.75; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: color var(--ease);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col address { font-style: normal; }
.footer-col address p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-col address a { color: var(--gray); transition: color var(--ease); }
.footer-col address a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer-social a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--ease);
}
.footer-social a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(160,160,160,0.45); }

/* ================================
   MOBILE
================================ */
@media (max-width: 960px) {
  /* iOS Safari fix: background-attachment:fixed breaks on mobile */
  .hero {
    background-attachment: scroll;
    background-position: center 30%;
  }

  /* Marquee animation is unreliable on mobile Safari — show static grid */
  .marquee-track { overflow: visible; }
  .logo-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 28px 40px;
  }
  /* Hide the duplicate set so logos don't appear twice */
  .logo-img-item:nth-child(n+9) { display: none; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    background: #111;
    padding: 44px clamp(20px,5vw,40px);
    gap: 0;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open > li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links.open > li:last-child { border-bottom: none; }
  .nav-links.open > li > a {
    display: block;
    font-size: 1rem;
    opacity: 1;
    padding: 18px 0;
  }
  .nav-links.open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    border-left: 2px solid var(--gold);
    margin: 0 0 14px 8px;
    padding: 4px 0 4px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-links.open .dropdown li a {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    opacity: 0.65;
    padding: 8px 0;
    display: block;
  }
  .nav-links.open .dropdown li a:hover { opacity: 1; color: var(--gold); }

  .about-grid    { grid-template-columns: 1fr; gap: 44px; }
  .content-cols  { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .hero-content { padding-left: clamp(20px,5vw,40px); }
  .services-grid, .perf-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-info-row { flex-direction: column; gap: 28px; }
  .feature-block { padding: 36px 28px; }
}

/* ================================
   SEO TEXT BLOCK
================================ */
.seo-text-block {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.seo-text-block p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 860px;
  opacity: 0.7;
}
.seo-text-block a { color: var(--gold); text-decoration: underline; }

/* ================================
   CONTACT PAGE
================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* ================================
   BLOG GRID
================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), transform var(--ease);
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.blog-card-img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.blog-card-date { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.blog-card-title { font-size: 1.1rem; line-height: 1.35; }
.blog-card-title a { color: var(--white); }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt { color: var(--gray); font-size: 0.9rem; flex: 1; }
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray);
  transition: all var(--ease);
}
.pagination a:hover,
.pagination .current {
  border-color: var(--gold);
  color: var(--gold);
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ================================
   SINGLE POST
================================ */
.post-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}
.post-content h2,
.post-content h3 {
  margin: 48px 0 20px;
  color: var(--white);
}
.post-content p    { margin-bottom: 24px; color: var(--gray); }
.post-content ul,
.post-content ol   { padding-left: 24px; margin-bottom: 24px; color: var(--gray); }
.post-content li   { margin-bottom: 10px; }
.post-content img  { border-radius: var(--radius); margin: 36px auto; }
.post-content a    { color: var(--gold); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray);
}
.post-meta-footer { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }

/* ================================
   PAGE CONTENT (generic pages)
================================ */
.page-content {
  max-width: 860px;
  margin: 0 auto;
}
.page-content p  { color: var(--gray); margin-bottom: 20px; }
.page-content h2,
.page-content h3 { margin: 36px 0 16px; }
.page-content ul,
.page-content ol { padding-left: 24px; margin-bottom: 20px; color: var(--gray); }
.page-content li { margin-bottom: 8px; }

/* ================================
   BOOKING SPLIT PAGE
================================ */
.booking-split-wrap {
  display: flex;
  min-height: 100vh;
}
.booking-photo-col {
  flex: 0 0 45%;
  background-size: cover;
  background-position: center top;
  position: sticky;
  top: 0;
  height: 100vh;
}
.booking-form-col {
  flex: 1;
  background: var(--bg);
  padding: 80px 60px;
  overflow-y: auto;
}
.booking-form-inner {
  max-width: 640px;
  margin: 0 auto;
}
.booking-form-inner h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}
.booking-form-inner p {
  color: var(--gray);
  margin-bottom: 36px;
}
.booking-fillout-wrap {
  width: 100%;
}
@media (max-width: 860px) {
  .booking-split-wrap { flex-direction: column; }
  .booking-photo-col { flex: none; height: 280px; position: relative; }
  .booking-form-col { padding: 48px 24px; }
}
