/* ===== Auxano SPA - Canva Design ===== */
:root {
    --gradient: linear-gradient(90deg, #ffffff, #e1e5f1, #72c9d1);
    --teal: #72c9d1;
    --teal-btn: #28a78e;
    --blue-dark: #2c4b72;
    --blue-darker:#11233b;
    --blue-footer: #1a2f40;
    --white: #ffffff;
    --gray-200: #e1e5f1;
    --gray-500: #777;
    --gray-600: #555;
    --gray-800: #333;
}

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

/* Temporarily hidden */
.nav-access-portal { display: none !important; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: linear-gradient(90deg, #ffffff, #e1e5f1, #72c9d1);
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

.header .container { max-width: 100%; padding: 0 32px; }

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shine Layer */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
}

.btn:hover::after {
    animation: shine 0.8s forwards;
}

@keyframes shine {
    100% { left: 150%; }
}

/* === COMPREHENSIVE ANIMATION KEYFRAMES === */

/* Fade & Scale Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 3D Lift Effects */
@keyframes lift3D {
    from {
        transform: translateY(0) perspective(1000px) rotateX(0deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    to {
        transform: translateY(-10px) perspective(1000px) rotateX(5deg);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
}

/* Pulse & Glow */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(114, 201, 209, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(114, 201, 209, 0.8);
    }
}

/* Slide Animations */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Number Counter */
@keyframes countUp {
    from { --num: 0; }
    to { --num: 100; }
}

/* Border Animation */
@keyframes borderSlide {
    from {
        border-bottom-width: 0;
    }
    to {
        border-bottom-width: 2px;
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Rotate */
@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease-out; }
.animate-fade-in-left { animation: fadeInLeft 0.6s ease-out; }
.animate-fade-in-right { animation: fadeInRight 0.6s ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 0.8s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Staggered animations for lists */
.animate-stagger > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}
.animate-stagger > *:nth-child(1) { animation-delay: 0s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(n+6) { animation-delay: 0.5s; }

.btn-hero-learn {
    background:#1c8783;
    color: var(--white);
}
.btn-hero-learn:hover {
    background: var(--blue-darker); 
    transform: translateY(-3px) scale(1.04); 
    filter: brightness(1.05); 
}

.btn-hero-demo {
    background: var(--blue-dark);
    color: var(--white);
}
.btn-hero-demo:hover { background: var(--blue-darker); transform: translateY(-3px) scale(1.04); filter: brightness(1.05); }

.btn-primary {
    background: #325474;
    color: var(--white);
   
}

.btn-primary:hover {
    background: var(--blue-darker); 
    transform: translateY(-3px) scale(1.04); 
    filter: brightness(1.05); 
}

.btn-outline-dark {
    background: #325474;
    color: white;
    
}

.btn-outline-dark:hover { background: var(--blue-darker); transform: translateY(-3px) scale(1.04); filter: brightness(1.05); }

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 12px 0;
    /* Height is naturally determined by the nav padding/font size */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px; /* Explicit height to keep nav bar consistent */
    position: relative;
}

/* Container for the logo */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    max-width: 260px; /* prevent logo from eating all nav space */
    height: 100%;
}

/* The actual Image */
.logo-icon { 
    max-height: 96px;
    height: auto;
    width: auto;
    display: block;
    transition: max-height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-800);
    text-transform: uppercase;
    transition: color 0.2s, border-bottom 0.3s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-links a:hover { 
    color: var(--blue-dark);
    border-bottom: 2px solid var(--blue-dark);
}

.btn-nav {
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
    background: var(--blue-dark);
    color: var(--white) !important;
    border-radius: 6px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
    margin: 76px 32px 32px;
    height: auto;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 56px 64px;
    background: var(--gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}

.hero .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 50px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 72px;
}

.hero-cta { display: flex; gap: 20px; }

.hero-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image-mobile {
    display: none;
}

.hero-image img {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    object-position: right center;
    border-radius: 32px;
    box-shadow: none;
}

.hero-image-placeholder {
    min-height: 400px;
    border-radius: 32px;
    background: rgba(255,255,255,0.6);
    border: 2px dashed var(--teal);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--gradient);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;   /* centers children horizontally */
    text-align: center;    /* centers text inside children */
}

.features-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers label, title, desc */
    text-align: center;
}

/* Features Label */
.features-label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    border: 2px solid var(--blue-darker);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blue-darker);
    width: fit-content;          /* pill fits text exactly */
    margin-bottom: 20px;         /* spacing below pill */
}

/* Section Title */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 16px;
    text-align: center;
}

/* Section Description */
.section-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2a3250;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}



/* Feature Row container controls alternating layout */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-fill-mode: both;
}
.feature-row.reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Feature Icon Block */
.feature-icon-block {
    flex: 0 0 auto;
    display: inline-flex; /* shrink-wrap contents */
    flex-direction: row;
    align-items: center;
    gap: 6px; /* even tighter gap between icon and title */
    padding: 16px 16px; /* reduced left/right padding for smaller margin inside box */
    background-color: #ffffff;
    border: 3px solid #0b2545;          /* teal-green border */
    border-radius: 16px;
    /* ensure all icon blocks have a consistent width */
    flex: 0 0 280px;
    width: 280px;
    position: relative;
    box-shadow: 6px 6px 0 0 #20a39e;    /* darker navy-blue shadow border */
}



.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon {
    width: 100%;
    height: 100%;
    color: #2a3250;
    stroke-width: 2;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #2a3250;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    margin-left: 3px;
    font-family: 'Montserrat', sans-serif;
}

/* Feature Description */
.feature-description {
    flex: 1;
    /* remove fixed max width so description can expand when space is available */
    max-width: none;
}

/* ensure reversed rows also use full available space */
.feature-row.reverse .feature-description {
    text-align: right;
}

.feature-description p {
    font-size: 15.5px;
    color: #333333;
    line-height: 1.7;
    margin: 0;
}

.feature-row:not(.reverse) .feature-description {
    text-align: left;
    padding-left: 0;
}

.feature-row.reverse .feature-description {
    text-align: right;
    padding-right: 0;
}

/* How It Works */
/* generic reveal animation */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* optional slide-from-left or right variants */
.animate.slide-left { transform: translateX(-30px); }
.animate.slide-right { transform: translateX(30px); }
.animate.slide-left.in-view, .animate.slide-right.in-view {
    transform: translateX(0);
}

/* fade-in only (no movement) */
.animate.fade { transform: none; }
.animate.fade.in-view { opacity:1; }

/* hero-specific animation example */
.hero-image img.animate {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
    transform: scale(0.95);
}
.hero-image img.animate.in-view {
    opacity: 1;
    transform: scale(1);
}

/* generic reveal animation */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* optional slide-from-left or right variants */
.animate.slide-left { transform: translateX(-30px); }
.animate.slide-right { transform: translateX(30px); }
.animate.slide-left.in-view, .animate.slide-right.in-view {
    transform: translateX(0);
}

/* fade-in only (no movement) */
.animate.fade { transform: none; }
.animate.fade.in-view { opacity:1; }

/* hero-specific animation example */
.hero-image img.animate {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
    transform: scale(0.95);
}
.hero-image img.animate.in-view {
    opacity: 1;
    transform: scale(1);
}

.how-it-works {
    padding: 80px 0;
    background: var(--gradient);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    margin-bottom: 40px;
}

.step {
    display: grid;
    /* Column 1: fixed 48px for the circle. Column 2: fills the rest of the space */
    grid-template-columns: 48px 1fr; 
    /* Defines the layout: circle and title on top, empty space and paragraph below */
    grid-template-areas: 
        "number title"
        ". content"; 
    column-gap: 16px;
    row-gap: 8px;
    margin-bottom: 40px;
    align-items: center; /* Vertically aligns circle and title */
    background: #dae5e7; /* user-specified box background */
    border-radius: 12px;
    padding: 24px;
    box-shadow: 7px 7px 0 0 #11233b;
}

.step-number {
    grid-area: number;
    width: 48px;
    height: 48px;
    background: var(--blue-darker);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    grid-area: title;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.step p {
    grid-area: content;
    margin: 0;
    line-height: 1.6;
    color: #555; /* Optional: subtle color for the description */
}

.how-desc {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 50px;
    font-style: italic;
}

.how-cta {
    display: flex;
    gap: 50px;
    justify-content: center;
}

/*Why Section*/
/* Why Auxano section and carousel */
.why-auxano {
    padding: 50px 0 72px;
    background: linear-gradient(90deg, #ffffff, #e1e5f1, #72c9d1);
}
.why-auxano .section-title {
    text-align: center;
    margin-bottom: 8px;
    color: var(--blue-darker);
}
.why-auxano .why-subtitle {
    text-align: center;
    color: var(--blue-dark);
    max-width: 900px;
    margin: 0 auto 28px;
    font-weight: 500;
}
/* New 3-panel layout */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    /* full-bleed without causing horizontal overflow */
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.why-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 280px;
    display: flex;
    align-items: stretch;
}
.why-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}



/* hover zoom for non-open cards */
.why-card img { 
    transition: transform 0.45s ease; 
}
.why-card:not(.open):hover img {
     transform: scale(1.035); 
    }

.why-desc-content { 
    max-width: 720px; 
}
.why-cta { 
    display: inline-block; 
    margin-top: 16px; 
    background-color: #20a39e;
}
.why-cta:hover{ 
    background-color: #20a39e;
}

.why-desc {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    background: rgba(12,34,64,0.94);
    color: #fff;
    padding: 24px;
    transform: translateY(10%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-y: auto;
}

.why-card:hover .why-desc {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}


/* Contact */
.contact {
    padding: 80px 0;
    background: var(--gradient);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    color: var(--blue-darker);
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3px; /* closer stacking of label+field pairs */
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-darker);
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--blue-darker);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(114, 201, 209, 0.1), inset 0 0 0 1px var(--teal);
    transform: scale(1.02);
    animation: glow 0.8s ease-in-out;
}

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

.contact-logo { 
    height: 220px;
    margin: 0 auto 16px; 
}

.contact-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blue-darker);
    margin-bottom: 32px;
}

.contact-details {
    background: #1a2a4f;
    color: var(--white);
    padding: 30px 20px 20px 20px;
    border-radius: 16px;
    max-width: 340px;
    font-size: 1.05rem; /* slightly larger text */
    margin: 0 auto;
    margin-top: 50px;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.contact-details p { 
    margin-bottom: 10px; 
    font-size: 1rem; 
    display: flex; 
    align-items: center;
}

.contact-details .contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50px;
}




/* Footer */
.footer {
    background: var(--blue-darker); /* solid dark navy */
    color: var(--white);
    margin-top: 80px; /* separate from content above */
}

.cta-banner {
    background: #325474;
    color: var(--white);
    display: block;
    width: min(960px, calc(100% - 48px));
    max-width: 960px;
    margin: 100px auto 80px;
    padding: 32px 32px;
    text-align: center;
    border: 1px solid var(--blue-darker); 
    border-radius: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 1.5rem);
    margin-bottom: 24px;
    line-height: 2.5;
}

.cta-banner p {
    margin-bottom: 32px;
    color: var(--white);
    font-size: 1rem;
    max-width: 700px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure CTA button has spacing above */
.cta-banner .btn-teal {
    margin-top: 30px;
    color: var(--blue-darker);
}

.cta-banner .btn-teal:hover {
    background: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr; /* give logo a bit more space */
    justify-items: flex-start;
    gap: 40px;
    padding: 30px 24px 20px;
    color: var(--white);
}

.footer-col {
    min-width: 0; /* allow grid items to shrink/wrap */
}

.footer-logo {
    height: 150px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-left: 10px;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a { font-size: 0.95rem; color: var(--white); }

/* underline quick links */
.footer-links a { text-decoration: underline; margin-bottom: 6px; display: block; }

/* icons inside footer */
.footer-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    vertical-align: middle;
    padding: 4px;            /* gives spacing inside circle */
    box-sizing: content-box;
    border-radius: 50%;
}

.footer-social .social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* align each contact line with its icon */
.footer-contacts p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

/* Footer Bottom Styles */
.footer-bottom {
    background-color: var(--blue-darker); /* Matches the dark navy in your screenshot */
    padding: 20px 0 40px 0;
    text-align: center;
}

.footer-divider {
    border: none;
    height: 1px;
    /* This creates the blue-to-transparent fade effect seen in the image */
    background: radial-gradient(circle, rgba(114, 201, 209, 0.5) 0%, rgba(5, 22, 43, 0) 70%);
    box-shadow: 0px 0px 10px rgba(114, 201, 209, 0.2);
    margin-bottom: 25px;
    width: 100%;
}

.copyright-wrapper p {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0.9;
}

/* Ensure the copyright symbol (c) looks clean */
.copyright-wrapper p::before {
    content: "";
    display: inline-block;
}
/* Section spacing: create large gap between major sections */
section {
    margin-bottom: 120px;
}


/* Desktop-only: keep contact lines (email, phone, web) on a single line */
@media (min-width: 1025px) {
    .footer-contacts p {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

.footer-social .social-icons a {
    display: inline-block;
}

.footer-col a { display: block; margin-bottom: 8px; color: var(--white); }
.footer-col p,
.footer-col a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
    padding: 24px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-bottom p { font-size: 0.9rem; color: var(--white); }
/* Section spacing: create large gap between major sections */
section {
    margin-bottom: 120px;
}

/* Ensure anchored sections are fully visible below fixed header when clicked from nav */
.hero,
.features-section,
.how-it-works,
.why-auxano,
.contact,
.cta-banner {
    scroll-margin-top: 96px; /* header height + a bit of breathing room */
}

/* Responsive */
@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
    }
    .why-card {
        max-width: 320px;      /* narrower card */
        margin: 0 auto 24px;   /* center card with spacing below */
    }
    .why-card img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 18px;
    }
    .nav-links a {
        font-size: 0.75rem;
    }
    .btn-nav {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }
    .logo-icon {
        max-height: 104px;
    }
    .logo {
        max-width: 280px;
    }
    .hero {
        margin: 88px 16px 24px;
        padding: 56px 32px 48px;
        height: auto;
        min-height: 420px;
    }
    .hero-grid {
        grid-template-columns: 60% 40%;
        gap: 32px;
    }
    .hero-image img {
        max-height: 480px;
    }
    .hero-title {
        white-space: nowrap;
        font-size: clamp(1.3rem, 2vw, 1.7rem);
        margin-bottom: 28px;
        line-height: 1.2;
    }
    .hero-subheading {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 36px;
    }
    .btn {
        padding: 10px 22px;
        font-size: 0.8rem;
    }
    .features-section .container {
        padding: 0 24px;
    }
    .features-label { font-size: 0.8rem; }
    .section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
    .section-desc { font-size: 0.95rem; }
    .feature-title { font-size: 18px; }
    .feature-description p { font-size: 0.95rem; }
    .steps .step h3 { font-size: 0.95rem; }
    .steps .step p { font-size: 0.9rem; }
    .why-subtitle { font-size: 0.95rem; }
    .contact-info h2 { font-size: 1.8rem; }
    .contact-info > p { font-size: 0.95rem; }
    .cta-banner h3 { font-size: 1.4rem; }
    .cta-banner p { font-size: 0.95rem; }
    .why-auxano {
        padding: 64px 0 80px;
    }
    .contact-grid {
        gap: 40px;
    }
    /* Slightly scale footer down on tablet */
    .footer-logo {
        height: 135px;
    }
    .footer-col h4 {
        font-size: 0.75rem;
    }
    .footer-col p,
    .footer-col a {
        font-size: 0.8rem;
    }
    .footer-icon {
        width: 26px;
        height: 26px;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s;
        box-shadow: -4px 0 24px rgba(0,0,0,0.2);
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: flex; z-index: 1001; }
    .hero { margin: 76px 16px 16px; border-radius: 20px; height: auto; min-height: auto; }
    .hero-title { white-space: normal; font-size: 1.5rem; margin-bottom: 20px; }
    .hero-subheading { font-size: 0.8rem; margin-bottom: 14px; }
    .hero-desc { font-size: 0.8rem; margin-bottom: 28px; }
    .hero-grid { display: flex; flex-direction: column; grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-image-desktop { order: 1; justify-content: center; margin-top: 24px; display: none; }
    .hero-image-mobile { display: flex; justify-content: center; margin: 24px 0; }
    .steps { grid-template-columns: 1fr; gap: 32px; margin-bottom: 24px; }
    .features-label { font-size: 0.7rem; padding: 5px 14px; }
    .section-title { font-size: 1.25rem; }
    .section-desc { font-size: 0.8rem; margin-bottom: 28px; }
    .feature-row { gap: 16px; margin: 22px auto; }
    .feature-row { align-items: flex-start; }
    .feature-description { padding-top: 6px; }
    .feature-icon-block { flex: 0 0 220px; width: 220px; padding: 10px 12px; }
    .icon-wrapper { width: 56px; height: 56px; }
    .feature-title { font-size: 15px; }
    .feature-description p { font-size: 0.8rem; }
    .step { margin-bottom: 16px; padding: 18px; }
    .step-number { width: 40px; height: 40px; font-size: 1.2rem; }
    .step h3 { font-size: 0.85rem; }
    .step p { font-size: 0.8rem; }
    .how-desc { margin-bottom: 32px; font-size: 0.85rem; }
    .how-cta { gap: 24px; }
    .why-grid { justify-items: center; row-gap: 24px; }
    .why-card { width: 100%; margin-bottom: 8px; }
    .why-card img { object-position: center center; }
    .why-subtitle { font-size: 0.9rem; }
    .contact-logo { height: 180px; margin-bottom: 14px; }
    .contact-info h2 { font-size: 1.6rem; }
    .contact-info > p { font-size: 0.9rem; }
    .contact-details { font-size: 0.95rem; }
    .cta-banner h3 { font-size: 1.2rem; }
    .cta-banner p { font-size: 0.9rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .feature-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .feature-item.feature-left .feature-box,
    .feature-item.feature-left .feature-text,
    .feature-item.feature-right .feature-text,
    .feature-item.feature-right .feature-box {
        order: unset;
    }
    .features-list {
        min-height: auto;
        gap: 40px;
    }
    .features {
        min-height: auto;
    }
    .logo-icon {
        max-height: 100px; /* larger on mobile */
        height: auto;
    }
    .logo {
        width: 180px; /* give logo more space next to menu */
    }

    .btn {
        padding: 9px 18px;
        font-size: 0.78rem;
    }

    .cta-banner {
        width: calc(100% - 32px);
        padding: 28px 20px;
    }

    /* Footer: keep desktop layout but scale logo/text down on mobile */
    /* Mobile footer: two-column layout like provided design */
    .footer-content {
        grid-template-columns: 1.4fr 1.1fr;
        grid-template-areas:
            "logo    links"
            "contacts social";
        justify-items: flex-start;
        gap: 16px 20px;
        padding: 20px 14px 16px;
    }
    /* map existing columns into the grid areas */
    .footer-content .footer-col:nth-child(1) { grid-area: logo; }
    .footer-content .footer-col:nth-child(2) { grid-area: contacts; }
    .footer-content .footer-col:nth-child(3) { grid-area: links; }
    .footer-content .footer-col:nth-child(4) { grid-area: social; }
    .footer-logo {
        height: 80px;
        margin-bottom: 10px;
    }
    .footer-col h4 {
        font-size: 0.7rem;
    }
    .footer-col p,
    .footer-col a {
        font-size: 0.8rem;
    }
}

/* Tablet-only overrides to keep home hero desktop-style on 641–768px */
@media (min-width: 641px) and (max-width: 768px) {
    .hero {
        margin: 76px 24px 32px;
        padding: 56px 40px;
        border-radius: 20px;
    }
    .hero-grid {
        display: grid;
        grid-template-columns: 60% 40%;
        text-align: left;
        gap: 40px;
    }
    .hero-title {
        white-space: nowrap;
        font-size: clamp(1.2rem, 1.9vw, 1.5rem);
        line-height: 1.1;
    }
    .hero-cta {
        justify-content: flex-start;
    }
    .hero-image-desktop {
        display: flex;
        justify-content: flex-end;
        order: 0;
        margin-top: 0;
    }
    .hero-image-mobile {
        display: none;
    }
}

/* Tablet sizing for Why Auxano cards so text fits without scrolling */
@media (min-width: 641px) and (max-width: 1024px) {
    .why-card {
        min-height: 520px; /* tall enough for text, but not so tall it collides with other sections */
        width: auto;       /* let grid control width so cards don't overlap each other */
    }
    .why-card img {
        object-fit: contain;
    }
    .why-desc {
        padding: 20px;
        font-size: 0.85rem; /* slightly smaller text to prevent overflow */
        line-height: 1.5;
        overflow-y: auto; /* keep text inside card so it never overlaps other content */
    }
}
