/*
----01 TYPOGRAPHY SYSTEM
      SPACING SYSTEM (px)
      2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

      FONT SIZE SYSTEM (px)
      10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

      Font weight system
      100 / 200 / 300 / 400 / 500 / 600 / 700 / 800 / 900

      Line height system
      1 / 1.2 / 1.4 / 1.6 / 1.8 / 2 / 2.4 / 2.8 / 3.2 / 3.6 / 4

    02 COLOR SYSTEM (Your Chosen Palette)

    Primary Accent: #BA8C80 (Dusty Rose / Muted Clay Pink - for CTAs, main highlights)
    Secondary Accent: #495867 (Mid-tone Blue-Gray - for subheadings, key info)
    Body Text: #2C3E50 (Deep Blue-Gray / Dark Charcoal)
    Main Background: #F9F7F3 (Soft Off-White / Cream)
    Subtle Accent: #E8DBC9 (Light Warm Beige / Stone - for borders, card backgrounds)
    Primary Hover Color: #A37A70 (Darker Tint of Primary Accent)

    ----- SHADOWS SYSTEM
    Shadow 1: 0px 1px 3px rgba(0, 0, 0, 0.1) - General small shadow
    Shadow 2: 0 1rem 2rem rgba(0, 0, 0, 0.08) - Card shadow
    Shadow 3: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.12) - Featured card shadow

    ---- BORDER RADIUS SYSTEM
    Border Radius 1: 4px
    Border Radius 2: 8px (for cards)
*/

/* Universal Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px, makes font sizing easier to manage */
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Color Variables (Defined once at the root) */
:root {
  --primary-accent: #ba8c80;
  --primary-accent-hover: #a37a70; /* Darker shade for hover states */
  --secondary-accent: #495867;
  --text-color: #2c3e50;
  --background-color: #f9f7f3;
  --subtle-accent: #e8dbc9;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6; /* Comfortable line height for body text */
  font-weight: 400;
  color: var(--text-color); /* Apply text color from variable */
  background-color: var(
    --background-color
  ); /* Apply background color from variable */

  display: flex; /* Use flexbox to stack header, main, and footer */
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes full viewport height */
}

/* ***************** */
/* REUSABLE COMPONENTS & TYPOGRAPHY BASE */
/* ***************** */

.container {
  max-width: 130rem; /* Max width for central content (1300px) */
  width: 100%; /* Ensures it always takes full available width up to max-width */
  padding: 0 3.2rem; /* 32px padding on left and right for smaller screens */
  margin: 0 auto; /* Center the container horizontally */
}

/* General Heading Styles (Apply Playfair Display) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  line-height: 1.2; /* Tight line height for headings */
  color: var(--secondary-accent); /* Default heading color */
}

.heading-primary {
  font-size: 5.2rem; /* 52px */
  font-weight: 700; /* Bold */
  color: var(--secondary-accent); /* Primary color for main site heading */
  margin-bottom: 3.2rem; /* Space below the heading (32px) */
  line-height: 1.05; /* Tight line height for the heading */
}

/* For main section headings (like "Lifestyle Studio Session" or "Get in Touch") */
.section-heading {
  font-size: 4.4rem; /* Adjusted for section heading */
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.4rem; /* Spacing below section heading */
  color: var(--secondary-accent);
}

/* For section subheadings (like "For a family..." or "Have questions...") */
.section-subheading {
  font-family: "Inter", sans-serif; /* Keep Inter for subtext */
  font-size: 1.8rem; /* 18px */
  color: var(--text-color);
  text-align: center;
  margin-bottom: 6.4rem; /* Spacing below subheading (64px) */
  font-style: italic;
}

/* Button Styles */
.btn:link,
.btn:visited {
  display: inline-block; /* Essential for padding/margin on inline elements */
  text-decoration: none; /* Remove underline from links */
  padding: 1.6rem 3.2rem; /* Button padding (16px top/bottom, 32px left/right) */
  font-size: 1.8rem; /* 18px */
  font-weight: 600; /* Semi-bold */
  border-radius: 4px; /* Border radius for the button */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  text-align: center; /* Center text in the button */
  cursor: pointer; /* Indicate it's clickable */
  border: none; /* Remove default button border */
}

.btn-primary:link,
.btn-primary:visited,
.form-submit-btn {
  /* Apply these styles to the form submit button too */
  background-color: var(--primary-accent); /* Primary color from variable */
  color: #fff; /* White text */
}

.btn-primary:hover,
.btn-primary:active,
.form-submit-btn:hover,
.form-submit-btn:active {
  /* Apply these hover styles to the form submit button too */
  background-color: var(--primary-accent-hover); /* Darker tint for hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

.btn-secondary:link,
.btn-secondary:visited {
  background-color: #ffffff; /* White background for secondary button */
  color: var(--secondary-accent); /* Dark text for contrast */
  border: 2px solid var(--secondary-accent); /* Border matching text color */
}

.btn-secondary:hover,
.btn-secondary:active {
  background-color: var(--secondary-accent); /* Secondary accent on hover */
  color: #fff; /* White text on hover */
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.37); /* Subtle shadow on hover */
}

.margin-right {
  margin-right: 1.6rem; /* 16px - For spacing between two buttons */
}

/* ***************** */
/* MAIN HEADER SECTION (For your main website) */
/* ***************** */
.header {
  background-color: var(
    --background-color
  ); /* Light background for the header */
  padding: 0 4.8rem; /* Padding for the header (48px left/right) */
  display: flex; /* Use flexbox for alignment */
  justify-content: space-between; /* Space between logo and navigation */
  align-items: center; /* Vertically align items */
  height: 9.6rem; /* Fixed height for the header (96px) */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

.logo {
  height: 7.2rem; /* Adjust logo size (72px) - slightly larger for impact */
  flex-shrink: 0; /* Prevent logo from shrinking */
}

/* ***************** */
/* MAIN NAVIGATION */
/* ***************** */
.main-nav-list {
  list-style: none; /* Remove default list styles */
  display: flex; /* Use flexbox for horizontal layout */
  gap: 3.2rem; /* Space between navigation items (32px) */
}

.main-nav-link:link,
.main-nav-link:visited {
  text-decoration: none; /* Remove underline from links */
  color: var(--secondary-accent); /* Text color for navigation links */
  font-size: 1.8rem; /* 18px */
  font-weight: 500; /* Medium weight */
  transition: color 0.3s ease; /* Smooth transition for hover effects */
}

.main-nav-link:hover,
.main-nav-link:active {
  color: var(--primary-accent); /* Change color on hover/active */
}

/* Mobile navigation toggle button (hidden by default on desktop) */
.nav-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000; /* Ensure it's above other content */
  position: relative;
}

.nav-toggle-icon {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--secondary-accent); /* Color of the hamburger lines */
  position: relative;
  transition: background-color 0.3s, transform 0.3s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--secondary-accent);
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}

.nav-toggle-icon::before {
  top: -8px;
}

.nav-toggle-icon::after {
  top: 8px;
}

/* State when the navigation is OPEN (hamburger transforms into X) */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent; /* Hide middle line when open */
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(8px) rotate(45deg); /* Rotate and move top line */
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-8px) rotate(-45deg); /* Rotate and move bottom line */
}

/* ***************** */
/* HERO SECTION STYLES */
/* ***************** */

.section-hero {
  background-color: var(--background-color);
  padding: 0; /* No direct padding, container inside handles it */
  display: flex;
  align-items: center;
  flex-grow: 1; /* Allows hero section to grow and fill available space */
}

.hero-container {
  /* Inherits max-width, width, margin from .container */
  padding: 9.6rem 4.8rem; /* Padding for the hero section (96px top/bottom, 48px left/right) */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6.4rem;
  align-items: center;
}

/* Ensure secondary heading uses Playfair Display */
.heading-secondary {
  font-family: "Playfair Display", serif;
  font-size: 3.6rem; /* 36px */
  font-weight: 600; /* Semi-bold */
  margin-bottom: 2.4rem; /* Space below the subheading (24px) */
  line-height: 1.2;
  color: var(
    --secondary-accent
  ); /* Use secondary accent for secondary heading */
}

.hero-description {
  font-size: 1.8rem; /* 18px */
  color: var(--text-color);
  margin-bottom: 4.8rem; /* Space below the description (48px) */
  line-height: 1.6;
}

.hero-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ***************** */
/* DYNAMIC TEXT ROTATOR STYLES */
/* ***************** */
.dynamic-text-container {
  /* Basic styling for the container holding the sentence */
  max-width: 800px; /* Adjust max-width as needed */
  line-height: 1.4; /* Default line height for larger screens */
  font-size: 4.8rem; /* Large font size for desktop */
  color: var(--text-color); /* Inherit from body or set explicitly */
  text-align: center; /* Center the text */
  margin: 6.4rem auto; /* Add margin above/below and center */
  padding: 0 2rem; /* Add some horizontal padding */
  box-sizing: border-box; /* Include padding in element's total width */
}

.changing-word {
  display: inline-block; /* Essential for transforms and transitions */
  min-width: 350px; /* Adjust based on your longest word to prevent layout shifts */
  white-space: nowrap; /* Prevent word from wrapping onto multiple lines */
  font-weight: 600; /* Make it stand out */
  color: var(--primary-accent); /* Your primary accent color */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0; /* Start hidden for initial fade-in */
  transform: translateY(
    20px
  ); /* Start slightly below for "rolling in" effect */
}

.changing-word.show {
  opacity: 1; /* Fade in */
  transform: translateY(0); /* Roll into position */
}

/* ***************** */
/* PRICING SECTION STYLES */
/* ***************** */

.section-pricing {
  padding: 9.6rem 0; /* Standard section padding (96px top/bottom) - space around the outer box */
  background-color: var(--background-color); /* Soft off-white background */
}

/* Styling for the outer box enclosing the heading, subheading, and cards */
.section-pricing .container {
  background-color: #fff; /* White background for the outer box */
  border: 1px solid var(--subtle-accent); /* Light warm beige border */
  border-radius: 8px; /* Rounded corners for the box */
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
  padding: 4.8rem; /* Internal padding for the outer box */
  /* The existing .container rules (max-width, width, margin:auto) apply here too */
}

.pricing-cards-container {
  display: flex;
  justify-content: center; /* Center cards horizontally */
  align-items: flex-start; /* Align cards to the top if they have different heights */
  gap: 3.2rem; /* Space between cards (32px) */
  flex-wrap: wrap; /* Allow cards to wrap to the next line on smaller screens */
  /* max-width, width, margin:0 auto; are handled by the parent .container */
  /* padding: 0 3.2rem; was here, but now handled by parent .container padding */
}

.pricing-card {
  flex: 1 1 26rem; /* Adjusted: Cards are now a little smaller (260px base width) */
  background-color: #fff; /* White background for cards */
  border-radius: 8px; /* Rounded corners for the card */
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08); /* Subtle shadow */
  padding: 4rem; /* Adjusted: Inner padding for the card (40px) */
  display: flex; /* Use flexbox to stack content inside the card */
  flex-direction: column;
  align-items: center; /* Center text content horizontally within the card */
  text-align: center;
  transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

.pricing-card:hover {
  transform: translateY(-1rem); /* Lift card slightly on hover */
}

/* Specific styling for the featured card (Signature Looney) */
.pricing-card.featured-card {
  border: 2px solid var(--primary-accent); /* A subtle border */
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.12); /* Slightly more prominent shadow */
}

.package-title {
  /* Inherits font-family and line-height from h3 default */
  color: var(--secondary-accent);
  margin-bottom: 0.8rem;
  font-size: 3.2rem; /* Highlighted: Increased font size for package title */
}

.package-starting-at {
  font-size: 1.6rem; /* 16px */
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.package-price {
  font-family: "Playfair Display", serif; /* Use Playfair Display for price */
  font-size: 5.2rem; /* Adjusted for a smaller desktop size */
  font-weight: 700;
  color: var(--primary-accent); /* Dusty Rose for price */
  margin-bottom: 3.2rem; /* Spacing below price (32px) */
  line-height: 1; /* Ensure price doesn't take too much vertical space */
}

.package-price sup {
  font-size: 0.5em; /* Smaller size for currency symbol */
  top: -0.5em; /* Adjust vertical position */
}

.package-features {
  list-style: none; /* Remove default list bullets */
  margin: 0; /* Remove default margin from ul */
  padding: 0; /* Remove default padding from ul */
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Space between list items (12px) */
  text-align: left; /* Align list items to the left within the card */
  margin-bottom: 4.8rem; /* Space before the button (48px) */
}

.package-features li {
  font-size: 1.6rem; /* 16px */
  color: var(--text-color);
  display: flex; /* Use flex to align icon and text */
  align-items: flex-start; /* CRITICAL: Aligns icon to the top of the text */
  gap: 0.8rem; /* Space between icon and text */
}

.feature-icon {
  width: 2rem; /* Icon size (20px) */
  height: 2rem;
  color: var(--primary-accent); /* Color of the checkmark icon */
  flex-shrink: 0; /* Prevent icon from shrinking on small content */
  margin-top: 0.2rem; /* Minor adjustment to visually align with text baseline if needed */
}

/* ***************** */
/* CONTACT SECTION STYLES */
/* ***************** */
.section-contact {
  padding: 9.6rem 0; /* Standard section padding */
  background-color: var(--background-color); /* Matches body background */
}

.contact-form-container {
  max-width: 60rem; /* Max width for the form itself */
  margin: 0 auto; /* Center the form container */
  background-color: #fff; /* White background for the form box */
  border: 1px solid var(--subtle-accent); /* Subtle border */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05); /* Subtle shadow */
  padding: 4.8rem; /* Inner padding for the form box */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem; /* Space between form groups */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* Space between label and input */
}

.form-group label {
  font-size: 1.6rem; /* Label font size */
  font-weight: 500; /* Medium weight */
  color: var(--secondary-accent); /* Use secondary accent for labels */
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.6rem; /* Padding inside input fields */
  font-family: "Inter", sans-serif;
  font-size: 1.6rem; /* Input text size */
  color: var(--text-color);
  border: 1px solid var(--subtle-accent); /* Subtle border */
  border-radius: 4px; /* Slightly rounded corners for inputs */
  background-color: #fcfcfc; /* Very light background for inputs */
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ccc; /* Lighter placeholder text */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent); /* Highlight border on focus */
  box-shadow: 0 0 0 0.2rem rgba(186, 140, 128, 0.25); /* Subtle shadow on focus */
}

.form-group textarea {
  resize: vertical; /* Allow vertical resizing of textarea */
  min-height: 10rem; /* Minimum height for textarea */
}

.form-submit-btn {
  align-self: center; /* Center the button within the form */
  width: auto; /* Allow button to size naturally based on content */
  min-width: 20rem; /* Minimum width for the button */
  padding: 1.6rem 4.8rem; /* Larger padding for a more prominent button */
  margin-top: 2.4rem; /* Space above the button */
}

/* ------------------------ */
/* RESPONSIVENESS */
/* ------------------------ */

/* For large desktops / very wide screens (e.g., above 1300px) */
/* The .container max-width already handles this, but for very specific adjustments you could add a media query here */

/* For typical laptops / smaller desktops (e.g., 1200px or less) */
@media (max-width: 75em) {
  /* 1200px / 16px = 75em */
  .hero-text .btn:link,
  .hero-text .btn:visited {
    padding: 1.2rem 2.4rem; /* Slightly reduced padding for buttons */
    font-size: 1.6rem; /* Slightly reduced font size for buttons */
  }
  .hero-text .margin-right {
    margin-right: 1.2rem; /* Slightly reduced margin between buttons */
  }
}

/* For tablets (e.g., 960px or less) */
@media (max-width: 60em) {
  /* 960px / 16px = 60em */
  html {
    font-size: 56.25%; /* 1rem = 9px */
  }
  .header {
    padding: 0 3.2rem; /* Adjust header padding */
    height: 8rem; /* Slightly smaller header height */
  }
  .logo {
    height: 6rem; /* Adjust logo size */
  }
  .main-nav-list {
    gap: 2.4rem; /* Reduce nav item gap */
  }
  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 1.6rem; /* Smaller nav links */
  }

  .hero-container {
    gap: 4.8rem; /* Reduce hero gap */
    padding: 8rem 3.2rem; /* Adjust hero container padding */
  }
  .heading-primary {
    font-size: 4.4rem; /* Smaller primary heading */
  }
  .heading-secondary {
    font-size: 3rem; /* Smaller secondary heading */
  }
  .hero-description {
    font-size: 1.6rem; /* Smaller description text */
  }

  .section-heading {
    font-size: 3.8rem;
  }
  .section-subheading {
    font-size: 1.6rem;
  }
  .section-pricing .container {
    /* Adjust outer box padding for tablets */
    padding: 4rem 3.2rem;
  }
  .pricing-cards-container {
    padding: 0 2.4rem; /* This padding should be inside the container */
    gap: 2.4rem;
  }
  .pricing-card {
    padding: 3rem; /* Adjusted card padding */
    flex: 1 1 calc(50% - 1.2rem); /* Two cards per row, with gap */
  }
  .package-title {
    font-size: 2.8rem; /* Adjusted for tablets */
  }
  /* Removed .package-price font-size for this media query as base is now 5.2rem */

  .section-contact .container {
    /* Adjust contact form outer container padding */
    padding: 4rem 3.2rem;
  }
  .contact-form-container {
    /* Adjust contact form inner padding */
    padding: 3.2rem;
  }
  .form-group label {
    font-size: 1.5rem;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1.5rem;
    padding: 1rem 1.4rem;
  }
  .form-submit-btn {
    padding: 1.4rem 4rem;
    min-width: 18rem;
  }

  /* Dynamic Text Rotator for Tablets */
  .dynamic-text-container {
    font-size: 4rem; /* Slightly smaller on tablets */
    line-height: 1.3;
    margin: 4.8rem auto;
  }
  .changing-word {
    min-width: 300px; /* Adjust min-width for tablet font size */
  }
}

/* For larger phones (e.g., 768px or less) */
@media (max-width: 48em) {
  /* 768px / 16px = 48em */
  /* Header adjustments for mobile */
  .header {
    flex-direction: row; /* Keep logo and hamburger on same row */
    justify-content: space-between; /* Space out logo and toggle */
    align-items: center;
    padding: 1.6rem 3.2rem; /* Adjust padding */
    height: 8rem; /* Restore header height */
  }

  .main-nav {
    /* This is the container for the actual nav list */
    position: absolute; /* Position it absolutely to overlay content */
    top: 8rem; /* Below the header height */
    left: 0;
    width: 100%;
    height: 100vh; /* Make it full viewport height to cover content */
    background-color: rgba(
      255,
      255,
      255,
      0.98
    ); /* Semi-transparent white overlay */
    backdrop-filter: blur(5px); /* Optional: blur background content */
    transform: translateX(100%); /* Initially off-screen to the right */
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smooth slide animation */
    z-index: 999; /* Below toggle, above content */

    display: flex; /* Flexbox for centering/aligning nav items */
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Prevent clicks when hidden */
  }

  .main-nav-list {
    flex-direction: column; /* Stack nav links vertically */
    gap: 3.2rem; /* Space between stacked links */
    font-size: 3.2rem; /* Larger font size for mobile menu links */
    text-align: center;
  }

  /* When nav is open, slide it into view */
  .main-nav[aria-expanded="true"] {
    /* Use aria-expanded from JS */
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  /* Show the hamburger button on mobile */
  .nav-toggle {
    display: block; /* Show on mobile */
  }

  .hero-container {
    grid-template-columns: 1fr; /* Stack hero image and text vertically */
    gap: 4.8rem;
    text-align: center;
    padding: 6.4rem 3.2rem; /* Adjust padding */
  }
  .hero-image-box {
    order: -1; /* Move image above text when stacked */
    margin-bottom: 2.4rem; /* Add space below image */
  }
  .hero-text .btn {
    margin-right: 0;
    margin-bottom: 1.6rem;
  }
  .hero-text .btn:last-child {
    margin-bottom: 0;
  }

  .section-heading {
    font-size: 3.6rem;
  }
  .section-subheading {
    font-size: 1.4rem;
    margin-bottom: 4.8rem;
  }
  .section-pricing .container {
    /* Adjust outer box padding for phones */
    padding: 3.2rem 2.4rem;
  }
  .pricing-card {
    padding: 3.2rem; /* Revert to default padding for consistency on phones */
    flex: 1 1 100%; /* Stack cards vertically (one per row) */
    max-width: 40rem; /* Optional: constrain individual card width on mobile */
  }
  /* Removed .package-price font-size for this media query as base is now 5.2rem */
  .pricing-cards-container {
    flex-direction: column; /* Explicitly stack */
    align-items: center; /* Center stacked cards */
    gap: 3.2rem; /* Adjust gap when stacked */
    /* No padding here as parent .container handles it */
  }

  .section-contact .container {
    /* Adjust contact form outer container padding for phones */
    padding: 3.2rem 2.4rem;
  }
  .contact-form-container {
    /* Adjust contact form inner padding for phones */
    padding: 2.4rem;
  }
  .form-submit-btn {
    padding: 1.2rem 3.2rem;
    min-width: 16rem;
  }

  /* Dynamic Text Rotator for Larger Phones */
  .dynamic-text-container {
    font-size: 3.2rem; /* Adjust font size for mobile if needed */
    line-height: 1.1; /* DECREASED: Reduced line height for mobile */
    margin: 4.8rem auto;
  }
  .changing-word {
    min-width: 200px; /* Adjust min-width for smaller mobile font size */
  }
}

/* For very small phones (e.g., 500px or less) */
@media (max-width: 31.25em) {
  /* 500px / 16px = 31.25em */
  html {
    font-size: 50%; /* 1rem = 8px */
  }
  .header {
    padding: 1.6rem;
  }
  .logo {
    height: 4rem;
  }
  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 1.6rem; /* Consistent on smaller phones */
  }

  .hero-container {
    padding: 4.8rem 1.6rem;
  }
  .heading-primary {
    font-size: 3.6rem;
  }
  .heading-secondary {
    font-size: 2.4rem;
  }
  .hero-description {
    font-size: 1.4rem;
  }

  .section-pricing {
    padding: 6.4rem 0;
  }
  .section-heading {
    font-size: 3.2rem;
  }
  .section-pricing .container {
    /* Adjust outer box padding for very small phones */
    padding: 2.4rem 1.6rem;
  }
  /* Removed .package-price font-size for this media query as base is now 5.2rem */
  .pricing-card {
    padding: 2.4rem;
  }
  .package-features {
    gap: 0.8rem;
  }

  .section-contact .container {
    /* Adjust contact form outer container padding for very small phones */
    padding: 2.4rem 1.6rem;
  }
  .contact-form-container {
    /* Adjust contact form inner padding for very small phones */
    padding: 1.6rem;
  }
  .form-submit-btn {
    padding: 1rem 2.4rem;
    min-width: 14rem;
  }

  /* Dynamic Text Rotator for Very Small Phones */
  .dynamic-text-container {
    font-size: 2.5rem; /* Further adjust for very small screens */
    line-height: 1.05; /* Even tighter line height */
    margin: 3.2rem auto;
  }
  .changing-word {
    min-width: 150px;
  }
}

/*
 *******************************************************************
 * FAQ SECTION STYLES - INTEGRATED INTO MAIN STYLESHEET
 * This section contains all styles for the 2-level FAQ accordion.
 *******************************************************************
*/

.section-faq {
  padding: 9.6rem 0; /* Standard section padding */
  background-color: var(--background-color); /* Matches body background */
}

/* Outer wrapper for the entire accordion structure */
.accordion-container {
  max-width: 80rem; /* Limit width for readability */
  margin: 0 auto; /* Center the accordion container */
  background-color: #fff; /* White background for the main box */
  border: 1px solid var(--subtle-accent); /* Subtle border */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05); /* Subtle shadow */
  overflow: hidden; /* Ensures rounded corners and max-height work */
}

/* Styles for each category block */
.accordion-category {
  border-bottom: 1px solid var(--subtle-accent); /* Separator between categories */
  transition: background-color 0.3s ease;
}

.accordion-category:last-child {
  border-bottom: none; /* No border for the last category */
}

.accordion-category.open .category-heading {
  background-color: var(
    --subtle-accent
  ); /* Highlight category heading when open */
}

/* Styles for the clickable category heading */
.category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.4rem 3.2rem; /* Padding for the category title */
  cursor: pointer; /* Indicate it's clickable */
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.category-heading:hover {
  background-color: var(--subtle-accent); /* Highlight on hover */
}

.category-heading h4 {
  font-family: "Playfair Display", serif; /* Use Playfair for category titles */
  font-size: 2.4rem; /* Larger font for category titles */
  font-weight: 700; /* Bold */
  color: var(--secondary-accent); /* Color consistent with main headings */
  margin: 0; /* Remove default h4 margin */
  flex-grow: 1;
  padding-right: 1.6rem;
}

.category-icon {
  font-size: 1.8rem; /* Icon size for category */
  color: var(--primary-accent); /* Icon color */
  transition: transform 0.3s ease-in-out; /* Smooth rotation transition */
}

.accordion-category.open .category-icon {
  transform: rotate(180deg); /* Rotate icon when category is open */
}

/* Content area for questions within each category */
.category-content {
  max-height: 0; /* Initially hidden */
  overflow: hidden; /* Hide overflow content */
  transition: max-height 0.7s ease-in-out; /* Smooth slide transition */
  background-color: var(--background-color); /* Matches page background */
}

.accordion-category.open .category-content {
  /* Increased max-height significantly to prevent content clipping */
  max-height: 5000px;
  /* No padding here, as individual items handle their own padding */
}

/* --- Styles for individual FAQ items (questions and answers) --- */
.accordion-category .item {
  /* Targeted within category */
  border-bottom: 1px solid var(--subtle-accent); /* Separator between items */
  transition: background-color 0.3s ease;
}

.accordion-category .item:last-child {
  border-bottom: none; /* No border for the last item in a category */
}

.accordion-category .item.open {
  background-color: #fff; /* White background when individual item is open */
}

.accordion-category .question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3.2rem; /* Padding for the question title */
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.accordion-category .question:hover {
  background-color: var(--subtle-accent); /* Highlight on hover */
}

.accordion-category .question h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.8rem; /* Font size for questions */
  font-weight: 600;
  color: var(--secondary-accent);
  margin: 0;
  flex-grow: 1;
  padding-right: 1.6rem;
}

.accordion-category .question .icon {
  font-size: 1.4rem; /* Icon size */
  color: var(--primary-accent);
  transition: transform 0.3s ease-in-out;
}

.accordion-category .item.open .question .icon {
  transform: rotate(180deg);
}

.accordion-category .answer-content {
  max-height: 0; /* Initially hidden */
  overflow: hidden;
  transition: max-height 0.7s ease-in-out, padding 0.7s ease-in-out;
  padding: 0 3.2rem;
}

.accordion-category .item.open .answer-content {
  /* Increased max-height significantly to prevent content clipping */
  max-height: 9999px;
  padding: 0 3.2rem 2.4rem 3.2rem;
}

.accordion-category .answer-content p {
  font-size: 1.6rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.accordion-category .answer-content p:last-child {
  margin-bottom: 0;
}

/* ------------------------ */
/* RESPONSIVE ADJUSTMENTS FOR 2-LEVEL FAQ */
/* ------------------------ */

@media (max-width: 60em) {
  /* 960px / 16px = 60em */
  .accordion-container {
    max-width: 70rem;
    margin: 0 2.4rem;
  }
  .category-heading {
    padding: 2rem 2.4rem;
  }
  .category-heading h4 {
    font-size: 2.2rem;
  }
  .category-icon {
    font-size: 1.6rem;
  }
  .accordion-category .question {
    padding: 1.8rem 2.4rem;
  }
  .accordion-category .question h3 {
    font-size: 1.7rem;
  }
  .accordion-category .question .icon {
    font-size: 1.3rem;
  }
  .accordion-category .answer-content {
    padding: 0 2.4rem;
  }
  .accordion-category .item.open .answer-content {
    padding: 0 2.4rem 2rem 2.4rem;
  }
  .accordion-category .answer-content p {
    font-size: 1.5rem;
  }
}

@media (max-width: 48em) {
  /* 768px / 16px = 48em */
  .accordion-container {
    max-width: 100%;
    margin: 0 1.6rem;
    border-radius: 4px;
  }
  .category-heading {
    padding: 1.8rem 2rem;
  }
  .category-heading h4 {
    font-size: 2rem;
  }
  .category-icon {
    font-size: 1.5rem;
  }
  .accordion-category .question {
    padding: 1.4rem 2rem;
  }
  .accordion-category .question h3 {
    font-size: 1.6rem;
  }
  .accordion-category .question .icon {
    font-size: 1.2rem;
  }
  .accordion-category .answer-content {
    padding: 0 2rem;
  }
  .accordion-category .item.open .answer-content {
    padding: 0 2rem 1.6rem 2rem;
  }
  .accordion-category .answer-content p {
    font-size: 1.4rem;
  }
}

@media (max-width: 31.25em) {
  /* 500px / 16px = 31.25em */
  .category-heading {
    padding: 1.4rem 1.6rem;
  }
  .category-heading h4 {
    font-size: 1.8rem;
  }
  .category-icon {
    font-size: 1.4rem;
  }
  .accordion-category .question {
    padding: 1.2rem 1.6rem;
  }
  .accordion-category .question h3 {
    font-size: 1.5rem;
  }
  .accordion-category .question .icon {
    font-size: 1.1rem;
  }
  .accordion-category .answer-content {
    padding: 0 1.6rem;
  }
  .accordion-category .item.open .answer-content {
    padding: 0 1.6rem 1.2rem 1.6rem;
  }
  .accordion-category .answer-content p {
    font-size: 1.3rem;
  }
}

/*
 *******************************************************************
 * FOOTER SECTION STYLES
 *******************************************************************
*/
.footer {
  background-color: var(--secondary-accent); /* Dark background for footer */
  /* Adjusted padding for overall footer width */
  padding: 6.4rem 0; /* Decreased padding from 9.6rem to 6.4rem */
  color: #fff; /* White text for contrast */
  margin-top: auto; /* Pushes footer to the bottom of the page */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr; /* Adjust column widths as needed */
  gap: 6.4rem; /* Spacing between columns */
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer-logo {
  height: 8rem; /* Slightly larger logo for footer */
  filter: brightness(0) invert(1); /* Makes logo white for dark background */
  align-self: flex-start; /* Align logo to the start of its column */
}

.footer-description {
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
}

.footer-heading {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-accent); /* Accent color for headings */
  margin-bottom: 2.4rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-link:hover,
.footer-link:active {
  color: var(--primary-accent);
}

.contact-details {
  font-style: normal; /* Remove italic from address */
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-item {
  display: flex;
  align-items: flex-start; /* Align icon with the top of the text */
  gap: 1.2rem;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-icon {
  width: 2.4rem; /* Icon size */
  height: 2.4rem;
  color: var(--primary-accent); /* Icon color */
  flex-shrink: 0; /* Prevent icon from shrinking */
  margin-top: 0.1rem; /* Slight adjustment for visual alignment */
}

.contact-link:link,
.contact-link:visited {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover,
.contact-link:active {
  color: var(--primary-accent);
}

.address-text {
  /* This style specifically targets the plain address text within contact-details,
     if it's not a hyperlink */
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  line-height: 1.6;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.social-link {
  display: block; /* Make SVG clickable area larger */
  transition: transform 0.3s ease;
}

.social-link svg {
  width: 2.8rem; /* Social icon size */
  height: 2.8rem;
  color: rgba(255, 255, 255, 0.6); /* Slightly muted color for social icons */
  transition: color 0.3s ease;
}

.social-link:hover svg {
  color: var(--primary-accent); /* Change color on hover */
  transform: translateY(-0.2rem); /* Slight lift on hover */
}

.copyright {
  grid-column: 1 / -1; /* Span across all columns */
  text-align: center;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6.4rem; /* Space above copyright */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle line above copyright */
  padding-top: 2.4rem;
}

/* Footer Responsiveness */
@media (max-width: 60em) {
  /* Tablets */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    gap: 4.8rem;
  }
  .footer-logo-col,
  .footer-contact-col,
  .footer-nav,
  .footer-social-col {
    text-align: center; /* Center content in columns */
    align-items: center; /* Center flex items */
  }
  .footer-logo {
    align-self: center; /* Center logo on tablet */
  }
  .copyright {
    margin-top: 4.8rem;
  }
}

@media (max-width: 48em) {
  /* Large Phones */
  .footer-grid {
    grid-template-columns: 1fr; /* Single column on phones */
    gap: 4.8rem;
  }
  .copyright {
    margin-top: 3.2rem;
  }
}

@media (max-width: 31.25em) {
  /* Small Phones */
  .footer {
    padding: 6.4rem 0;
  }
  .footer-grid {
    gap: 3.2rem;
  }
  .footer-logo {
    height: 6rem;
  }
  .footer-heading {
    font-size: 1.8rem;
  }
  .footer-description,
  .footer-link,
  .contact-item,
  .address-text {
    font-size: 1.5rem;
  }
  .contact-icon,
  .social-link svg {
    width: 2rem;
    height: 2rem;
  }
  .social-links {
    gap: 1.6rem;
  }
  .copyright {
    font-size: 1.3rem;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
  }
}
