/* ====================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ==================================== */
/* Define color scheme used throughout the entire website */
:root {
    --blue: #1E90FF;    /* Main dark brown - used for text and navigation */
    --light-gray: #2e2e2e;     /* Light brown accent color */
    --warm-white: #fcebd0;      /* Warm off-white - main background color */
    --charcoal: #3a3a3a;        /* Dark charcoal for text */
    --white: #dddbdb;
    --vh: 1vh;                  /* Viewport height unit */
}

/* ====================================
   GLOBAL RESET & BASE STYLES
   ==================================== */
/* Reset default browser margins and paddings for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML element - controls overall page scroll behavior */
html {
    scroll-behavior: smooth;           /* Smooth scrolling when clicking anchor links */
    scroll-padding-top: 80px;          /* Offset scroll position to account for fixed navigation */
}

/* Body element - applies to entire website background and text */
body {
    font-family: 'Montserrat', sans-serif;  /* Main font for body text */
    color: var(--light-gray);               /* Default text color */
    background: var(--warm-white);        /* Website background color */
    line-height: 1.7;                       /* Spacing between lines of text */
    overflow-x: hidden;                     /* Prevent horizontal scrolling */
    -webkit-font-smoothing: antialiased;    /* Smooth font rendering on Mac/iOS */
    -moz-osx-font-smoothing: grayscale;     /* Smooth font rendering on Firefox */
}

/* ====================================
   NAVIGATION BAR
   Controls: Top navigation on all pages (logo, hamburger menu)
   ==================================== */
/* Main navigation container - sticky header at top of page */
nav {
    position: fixed;                   /* Stays at top when scrolling */
    top: 0;
    width: 100%;
    background-color: var(--warm-white);
    backdrop-filter: blur(10px);       /* Blur effect behind nav */
    z-index: 1000;                     /* Ensures nav stays above other content */
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);  /* Subtle shadow below nav */
    animation: slideDown 0.6s ease-out;       /* Animate nav sliding down on page load */
}

/* Animation for navigation sliding down on page load */
@keyframes slideDown {
    from {
        transform: translateY(-100%);   /* Start above viewport */
        opacity: 0;
    }
    to {
        transform: translateY(0);       /* End at normal position */
        opacity: 1;
    }
}

/* Container inside nav - holds logo and menu button */
.nav-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;    /* Logo left, menu right */
    align-items: center;
}

/* Website logo/brand name in top left corner */
.logo {
    font-family: 'Cormorant Garamond', serif;  /* Elegant serif font for branding */
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-gray);
    letter-spacing: 0.5px;
    text-decoration: none;             /* Remove underline from link */
}

/* ====================================
   HAMBURGER MENU BUTTON
   Controls: Three-line menu icon in top right corner
   ==================================== */
/* Hamburger menu button container */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;    /* Stack the three lines vertically */
    gap: 5px;                  /* Space between the three lines */
    z-index: 1001;             /* Above navigation */
}

/* Individual lines in hamburger menu (3 lines) */
.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--light-gray);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* When menu is open - transform top line into X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

/* When menu is open - hide middle line */
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* When menu is open - transform bottom line into X */
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   DROPDOWN NAVIGATION MENU
   Controls: Dropdown menu that appears when hamburger is clicked
   Pages: All pages (Home, About, Services, Testimonials, Contact)
   ==================================== */
/* Navigation links dropdown menu - hidden by default */
.nav-links {
    position: absolute;
    top: 100%;                 /* Position below nav bar */
    right: 0;
    background: var(--warm-white);
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;                /* Hidden by default */
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Navigation menu when open/active */
.nav-links.active {
    opacity: 1;                /* Fully visible */
    visibility: visible;
    transform: translateY(0);  /* Normal position */
}

/* List items in navigation menu */
.nav-links li {
    margin: 0;
}

/* Individual navigation links (Home, About, Services, etc.) */
.nav-links a {
    display: block;
    text-decoration: none;
    color: var(--light-gray);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.8rem 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
    touch-action: manipulation;               /* Optimize for touch devices */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Navigation link hover effect */
.nav-links a:hover {
    background: var(--warm-white);
    color: var(--light-gray);
}

/* ====================================
   HERO SECTION
   Controls: Landing page top section with main image and heading
   Location: index.html - First section visitors see
   ==================================== */
/* Main hero section container */
.hero {
    min-height: 100vh;         /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative;
    background: var(--light-gray);
    overflow: hidden;
    padding-top: 120px;        /* Space for fixed navigation */
}

/* Decorative floating background circle */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

/* Floating animation for decorative background circle */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -30px) scale(1.1); }
}

/* Container for hero content - holds image and text */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;    /* Stack image above text */
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Text content in hero section */
.hero-text {
    animation: fadeInLeft 1s ease-out 0.3s both;
    text-align: center;
    max-width: 800px;
}

/* Fade in from left animation for hero text */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main heading "Empowering Your Birth Journey" */
.hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

/* Styled span within h1 heading */
.hero-text h1 span {
    display: block;
    font-weight: 500;
    color: var(--warm-white);
    font-style: italic;
}

/* Paragraph text below hero heading */
.hero-text p {
    font-size: 1.1rem;
    color: var(--warm-white);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ====================================
   CALL-TO-ACTION BUTTONS
   Controls: "Book a Consultation" and "Explore Services" buttons
   Location: Throughout website
   ==================================== */
/* Container for CTA buttons - centers them horizontally */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;   /* Centers buttons in middle of screen */
}

/* Base button styles - applies to all buttons */
.btn {
    padding: 1rem 2.5rem;      /* Controls button size - adjust here to change size */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: inline-flex;      /* Use inline-flex for better text centering */
    align-items: center;       /* Vertically center text */
    justify-content: center;   /* Horizontally center text */
    width: 300px;              /* Fixed width - ensures both buttons are exactly same length */
    height: 56px;              /* Fixed height - ensures both buttons are same height */
    text-align: center;
    box-sizing: border-box;    /* Include border and padding in width/height */
    white-space: nowrap;       /* Prevent text from wrapping to multiple lines */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;         /* Prevent text selection when clicking */
}

/* Primary button style - "Book a Consultation" */
.btn-primary {
    background: var(--warm-white);
    color: var(--light-gray);
    border: 1.5px solid var(--light-gray);
    box-shadow: 0 4px 15px rgba(156, 168, 150, 0.3);
}

/* Primary button hover effect */
.btn-primary:hover {
    background: var(--blue);
    color: var(--light-gray);
    box-shadow: 0 6px 20px var(--light-gray);
}

/* Secondary button style - "Explore Services" */
.btn-secondary {
    background: var(--warm-white);
    color: var(--light-gray);
    border: 1.5px solid var(--light-gray);
    box-shadow: 0 4px 15px rgba(156, 168, 150, 0.3);
}

/* Secondary button hover effect */
.btn-secondary:hover {
    background: var(--blue);
    color: var(--light-gray);
    box-shadow: 0 6px 20px var(--light-gray);
}

/* ====================================
   HERO BANNER
   Controls: Banner background image on landing page
   Location: index.html - top of page
   ==================================== */
/* Hero banner with background image */
.hero-banner {
    background-image: linear-gradient(rgba(73, 86, 94, 0.7), rgba(73, 86, 94, 0.8)),
                      url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override hero-content for banner layout */
.hero-banner .hero-content {
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

/* Override hero-text for banner layout */
.hero-banner .hero-text {
    max-width: 900px;
    padding: 4rem 2rem;
}

/* Enhanced text visibility on banner */
.hero-banner .hero-text h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner .hero-text h1 span {
    color: var(--warm-white);
}

.hero-banner .hero-text p {
    color: var(--warm-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ====================================
   HERO IMAGE (Legacy - for other pages)
   Controls: Main photo on other pages
   Location: about.html and other pages
   ==================================== */
/* Hero image wrapper */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
    width: 100%;
    max-width: 800px;
    margin-top: 5rem;          /* Space between nav and image */
}

/* Fade in from right animation for hero image */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Container for hero image */
.hero-image-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

/* Actual hero image element */
.hero-image-container img {
    width: 100%;
    height: 800px;
    object-fit: contain;       /* Maintain image aspect ratio */
    display: block;
}

/* ====================================
   ABOUT SECTION
   Controls: About page layout and content
   Location: about.html
   ==================================== */
/* About section container */
.about {
    padding: 8rem 2rem;
    background: var(--light-gray);
}

/* About page grid - image on left, text on right */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two equal columns */
    gap: 6rem;
    align-items: center;
}

/* About page image wrapper */
.about-image {
    position: relative;
}

/* About page image styling */
.about-image img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    object-position: center;
}

/* Adam's image styling - individual control */
.adam-image img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    object-position: center;
}

/* Diego's image styling - individual control */
.diego-image img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    object-position: center;
}

/* Small label above section headings - "About Me", "What I Offer", etc. */
.section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--warm-white);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* About page main heading  */
.about-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* About page paragraph text */
.about-content p {
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Signature at bottom of about page - "Robin Robinson" */
.about-content .signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--warm-white);
    margin-top: 2rem;
}

/* ====================================
   SERVICES SECTION
   Controls: Services grid on index.html and services.html
   Location: Both landing page and services page
   ==================================== */
/* Services section container */
.services {
    padding: 8rem 2rem;
    background: var(--light-gray);
}

/* Services content wrapper */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Services section header - "Services Designed for You" */
.services-header {
    text-align: center;
    margin-bottom: .5rem;      /* Controls space after heading - adjust to reduce blank space */
}

/* Services heading text */
.services-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: .5rem;
}

/* Services subheading paragraph */
.services-header p {
    color: var(--light-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid of service cards - stacked vertically */
.services-grid {
    display: flex;
    flex-direction: column;    /* Stack services vertically */
    gap: 1.5rem;              /* Space between service cards */
    max-width: 800px;
    margin: 0 auto;
}

/* ====================================
   SERVICE CARDS
   Controls: Individual service boxes (all pages)
   ==================================== */
/* Base service card styling */
.service-card {
    background: var(--warm-white);
    padding: 1.5rem 2rem;      /* Controls card size - adjust to make cards bigger/smaller */
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

/* Decorative line that appears on top of card on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--warm-white) 0%, var(--charcoal) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* Service card hover effect */
.service-card:hover {
    /* transform: translateY(-10px);  /* Lift card up slightly */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1);  */
    background: var(--blue);
    color: var(--light-gray);
    box-shadow: 0 6px 20px var(--warm-white);
}

/* Service icon (not currently used) */
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Service card heading - "Prenatal Support", "Birth Doula Services", etc. */
.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;         /* Adjust to change service title text size */
    font-weight: 500;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

/* Service card description text */
.service-card p {
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* "Learn More" links within service cards */
.service-card a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

/* "Learn More" link hover - arrow moves right */
.service-card a:hover {
    gap: 1rem;
}

/* ====================================
   SERVICE LINKS (LANDING PAGE)
   Controls: Clickable service cards on index.html
   Location: index.html - links to services.html
   ==================================== */
/* Service link cards on landing page */
.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 1.5rem 2rem;      /* Controls size of clickable service cards on landing page */
    transition: all 0.3s ease;
}

/* Service link heading alignment */
.service-link h3 {
    margin-bottom: 0;
    text-align: left;
    flex: 1;
}

/* Arrow icon on right side of service links */
.link-arrow {
    font-size: 2rem;
    color: var(--light-gray);
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Arrow moves right on hover */
.service-link:hover .link-arrow {
    transform: translateX(10px);
}

/* Service link hover effect */
.service-link:hover {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ====================================
   ACCORDION SERVICE CARDS
   Controls: Expandable service cards on services.html
   Location: services.html - click to expand/collapse
   ==================================== */
/* Accordion-style service cards */
.accordion-card {
    cursor: pointer;
    padding: 1.5rem 2rem;      /* Controls size of accordion cards on services.html */
}

/* Accordion button header */
.service-header {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Accordion heading alignment */
.accordion-card h3 {
    margin-bottom: 0;
    text-align: left;
    flex: 1;
}

/* Plus/minus icon for accordion */
.accordion-icon {
    font-size: 2.5rem;
    color: var(--light-gray);
    transition: transform 0.3s ease;
    font-weight: 300;
    line-height: 1;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Rotate plus into X when accordion is open */
.accordion-card.active .accordion-icon {
    transform: rotate(45deg);
}

/* Hidden content inside accordion */
.service-content {
    max-height: 0;             /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

/* Show content when accordion is active/open */
.accordion-card.active .service-content {
    max-height: 500px;
    margin-top: 1.5rem;
}

/* Accordion card hover effect */
.accordion-card:hover {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Active/open accordion card background */
.accordion-card.active {
    background: var(--warm-white);
}

/* ====================================
   TESTIMONIALS SECTION
   Controls: Client testimonials/reviews
   Location: index.html and testimonials.html
   ==================================== */
/* Testimonials section container */
.testimonials {
    padding: 8rem 2rem;
    background: var(--warm-white);
}

/* Testimonials content wrapper */
.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Testimonials section header */
.testimonials-header {
    margin-bottom: 4rem;
}

/* "What Families Are Saying" heading */
.testimonials-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--light-gray);
    margin-bottom: 0rem;
}

/* Individual testimonial card */
.testimonial {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

/* Testimonial quote text */
.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--warm-white);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Testimonial author name */
.testimonial-author {
    font-weight: 500;
    color: var(--light-gray);
    letter-spacing: 1px;
}

/* ====================================
   CONTACT SECTION & FORM
   Controls: Contact form and contact page layout
   Location: contact.html
   ==================================== */
/* Contact section container */
.contact {
    padding: 8rem 2rem;
    background: var(--light-gray);
}

/* Contact page content wrapper */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Contact page heading */
.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
}

/* Contact page intro text */
.contact p {
    font-size: 1.2rem;
    color: var(--warm-white);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact form container */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Individual form field group */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

/* Form field labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Form input fields and textareas */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--warm-white);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

/* Form field focus state */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-gray);
}

/* Message textarea field */
.form-group textarea {
    min-height: 150px;
    resize: vertical;          /* Allow vertical resizing only */
}

/* Submit button on contact form */
.contact-form .btn-primary {
    width: 100%;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

/* ====================================
   FOOTER
   Controls: Footer section on all pages
   Location: Bottom of every page
   ==================================== */
/* Footer container */
footer {
    background: var(--warm-white);
    color: white;
    padding: 2rem 2rem 2rem;
}

/* Footer content grid - 2 columns */
.footer-container {
    max-width: 2400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two equal columns */
    gap: 2rem;
    margin-bottom: 0rem;
}

/* Hide the footer-about section */
.footer-about {
    display: none;
}

/* Footer column headings - "Quick Links", "Connect" */
.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--light-gray);
    letter-spacing: 1px;
    text-align: center;
}

/* Center align the first column (Quick Links) */
.footer-links:first-of-type {
    text-align: center;
}

/* Center align the second column (Connect) */
.footer-links:last-of-type {
    text-align: center;
}

/* Footer navigation lists */
.footer-links ul {
    list-style: none;
    display: block;
    text-align: center;
    padding-left: 0;
    margin: 0;
}

/* Footer list items */
.footer-links ul li {
    margin-bottom: 0.8rem;
    text-align: center;
}

/* Footer links */
.footer-links ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Footer link hover effect */
.footer-links ul li a:hover {
    color: var(--light-gray);
}

/* Footer copyright section at bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Designed by text box in footer */
.designed-by {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1.5px solid var(--light-gray);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: var(--light-gray);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ====================================
   MOBILE RESPONSIVE STYLES
   Controls: Layout adjustments for tablets and small screens
   Applies to: Screens 968px wide and smaller
   ==================================== */
@media (max-width: 968px) {
    /* Smooth scrolling on touch devices */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Smaller logo on mobile */
    .logo {
        font-size: 2rem;
    }

    .logo img {
        height: 50px !important;  /* Smaller logo on mobile */
    }

    /* Adjust dropdown menu position */
    .nav-links {
        right: 1rem;
    }

    /* Hero section mobile adjustments */
    .hero {
        min-height: auto;
        padding: 9rem 1rem 4rem;  /* Increased top padding to prevent header overlap */
    }

    .hero-content {
        gap: 2rem;
    }

    /* Smaller hero heading on mobile */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Fix hero banner for mobile devices */
    .hero-banner {
        background-attachment: scroll;  /* Fixed attachment doesn't work on iOS */
        min-height: 500px;
        padding-top: 9rem;  /* Add space to prevent header overlap */
    }

    .hero-banner .hero-content {
        min-height: 400px;
    }

    .hero-banner .hero-text {
        padding: 2rem 1rem;
    }

    /* Stack CTA buttons vertically on mobile */
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    /* Full-width buttons on mobile */
    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Smaller hero image on mobile */
    .hero-image-container img {
        height: auto;
        max-height: 500px;
    }

    /* About section mobile adjustments */
    .about {
        padding: 4rem 1.5rem;
    }

    /* Single column layout for about page */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Move about image to top on mobile */
    .about-image {
        order: -1;
    }

    /* Smaller about heading on mobile */
    .about-content h2 {
        font-size: 2.5rem;
    }

    /* Services section mobile adjustments */
    .services {
        padding: 4rem 1.5rem;
    }

    .services-header h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        gap: 1rem;
    }

    /* Smaller service link buttons on mobile (landing page) */
    .service-link {
        padding: 1rem 1.5rem;  /* Reduce height */
    }

    .service-link h3 {
        font-size: 1.1rem;     /* Smaller font to prevent text wrapping */
        line-height: 1.3;
    }

    .link-arrow {
        font-size: 1.5rem;     /* Smaller arrow */
        margin-left: 0.5rem;
    }

    /* Smaller accordion cards on mobile */
    .accordion-card {
        padding: 1.5rem;
    }

    /* Testimonials mobile adjustments */
    .testimonials {
        padding: 4rem 1.5rem;
    }

    .testimonials-header h2 {
        font-size: 2.5rem;
    }

    .testimonial {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1.2rem;
    }

    /* Contact section mobile adjustments */
    .contact {
        padding: 4rem 1.5rem;
    }

    .contact h2 {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Two column footer on mobile */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .footer-links h4 {
        font-size: 0.9rem;
    }

    .footer-links ul li a {
        font-size: 0.75rem;
    }

    /* About page header responsive - reduce large title sizes on mobile */
    .about h2 {
        font-size: 1.8rem !important;
    }

    .about .fade-in h2 {
        font-size: 1.8rem !important;
    }
}

/* ====================================
   TABLET RESPONSIVE STYLES
   Controls: Additional adjustments for tablets
   Applies to: Screens 768px wide and smaller
   ==================================== */
@media (max-width: 768px) {
    /* Further reduce heading sizes on tablets */
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .about-content h2,
    .services-header h2,
    .testimonials-header h2,
    .contact h2 {
        font-size: 2.2rem;
    }
}

/* ====================================
   SMALL MOBILE RESPONSIVE STYLES
   Controls: Adjustments for small mobile phones
   Applies to: Screens 480px wide and smaller
   ==================================== */
@media (max-width: 480px) {
    /* Reduce navigation padding on small screens */
    .nav-container {
        padding: 0 1rem;
    }

    /* Smaller logo on small phones */
    .logo {
        font-size: 1.8rem;
    }

    /* Reduce hero padding on small phones */
    .hero {
        padding: 5rem 1rem 3rem;
    }

    /* Even smaller hero heading on small phones */
    .hero-text h1 {
        font-size: 2rem;
    }

    /* Smaller hero image on small phones */
    .hero-image-container img {
        max-height: 300px;
    }

    /* Reduce padding on all sections for small phones */
    .about,
    .services,
    .testimonials,
    .contact {
        padding: 3rem 1rem;
    }

    /* Smaller headings on small phones */
    .about-content h2,
    .services-header h2,
    .testimonials-header h2,
    .contact h2 {
        font-size: 2rem;
    }

    /* About page header - even smaller on small phones */
    .about h2 {
        font-size: 1.5rem !important;
    }

    .about .fade-in h2 {
        font-size: 1.5rem !important;
    }

    /* Smaller service cards on small phones */
    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Smaller contact form on small phones */
    .contact-form {
        padding: 1.5rem;
    }
}

/* ====================================
   SCROLL ANIMATIONS
   Controls: Fade-in effects when scrolling
   Location: Applied throughout website
   ==================================== */
/* Initial state - element is invisible */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible state - element fades in when scrolled into view */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
