:root {
    --primary-color: #d4621a;
    --secondary-color: #f4a261;
    --dark-blue: #0f172a;
    --accent-color: #e76f51;
    --warm-white: #fdf8f5;
    --warm-gray: #8b7355;
    --dark-brown: #3c2414;
    --light-cream: #f8f4f0;
    --shadow: rgba(60, 36, 20, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: var(--warm-white);
}

/* Prevent horizontal overflow on small screens */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Make media responsive by default */
img, svg, video {
    max-width: 100%;
    height: auto;
}

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

/* Header and Navigation */
header {
    background-color: var(--dark-blue);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: auto;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 20px var(--shadow);
}

nav {
    padding: 0.85rem 0;
    width: 100%;
}

.nav-container{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    
}

.nav-links a {
    color: var(--warm-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

header.scrolled .nav-links a {
    color: var(--warm-white);
}

header.scrolled .nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
    outline: none;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    width: 100%;
} */

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--warm-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

header.scrolled .menu-toggle span {
    background-color: var(--warm-white);
}

/* Main content */
/* main {
    margin-top: 64px;
} */

section {
    padding: 4rem 0;
    scroll-margin-top: 80px;
}



.section-title {
    /* font-family: 'Crimson Pro', serif; */
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero/About Section */
/* #about {
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--light-cream) 100%);
    padding: 6rem 0;
} */

.section-about{
    background: url('../img/hero.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 100%;
}

.section-about::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.companies-line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.companies-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-text h1 {
    /* font-family: 'Crimson Pro', serif; */
    font-size: 4rem;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text h1 span{
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--warm-white);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--warm-white);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 98, 26, 0.3);
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 98, 26, 0.4);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.transparent-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.transparent-button:hover,
.transparent-button:focus {
    background-color: var(--primary-color);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 98, 26, 0.4);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hero-visual {
    background-color: var(--light-cream);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow);
}

.hero-logo {
    max-width: 100%;
    height: 500px;
    width: auto;
    object-fit: contain;
}

/* Services Section */

/*#framework{*/
/*    background:*/
/*    !* Bottom-left soft glow *!*/
/*    radial-gradient(*/
/*      circle at bottom left,*/
/*      color-mix(in srgb, var(--dark-blue), white 20%) 0%,*/
/*      transparent 70%*/
/*    ),*/
/*    !* Top-right soft glow *!*/
/*    radial-gradient(*/
/*      circle at top right,*/
/*      color-mix(in srgb, var(--dark-blue), white 15%) 0%,*/
/*      transparent 70%*/
/*    );*/

/*  background-repeat: no-repeat;*/
/*  background-size: 60% 60%, 60% 60%;*/
/*  background-blend-mode: lighten;*/
/*}*/

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

.service-card {
    background-color: var(--light-cream);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 36, 20, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.service-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.1rem;
}

.service-card h3 {
    /* font-family: 'Crimson Pro', serif; */
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin: 0;
    min-height: 3.2rem;
    display: flex;
    align-items: center;
}

.service-card p {
    color: var(--warm-gray);
    line-height: 1.6;
}

.service-card ul {
    color: var(--warm-gray);
    line-height: 1.6;
    padding-left: 1.2rem;
}

.service-card li {
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Framework Section */
#framework h2{
    color: var(--primary-color);
}
#framework .section-subtitle{
    color: var(--warm-gray);
}

.framework-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 0;
}

/* Timeline line */
.framework-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    z-index: 1;
}

/* Progress circle */
.framework-steps::after {
    content: '';
    position: absolute;
    left: 18px;
    top: var(--progress-top, 0);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--warm-white);
    border-radius: 50%;
    z-index: 3;
    transition: top 0.5s ease;
    box-shadow: 0 4px 15px rgba(212, 98, 26, 0.3);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2rem;
    background-color: var(--warm-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    margin-left: 8em;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
    max-width: 700px;
}

.step.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 36, 20, 0.15);
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 80px;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    border: 4px solid var(--warm-white);
    box-shadow: 0 4px 15px rgba(212, 98, 26, 0.3);
}

/* Connecting dashes */
/* .step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    z-index: 2;
} */

.step h3 {
    /* font-family: 'Crimson Pro', serif; */
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.step p {
    color: var(--warm-gray);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Testimonials Section */
#testimonials {
    background-color: var(--dark-blue);
    padding-bottom: 8rem;
}

#testimonials h2{
    color: var(--primary-color);
}
#testimonials .section-subtitle{
    color: var(--warm-gray);
}

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

.testimonial {
    background-color: var(--light-cream);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: 1rem;
    left: 2rem;
    /* font-family: 'Crimson Pro', serif; */
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--dark-brown);
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-white);
    font-weight: 600;
    font-size: 0.85rem;
    /* Ensure the avatar stays perfectly circular and not stretched by flex/content */
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.author-info h4 {
    color: var(--dark-brown);
    font-weight: 600;
}

.author-info p {
    color: var(--warm-gray);
    font-size: 0.85rem;
}

/* Company logo in testimonials */
.author-logo {
    margin-left: auto;
}

.company-logo {
    width: 80px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
}

/* Modifiers */
.company-logo--small {
    height: 24px;
    width: auto;
}

.author-info p.single-line {
    white-space: nowrap;
}

/* Make white background of suena logo appear transparent on light backgrounds */
.author-logo img[src$="suena.png"] {
    mix-blend-mode: multiply;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    padding: 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background-color: var(--warm-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 36, 20, 0.15);
}

.contact-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 98, 26, 0.3);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 1rem;
}

.contact-item h4 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item .contact-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--warm-white);
    text-align: center;
    padding: 2rem 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.company-card {
    background-color: var(--primary-color);
    padding: 2rem 6rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company-card-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .framework-steps {
        max-width: 800px;
    }

    .step {
        margin-left: 6rem;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        background-color: var(--dark-blue);
        flex-direction: column;
        padding: 1rem 1rem;
        box-shadow: 0 5px 20px var(--shadow);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-links a {
        color: var(--warm-white);
    }

    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .hero-text { 
        height: auto; 
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .framework-steps {
        margin-left: 0;
        margin-right: 0;
        padding: 2rem 0;
    }

    .framework-steps::before {
        left: 20px;
    }

    .framework-steps::after {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .step {
        margin-left: 3rem;
        margin-right: 0;
        flex-direction: column;
        text-align: left;
        padding: 2rem 1.5rem;
        max-width: none;
    }

    .step::before {
        left: -1.5rem;
        right: auto;
        width: 16px;
        height: 3px;
    }

    .step-header {
        min-width: auto;
        margin-bottom: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .step-content {
        text-align: left;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .step p {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 2rem;
    }

    .contact-image {
        width: 100px;
        height: 100px;
    }

    .company-card-container {
        padding: 4rem 0;
    }

    .company-card{
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .framework-steps {
        padding: 0;
        gap: 1.5rem
    }


    .framework-steps::before {
        left: 15px;
        display: none;
    }

    .framework-steps::after {
        left: 5px;
        width: 14px;
        height: 14px;
        display: none;
    }

    .step {
        margin-left: 0;
        margin-bottom: 0;
        padding: 1.5rem 1rem;
        gap: 0;
    }

    .step::before {
        left: -1.25rem;
        width: 14px;
        height: 2px;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step h3 {
        font-size: 1.1rem;
    }

    .step p {
        font-size: 0.9rem;
    }

    /* .section-about{
        min-height: 70vh;
    } */
    .hero-content{
        padding-top: 4rem;
    }

}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* Mobile refinements for Testimonials */
@media (max-width: 768px) {
    #testimonials {
        padding-bottom: 5rem;
    }
    .testimonials-grid {
        gap: 1.25rem;
        margin-top: 2rem;
    }
    .testimonial {
        padding: 1.5rem;
    }
    .testimonial::before {
        font-size: 3rem;
        left: 1rem;
    }
    .testimonial-text {
        font-size: 1rem;
        padding-left: 1.25rem;
    }
    .author-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    .company-logo {
        width: 68px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    #testimonials {
        padding-bottom: 4rem;
    }
    .testimonials-grid {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .testimonial {
        padding: 1rem;
    }
    .testimonial::before {
        font-size: 2.5rem;
        left: 0.75rem;
        top: 0.75rem;
    }
    .testimonial-text {
        font-size: 0.95rem;
        padding-left: 1rem;
    }
    .author-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .author-info h4 {
        font-size: 0.95rem;
    }
    .author-info p {
        font-size: 0.8rem;
    }
    .company-logo {
        width: 56px;
        height: 22px;
    }
}
