/* ==================== HYPNOBREATHWORK BY EM — styles.css ==================== */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-ink:        #111;
  --color-paper:      #fff;
  --color-mid:        #333;
  --color-muted:      rgba(255,255,255,0.7);
  --color-link-hover: #5aa7ff;
  --nav-height:       72px;   /* nav row height — hero padding adds extra for book-now row */
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--color-mid);
  overflow-x: hidden;
  background: var(--color-paper);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-ink);
}
h1 { font-size: 4rem;  line-height: 1.2; }
h2 { font-size: 3rem;  margin-bottom: 2rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }
p  { font-size: 1.1rem; line-height: 1.8;   margin-bottom: 1.5rem; }

/* Headings that live on dark backgrounds */
.hero h1, .hero h2, .hero h3,
.testimonial-highlight h1, .testimonial-highlight h2, .testimonial-highlight h3,
.cta-section h1, .cta-section h2, .cta-section h3,
footer h1, footer h2, footer h3 {
  color: var(--color-paper);
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
  color: #111;
  overflow: visible;
}

nav {
  width: 100%;
  padding: 0 1.25rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  /* FIX: overflow visible — never clip child elements */
  overflow: visible;
}

/* Left cluster: logo + nav links — fills the full nav row */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0;           /* nav-links handles its own spacing via space-evenly */
  flex: 1;          /* grow to push Book Now to the very right */
  min-width: 0;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 48px;  /* reduced to give nav links more room */
  width: auto;
}

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  flex: 1;
  justify-content: flex-start; /* sit immediately after the logo */
  align-items: center;
  list-style: none;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 1.8rem;              /* comfortable fixed gap between items */
}

.nav-links li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #111 !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #444 !important; }

/* Underline slide-in on hover / active */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #000000; /* pure black matches the logo square exactly */
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 80%; }

/* ==================== HAMBURGER (hidden on desktop) ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-mid);
  margin: 3px 0;
  border-radius: 3px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* ==================== BUTTONS ==================== */
.cta-button {
  padding: 0.8rem 2rem;
  background: #000000; /* pure black matches the logo square exactly */
  color: var(--color-paper);
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  background: var(--color-mid);
  color: var(--color-paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Secondary / outline variant */
.cta-button.secondary-button {
  background: transparent;
  border: 2px solid var(--color-paper);
  color: var(--color-paper);
}
.cta-button.secondary-button:hover {
  background: var(--color-paper);
  color: var(--color-ink);
}

/* ── Book Now button — fixed below nav, under Contact link ── */
/* ── nav-right: wraps hamburger + Book Now in the nav bar ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Book Now INSIDE the nav bar — visible on all breakpoints */
.nav-book-now {
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #fff !important;
  background: #111 !important;
}
.nav-book-now:hover {
  background: #333 !important;
}

/* Book Now BELOW nav (desktop only, under Contact) — hidden by default */
.header-book-row {
  display: none;
}

/* Desktop only: show the below-nav Book Now fixed under Contact */
@media (min-width: 1281px) {
  .header-book-row {
    display: block !important;
    position: fixed;
    top: var(--nav-height);
    right: 1.25rem;
    z-index: 999;
    padding: 0.4rem 0 0.6rem;
  }
  .desktop-book-now {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #fff !important;
    background: #111 !important;
  }
  .desktop-book-now:hover {
    background: #333 !important;
  }
}

/* ==================== TABLET / MOBILE  (≤ 1280 px) ==================== */
@media (max-width: 1280px) {

  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }

  :root { --nav-height: 68px; }

  nav { padding: 0 1.25rem; }

  /* Show hamburger, hide desktop Book Now row */
  .hamburger { display: flex; }
  .header-book-row { display: none !important; } /* desktop-only second row stays hidden */

  /* Off-canvas slide-in menu */
  .nav-links {
    position: fixed;
    top: var(--nav-height);  /* FIX: uses the CSS variable so it always matches header */
    left: 0;
    width: 100%;
    height: auto;
    padding: 2rem 0;
    list-style: none;
    flex-direction: column;
    gap: 0;
    text-align: center;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 10px 27px rgba(0,0,0,0.15);
    /* Hidden by default */
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2000;
  }
  .nav-links li { padding: 1rem 0; }
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ==================== SECTION — base rule ==================== */
/* Generic section: constrained width, centred, padded */
section {
  padding: 6rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Full-bleed override — applied to sections that span the full viewport */
/* FIX: .hero was missing this override and was being constrained to 1400px */
.hero,
.video-section,
.features-section,
.testimonial-highlight,
.cta-section {
  max-width: 100%;
  margin: 0;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  background: #000000; /* pure black matches the logo square exactly */
  color: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
  position: relative;
  /* FIX: overflow:hidden keeps the radial-gradient animation contained */
  overflow: hidden;
}

.hero::before {
  content: '';
  display: none; /* removed gradient — hero is pure black to match logo */
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 120px;
  height: auto;
  margin-bottom: 3rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.hero h1 {
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 5rem;
}
.hero .subtitle {
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero .tagline {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.85;
  font-style: italic;
}
.hero-cta {
  display: inline-flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-cta .cta-button {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

/* ==================== INTRO ==================== */
.intro {
  text-align: center;
  padding: 8rem 4rem;
}
.intro-content {
  max-width: 800px;
  margin: 0 auto;
}
.intro h2 { font-size: 3.5rem; margin-bottom: 2rem; }
.intro p  { font-size: 1.2rem; line-height: 2; }

/* ==================== VIDEO SECTION ==================== */
.video-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
}
.video-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.video-intro h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.video-intro img {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  display: block;
  margin: 1.5rem auto;
}

/* ==================== FEATURES ==================== */
.features-section {
  text-align: center;
  background: #f9f9f9;
  padding: 6rem 4rem;
}
/* Constrain the heading + intro paragraph but not the grid */
.features-section > h2,
.features-section > p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
/* FIX: Use margin shorthand once to avoid margin-top being overridden */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.feature-box {
  background: var(--color-paper);
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.feature-icon {
  width: min(260px, 75%);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.feature-box p { margin-bottom: 2rem; }
.feature-box .cta-button {
  margin-top: auto;
  align-self: center;
}

/* ==================== TESTIMONIAL HIGHLIGHT ==================== */
.testimonial-highlight {
  background: linear-gradient(135deg, #1a2a3a 0%, #2a4a5a 100%);
  color: var(--color-paper);
  padding: 6rem 4rem;
  text-align: center;
}
.testimonial-highlight .quote {
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 2;
}
.testimonial-highlight .author {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ==================== FINAL CTA SECTION ==================== */
.cta-section {
  text-align: center;
  padding: 8rem 4rem;
  background: #000000; /* pure black matches the logo square exactly */
  color: var(--color-paper);
}
.cta-section h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}
.cta-section > p {
  font-size: 1.3rem;
  margin: 0 auto 3rem;
  max-width: 700px;
}
.cta-buttons {
  display: inline-flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==================== FOOTER ==================== */
footer {
  background: #000000; /* pure black matches the logo square exactly */
  color: var(--color-paper);
  padding: 4rem 4rem 2rem;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  text-align: left;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* FIX: Footer body text — explicitly set color so it's not inherited as dark */
.footer-section p {
  color: var(--color-muted);
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.8rem; }

/* FIX: Footer links — must be explicitly styled (missing from old inline style block) */
.footer-section a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section a:hover { color: var(--color-link-hover); }

/* ── Social icons ── */
/* FIX: Social link styles were missing from the HTML inline-style version */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
  /* Reset footer-section link colour for these circular buttons */
  color: var(--color-paper);
}
.social-links a:hover {
  border-color: var(--color-paper);
  transform: translateY(-3px);
  /* Keep hover colour white, not the blue link-hover */
  color: var(--color-paper);
}
/* FIX: SVG icons — size was set but the class wasn't applied in some templates */
.social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ==================== TABLET RESPONSIVE ==================== */
@media (max-width: 1024px) {
  section           { padding: 4rem 2rem; }
  .intro            { padding: 5rem 2rem; }
  .features-section { padding: 4rem 2rem; }
  .testimonial-highlight { padding: 4rem 2rem; }
  .cta-section      { padding: 5rem 2rem; }

  .features-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-content   { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .social-links     { justify-content: center; }
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero h1        { font-size: 3rem; }
  .hero .subtitle { font-size: 1.2rem; }
  .hero-cta       { flex-direction: column; gap: 1rem; }
  .cta-buttons    { flex-direction: column; gap: 1rem; }
  .intro h2       { font-size: 2.5rem; }
  .cta-section h2 { font-size: 2.5rem; }
}

/* ==================== WORDPRESS / ELEMENTOR THEME OVERRIDE ==================== */
/* These rules sit at the END of the file so they always win specificity battles   */
/* against any theme or page-builder stylesheet that tries to colour nav text white */

header *,
header a,
header nav,
header nav * {
  color: inherit;
}

/* Force nav links to be visibly dark — resistant to any upstream override */
header .nav-links a,
nav .nav-links a,
.nav-links a {
  color: #111 !important;
  font-size: 0.82rem;
}
header .nav-links a:hover,
nav .nav-links a:hover,
.nav-links a:hover {
  color: #444 !important;
}

/* Book Now buttons — white-on-black regardless of theme overrides */
#header-book-now,
.nav-book-now,
.desktop-book-now {
  color: #ffffff !important;
  background: #111 !important;
}
#header-book-now:hover,
.nav-book-now:hover,
.desktop-book-now:hover {
  background: #333 !important;
  color: #ffffff !important;
}
