/* ================================================
   STYLE.CSS — Sophie Laurent English Teacher Website
   ================================================

   TABLE OF CONTENTS
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base Styles
   3. Utility Classes
   4. Navigation Bar
   5. Hero Section
   6. About Section
   7. Services Section
   8. Courses / Pricing Section
   9. Why Choose Me Section
   10. Testimonials Section
   11. Contact Section
   12. Footer
   13. Animations & Transitions
   14. Responsive (Tablet & Mobile)
================================================ */


/* ================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
================================================ */
:root {
  /* Colour Palette */
  --bg:          #FDF8F8;          /* main page background — soft rose white */
  --bg-alt:      #FBF0F2;          /* alternate section background */
  --bg-deep:     #F5E0E4;          /* slightly deeper blush for cards */
  --rose:        #C9717A;          /* primary accent — dusty rose */
  --rose-dark:   #A85560;          /* hover state for rose */
  --rose-light:  #F0C0C7;          /* light tint for badges / borders */
  --mocha:       #2D1B1E;          /* near-black for headings */
  --body-text:   #5C4249;          /* warm dark for body text */
  --muted:       #9A7880;          /* muted captions / eyebrows */
  --white:       #FFFFFF;
  --whatsapp:    #25D366;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    1.5rem;
  --space-lg:    2.5rem;
  --space-xl:    4rem;
  --space-2xl:   6rem;

  /* Layout */
  --max-width:   1200px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(45, 27, 30, 0.06);
  --shadow-md:   0 6px 24px rgba(45, 27, 30, 0.10);
  --shadow-lg:   0 16px 48px rgba(45, 27, 30, 0.14);

  /* Transitions */
  --transition:  0.25s ease;
}


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

html {
  scroll-behavior: smooth;         /* smooth scrolling between sections */
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Light text-selection protection ─── */
/* Prevents casual copy-paste of content */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Re-enable text selection inside form inputs so users can type/paste */
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--mocha);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--rose); }


/* ================================================
   3. UTILITY CLASSES
================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Shared section padding */
section {
  padding: var(--space-2xl) 0;
}

/* Section header block (eyebrow + title + subtitle) */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose);
  margin-bottom: var(--space-xs);
}

/* Elegant underline flourish on section headings */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--rose-light);
  margin: 0.6rem auto 0;
  border-radius: var(--radius-full);
}

.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}


/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.btn-primary:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 113, 122, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 113, 122, 0.25);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* ================================================
   4. NAVIGATION BAR
================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 248, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rose-light);
  transition: box-shadow var(--transition);
}

/* Class added by JS on scroll */
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mocha);
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--rose);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-text);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--rose);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav right side */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mocha);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================
   5. HERO SECTION
================================================ */
.hero {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Decorative blush blob in top-right corner */
.hero-blob {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #F5C8CF 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ─── Hero Text ─── */
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rose);
  margin-bottom: var(--space-xs);
}

.hero-text h1 {
  margin-bottom: var(--space-md);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Trust badges row */
.hero-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--rose-light);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--body-text);
  box-shadow: var(--shadow-sm);
}
.badge-icon {
  font-size: 1rem;
}

/* ─── Hero Image ─── */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.image-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* Decorative floating info cards on the image */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.float-card strong { display: block; font-size: 0.88rem; color: var(--mocha); }
.float-card small  { color: var(--muted); }
.float-icon { font-size: 1.3rem; }

.float-card--top    { top: 1.5rem; left: -1.5rem; }
.float-card--bottom { bottom: 1.5rem; right: -1.5rem; }


/* ================================================
   6. ABOUT SECTION
================================================ */
.about {
  background: var(--bg-alt);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

/* ─── About Image ─── */
.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Small coloured stat bubbles on the photo */
.stat-bubble {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 100px;
}
.stat-bubble strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--rose);
}
.stat-bubble span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-bubble--a { top: 2rem; right: -1.5rem; }
.stat-bubble--b { bottom: 2rem; left: -1.5rem; }

/* ─── About Text ─── */
.about-text .section-title::after {
  margin: 0.6rem 0 0;   /* left-align the underline in about section */
}

.about-text p {
  color: var(--body-text);
  margin-bottom: var(--space-sm);
}

.about-highlights {
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-highlights li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body-text);
}


/* ================================================
   7. SERVICES SECTION
================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--rose-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* The "not sure?" card has a slightly different style */
.service-card--cta {
  background: var(--bg-deep);
  border-color: var(--rose-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
}
.service-card--cta .btn {
  align-self: flex-start;
  margin-top: auto;
}


/* ================================================
   8. COURSES / PRICING SECTION
================================================ */
.courses {
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--rose-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Featured card — stands out */
.pricing-card--featured {
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--white);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured h3,
.pricing-card--featured .pricing-label,
.pricing-card--featured .price-amount {
  color: var(--white);
}
.pricing-card--featured .price-per,
.pricing-card--featured .pricing-features li {
  color: rgba(255, 255, 255, 0.7);
}
.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

/* "Best Value" ribbon */
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.pricing-price {
  margin: 0.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mocha);
}
.price-per {
  font-size: 0.82rem;
  color: var(--muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.pricing-card--featured .btn-primary {
  background: var(--rose);
  border-color: var(--rose);
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}


/* ================================================
   9. WHY CHOOSE ME SECTION
================================================ */
.why-us {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--rose-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.why-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.why-card h4 {
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--muted);
}


/* ================================================
   10. TESTIMONIALS SECTION
================================================ */
.testimonials {
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #F4A535;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--rose-light);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--mocha);
}
.testimonial-author small {
  font-size: 0.78rem;
  color: var(--muted);
}


/* ================================================
   11. CONTACT SECTION
================================================ */
.contact {
  background: var(--bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ─── Contact Info ─── */
.contact-info .section-title::after {
  margin: 0.6rem 0 0;
}

.contact-info > p {
  color: var(--muted);
  max-width: 360px;
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--rose-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-link:hover {
  border-color: var(--rose);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-deep);
  border-radius: 50%;
}

.contact-link strong {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.contact-link span {
  font-size: 0.92rem;
  color: var(--mocha);
  font-weight: 600;
}

/* ─── Contact Form ─── */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rose-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--body-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--rose-light);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--mocha);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 113, 122, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: -0.5rem;
}


/* ================================================
   12. FOOTER
================================================ */
.footer {
  background: var(--mocha);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}
.footer-logo span { color: var(--rose-light); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
  font-style: italic;
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--space-sm) 0;
}
.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-sm);
}


/* ================================================
   13. ANIMATIONS & TRANSITIONS
================================================ */

/* Fade-in-up animation for sections as they enter the viewport */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applied by JavaScript via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  animation: fadeInUp 0.55s ease forwards;
}

/* Stagger children inside a grid on reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}


/* ================================================
   14. RESPONSIVE (Tablet & Mobile)
================================================ */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {

  :root {
    --space-xl: 3rem;
    --space-2xl: 4.5rem;
  }

  .hero-container      { grid-template-columns: 1fr; text-align: center; }
  .hero-image          { justify-content: center; }  /* image shown, centred below text */
  .image-frame         { max-width: 380px; }
  .hero-sub            { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons        { justify-content: center; }
  .hero-badges         { justify-content: center; }

  .about-container     { grid-template-columns: 1fr; }
  .about-image         { max-width: 380px; margin: 0 auto; }  /* shown, centred above text */

  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid        { grid-template-columns: repeat(2, 1fr); }
  .why-grid            { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-container   { grid-template-columns: 1fr; }
}

/* ── Mobile: ≤ 640px ── */
@media (max-width: 640px) {

  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  .container { padding: 0 var(--space-sm); }

  /* Show hamburger, hide desktop nav links */
  .hamburger  { display: flex; }
  .nav-links  {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rose-light);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-sm) var(--space-lg) var(--space-md);
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }

  /* Hide the navbar CTA button on small screens to save space */
  .nav-actions .btn-primary { display: none; }

  .hero { min-height: auto; padding: var(--space-xl) 0; }
  .hero-text h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-badges  { gap: var(--space-xs); }
  .badge        { font-size: 0.75rem; padding: 0.35rem 0.8rem; }
  .image-frame  { max-width: 300px; }
  .about-image  { max-width: 300px; }

  .services-grid      { grid-template-columns: 1fr; }
  .pricing-grid       { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .why-grid           { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: var(--space-lg); }

  .float-card--top, .float-card--bottom { display: none; }
  .stat-bubble--a, .stat-bubble--b { display: none; }

  .footer-nav { gap: var(--space-sm); }
}
