/* ===================================
   DESKTOP VIEWPORT REDESIGN
   ITTHeal.com — Integrative Touch Therapies

   Purpose: Desktop-optimized layouts for 769px+ screens.
   The site is mobile-first; this file ONLY adds min-width queries.
   No existing max-width rules are touched.

   Inline style overrides: Many HTML elements use style="" attributes.
   !important is required to override them — each use is commented.
   =================================== */

/* Desktop-specific custom properties */
:root {
  --color-focus-ring: #ffd700;
  --shadow-card-hover-desktop: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ===================================
   DESKTOP NAV: hidden by default (mobile-first)
   Shown via min-width: 769px rule below
   =================================== */
.itt-desktop-nav {
  display: none;
}

/* ===================================
   TABLET LANDSCAPE + SMALL DESKTOP (769px+)
   =================================== */
@media (min-width: 769px) {

  /* --- Container --- */
  .mobile-container {
    padding: 0 48px;
  }

  /* --- Header: compact for desktop --- */
  .itt-header {
    height: 80px !important; /* overrides inline style="height: 160px !important" */
    padding: 0 48px !important;
    gap: 1.5rem;
  }

  .itt-header-logo .itt-logo-leaf {
    width: 48px;
    height: 48px;
  }

  .itt-company-name {
    font-size: 1.4rem !important; /* overrides <style> block .itt-company-name 1.5rem !important */
  }

  .itt-tagline {
    font-size: 1rem !important; /* overrides <style> block .itt-tagline 1.5rem !important */
  }

  /* --- Desktop Navigation Bar --- */
  .itt-desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
  }

  .itt-desktop-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--spa-charcoal);
    text-decoration: none;
    padding: 0.375rem 0;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .itt-desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-600);
    transition: width 0.2s ease;
  }

  .itt-desktop-nav a:hover {
    color: var(--sage-600);
  }

  .itt-desktop-nav a:hover::after {
    width: 100%;
  }

  .itt-desktop-nav a:focus-visible {
    outline: 3px solid var(--color-focus-ring);
    outline-offset: 4px;
    border-radius: 2px;
  }

  /* Hide hamburger on desktop */
  .itt-header-menu {
    display: none !important; /* overrides inline display styles on hamburger container */
  }

  /* --- Typography scale-up --- */
  .section-heading {
    font-size: 2.25rem;
    margin-bottom: var(--space-xl);
  }

  .body-large {
    max-width: 70ch;
  }

  .body-text {
    max-width: 70ch;
  }

  /* --- Content Grids --- */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modalities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- About Section: photo beside bio --- */
  #about .luxury-card-elevated .text-center.mb-xl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    text-align: left;
    align-items: center;
  }

  #about .luxury-card-elevated .text-center.mb-xl .mt-lg.mb-lg {
    order: -1;
    margin: 0;
  }

  #about .luxury-card-elevated .text-center.mb-xl img {
    max-width: 240px !important; /* overrides inline style="max-width: 300px" */
  }

  #about .luxury-card-elevated .text-center.mb-xl h2 {
    text-align: left;
  }

  #about .luxury-card-elevated .text-center.mb-xl .subtitle {
    text-align: left;
  }

  #about .luxury-card-elevated .text-center.mb-xl .body-text {
    text-align: left;
  }

  /* Stats row: space out on desktop */
  #about .flex.flex-row.flex-wrap.justify-between {
    gap: var(--space-xl);
  }

  /* --- Booking Wizard --- */
  .booking-container {
    max-width: 880px;
  }

  /* Step progress indicator: larger dots on desktop */
  .booking-progress-indicator {
    gap: var(--space-lg);
  }

  .booking-progress-label {
    font-size: 0.875rem;
  }

  /* --- Footer: 3-column grid ---
     Children: h3, p.subtitle, p.body-text, div.space-y-md, div(legal), div.footer-copyright
     Grid places first 3 in col 1, contacts in col 2, legal in col 3, copyright spans all */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-sm) var(--space-2xl);
    text-align: left !important; /* overrides .text-center class */
  }

  .footer-grid > .header-title {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .footer-grid > .subtitle {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .footer-grid > .body-text {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
    margin-bottom: 0;
  }

  .footer-grid > .space-y-md {
    grid-column: 2;
    grid-row: 1 / 4;
    text-align: left;
    margin-bottom: 0;
  }

  /* Legal links — 5th child (2nd div) */
  .footer-grid > div:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1 / 4;
    text-align: left;
    align-self: start;
    margin-top: 0;
  }

  .footer-grid a {
    display: block;
    margin-bottom: var(--space-sm);
  }

  /* Footer copyright: span full width below grid */
  .footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--warm-gray-700);
  }

  /* --- Card hover effects: more pronounced on desktop --- */
  .luxury-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover-desktop);
  }

  /* --- Pricing cards: 2-col on tablet --- */
  .pricing-cards-mobile {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   FULL DESKTOP (1200px+)
   =================================== */
@media (min-width: 1200px) {

  /* --- Container: wider max-width --- */
  .mobile-container {
    max-width: 1400px;
    padding: 0 64px;
  }

  /* --- Header: more breathing room --- */
  .itt-header {
    padding: 0 64px !important; /* overrides 769px rule padding */
  }

  .itt-desktop-nav {
    gap: 1.75rem;
  }

  .itt-desktop-nav a {
    font-size: 1rem;
  }

  /* --- Typography: scale up for large screens --- */
  .section-heading {
    font-size: 2.5rem;
    margin-bottom: var(--space-xl);
  }

  .subsection-heading {
    font-size: 1.375rem;
  }

  .body-large {
    font-size: 1.1875rem;
    line-height: 1.75;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
  }

  .body-text {
    line-height: 1.75;
    max-width: 70ch;
  }

  /* --- Hero: two-column grid --- */
  .hero-grid {
    display: grid !important; /* overrides inline display: flex; flex-direction: column */
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px !important; /* overrides inline max-width: 64rem */
    text-align: left !important; /* overrides inline text-align: center */
  }

  .hero-text h2 {
    text-align: left !important; /* overrides inline text-align: center */
    font-size: clamp(2.5rem, 5vw, 4rem) !important; /* overrides inline clamp(2rem, 5vw, 3.5rem) — 5vw preferred ensures no shrink at 1200px entry */
  }

  .hero-text p {
    text-align: left !important; /* overrides inline text-align: center */
    margin-left: 0 !important; /* overrides inline margin: 0 auto */
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* --- Content Grids: refine for full desktop --- */
  .modalities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Card internal padding increase */
  .luxury-card {
    padding: var(--space-2xl);
  }

  .luxury-card-elevated {
    padding: var(--space-2xl);
  }

  /* --- Booking Wizard: wider --- */
  .booking-container {
    max-width: 960px;
  }

  /* Session options: 2-column layout */
  .session-options {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .session-options > .session-card {
    flex: 1 1 calc(50% - var(--space-lg));
    min-width: 280px;
  }

  /* Form inputs: prevent over-stretching */
  .booking-container input[type="text"],
  .booking-container input[type="email"],
  .booking-container input[type="tel"],
  .booking-container select,
  .booking-container textarea {
    max-width: 600px;
  }

  /* --- Footer: refine spacing --- */
  .footer-grid {
    gap: var(--space-3xl);
  }

  /* --- Stat numbers: larger on desktop --- */
  .stat-number {
    font-size: 3rem;
  }

  /* --- Pricing cards: multi-column --- */
  .pricing-cards-mobile {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  /* --- CTA transition block: wider context --- */
  .cta-transition-block {
    padding: 3rem 0;
  }

  .cta-transition-block .font-playfair.text-lg {
    font-size: 1.5rem;
  }
}

/* ===================================
   ULTRA-WIDE (1600px+)
   Prevent content from stretching too far
   =================================== */
@media (min-width: 1600px) {
  .hero-grid {
    max-width: 1300px !important; /* cap hero content width on ultra-wide */
  }
}

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
  .itt-desktop-nav a::after {
    transition: none;
  }

  .luxury-card,
  .luxury-card:hover {
    transition: none;
    transform: none;
  }
}
