/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c5454;
    background-color: #ffffff;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
}

ul {
    padding-left: 2rem;
}

li {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 700;
    color: #2c5454;
}

/* ==========================================================================
   PROMOTIONAL BANNER
   ========================================================================== */

.promo-banner {
    background: #000000;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 101;
}

.promo-banner strong {
    color: white;
    font-weight: 700;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    padding: 1rem 10px;  /* Add horizontal padding for container behavior */
    max-width: 1200px;   /* Add max-width for container behavior */
    margin: 0 auto;      /* Add centering for container behavior */
    gap: 3rem; /* Controls spacing between logo and nav links */
    flex-wrap: nowrap; /* Ensure nav items don't wrap */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5454;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo a {
    color: #2c5454;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: auto; /* Pushes buttons to the right */
}

.nav-links a {
    text-decoration: none;
    color: #2c5454;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;  
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b35;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* CRITICAL: Prevent wrapping and shrinking */
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    /* CRITICAL: Prevent text wrapping and button shrinking */
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2c5454;
    border: 2px solid #2c5454;
}

.btn-secondary:hover {
    background: #2c5454;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER BUTTON STYLES (Compact versions for header)
   ========================================================================== */

   .btn-header {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.btn-header-primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.btn-header-primary:hover {
    background: #ff8c42;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-header-secondary {
    background: transparent;
    color: #2c5454;
    border: 2px solid #2c5454;
}

.btn-header-secondary:hover {
    background: #2c5454;
    color: white;
    transform: translateY(-1px);
}

/* Hero page specific buttons */
.cta-buttons-hero {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 0.9rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: none;
    line-height: 2;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: #2c5454;
    padding: 0.9rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #2c5454;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: #2c5454;
    color: white;
    transform: translateY(-3px);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

/* Generic hero (used on other pages) */
.hero {
    /* background: linear-gradient(135deg, #2c5454 0%, #3a6b6b 50%, #ff6b35 100%); */
    background: linear-gradient(180deg, #2c5454 0%,#008C8C 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23fff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="600" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
}

/* Homepage modern hero */
.hero-modern {
    background: #ffffff;
    padding: 6rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.brand-title {
    font-size: 4rem;
    font-weight: 800;
    color: #2c5454;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.4rem;
    color: #2c5454;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.5;
}

/* Hero stats (generic) */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: #ff8c42;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ==========================================================================
   STATS SECTION (HOMEPAGE)
   ========================================================================== */

.stats-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Equal width columns */
    gap: 2rem;
    max-width: 1200px; /* Limit total width for better proportions */
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-modern {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    transition: all 0.3s ease;
    
    /* EQUAL HEIGHT SOLUTION */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Ensure all cards have same minimum height */
    min-height: 180px;
    
    /* Make cards stretch to match tallest card */
    height: 100%;
}

.stat-modern:hover {
    transform: translateY(-5px);
}

.stat-number-modern {
    font-size: 3rem;
    font-weight: 800;
    color: #ff6b35;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    flex-shrink: 0; /* Prevent number from shrinking */
}

.stat-label-modern {
    font-size: 1.2rem;
    color: #2c5454;
    font-weight: 600;
    line-height: 1.4;
    
    /* Center text and allow it to take remaining space */
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    
    /* Handle text wrapping gracefully */
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ==========================================================================
   MAIN CONTENT SECTIONS
   ========================================================================== */

.section {
    padding: 4rem 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5454;
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-modern {
    font-size: 3rem;
    font-weight: 800;
    color: #2c5454;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #2c5454;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    text-align: center;
    border: 1px solid rgba(44, 84, 84, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 84, 84, 0.15);
    border-color: #ff6b35;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5454;
    font-weight: 600;
}

.service-card p {
    color: #5d5d5d;
    line-height: 1.6;
    font-weight: 500;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5454;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #ff6b35;
    background: #fff;
}

.faq-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
    color: #ff6b35;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: #2c5454;
    line-height: 1.6;
    background: white;
    font-weight: 500;
    font-size: 1.1rem;
    
    /* transition: max-height 0.2s ease-out, padding-bottom 0.2s ease-out; */
    /* Smooth collapse with SLOWER END */
    transition: max-height 0.25s cubic-bezier(0, 0, 0.15, 1), padding-bottom 0.25s cubic-bezier(0, 0, 0.15, 1);

    /* Start with no vertical padding to prevent flash */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

/* Active state with proper padding timing */
.faq-answer.active {
    /* Increase max-height to accommodate content without cutting off */
    max-height: 500px; /* Increased from 200px to prevent cutoff */
    
    /* Add vertical padding for active state */
    padding-top: 0;
    padding-bottom: 1.5rem;

    /* SMOOTH EXPAND: Only transition when expanding */
    transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    background: white;
}

/* ==========================================================================
   PRICING & PROCESS SECTIONS
   ========================================================================== */

.pricing-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    margin: 2rem 0;
    border: 1px solid rgba(44, 84, 84, 0.1);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: #3a6b6b 100%;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:nth-child(even) {
    background: #f8f9fa;
}

.price-highlight {
    color: #ff6b35;
    font-weight: 700;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    border: 1px solid rgba(44, 84, 84, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 84, 84, 0.15);
}

.step-number {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step h3 {
    margin-bottom: 1rem;
    color: #2c5454;
    font-weight: 600;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    font-weight: 400;
}

.about-image {
    background: linear-gradient(135deg, #f8f9fa, #e5e7eb);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: #6b7280;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.credential-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    text-align: center;
    border: 1px solid rgba(44, 84, 84, 0.1);
    transition: all 0.3s ease;
}

.credential-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 84, 84, 0.15);
}

.credential-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.credential-item h3 {
    color: #2c5454;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   BLOG & RESOURCES SECTIONS
   ========================================================================== */

.blog-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(44, 84, 84, 0.1);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(44, 84, 84, 0.15);
}

.blog-image {
    /* background: linear-gradient(135deg, #2c5454 0%, #3a6b6b 50%, #ff6b35 100%); */
    background: linear-gradient(135deg, #2c5454 0%,#008C8C 50%, #ff6b35 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5454;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ff8c42;
    text-decoration: underline;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    border: 1px solid rgba(44, 84, 84, 0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 84, 84, 0.15);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: #2c5454;
    margin-bottom: 1rem;
    font-weight: 600;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.resource-list a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* ==========================================================================
   FORM STYLING
   ========================================================================== */

.form-container {
    position: relative;
    height: 2400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    border: 1px solid rgba(44, 84, 84, 0.1);
}

.form-container iframe {
    width: 100%;
    height: 2500px;
    border: none;
}

/* ==========================================================================
   CONTENT BOXES
   ========================================================================== */

.highlight-box {
    background: #3a6b6b;
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.2);
}

.highlight-box h3 {
    color: #ff8c42;
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight-box p {
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.white-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 30px rgba(44, 84, 84, 0.1);
    border: 1px solid rgba(44, 84, 84, 0.1);
}

.white-box h3 {
    color: #2c5454;
    margin-bottom: 1rem;
    font-weight: 700;
}

.white-box p {
    font-size: 1.1rem;
    color: #2c5454;
    line-height: 1.6;
    font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: #2c5454;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff8c42;
    font-weight: 700;
}

.footer-section p {
    font-weight: 400;
    line-height: 1.6;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff8c42;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-weight: 400;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    /* Hide nav links to make room */
    .nav-links {
        display: none;
    }

     /* Optimize nav container for mobile */
     nav {
        padding: 0.8rem 15px;
        gap: 1rem;
        /* FORCE horizontal layout */
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    /* Make logo smaller to save space */
    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    /* Button container optimization */
    .cta-buttons {
        gap: 0.5rem;
        /* FORCE buttons to stay horizontal */
        flex-wrap: nowrap;
        flex-shrink: 0;
        min-width: 0;
    }
    
    /* Smaller buttons but keep them readable */
    .btn-header {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        /* CRITICAL: Allow buttons to shrink but not wrap */
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-table {
        overflow-x: auto;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 2rem;
        max-width: 400px; /* Limit width for single column */
    }

    .stat-modern {
        min-height: 150px; /* Smaller minimum height on mobile */
    }
    
    .stat-number-modern {
        font-size: 2.5rem;
    }
    
    .stat-label-modern {
        font-size: 0.9rem;
    }
    
    .cta-buttons-hero {
        flex-direction: column;
        align-items: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    nav {
        padding: 0.7rem 10px;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        gap: 0.3rem;
    }
    
    .btn-header {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        /* For very small screens, use even more compact buttons */
        padding: 0.25rem 0.5rem;
    }

    .stats-container {
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 320px;
    }
    
    .stat-modern {
        padding: 1.5rem;
        min-height: 140px;
    }
    
    .stat-number-modern {
        font-size: 2.2rem;
    }
    
    .stat-label-modern {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Emergency override for stubborn mobile browsers */
@media (max-width: 600px) {
    .cta-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .btn-header {
        display: inline-block !important;
        float: none !important;
    }
}