/* ============================================
   CSS Reset & Base Styles
   ============================================ */
   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    font-size: 1.375rem;
    letter-spacing: var(--letter-spacing-default, -0.02em);
    color: #2C3E50;
    background-color: #FFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title, 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing-default, -0.02em);
    color: #2C3E50;
}

h1 {
    font-size: 2.875rem;
    font-weight: 700;
}

h2 {
    font-size: 2.375rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    color: #2C3E50;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

h4 {
    font-size: 1.375rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #7CB342;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #558B2F;
}

ul {
    list-style: none;
}

/* ============================================
   Layout & Container
   ============================================ */

.container {
    width: 85vw;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

/* Content sections padding (services and below) */
.container-content {
    padding: 0 0vw;
}

section {
    padding: 4rem 0;
}

/* ============================================
   Logo Overlay
   ============================================ */

.logo-overlay {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    max-width: 1280px;
    z-index: 100;
}

.logo-overlay a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3rem;
    width: auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 58px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: 1px solid #103d97;
    text-decoration: none;
}

.btn-primary {
    background-color: #1a5ab9;
    color: white;
    box-shadow: 0 4px 12px rgb(16 58 149 / 50%);
}

.btn-primary:hover {
    background-color: #397fd7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(18 62 152 / 60%);
}

.hero .btn-primary,
.hero .open-contact {
    background-color: #1a5ab9;
    color: white;
    padding: 0 1.5rem;
    height: 58px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(16 58 149 / 50%);
    outline: 1px solid #103d97;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

/* Ensure hero CTA matches the same hover/active feel as the modal open button */
.hero .btn-primary:hover,
.hero .open-contact:hover {
    background-color: #397fd7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(18 62 152 / 60%);
}

/* Keep primary button text white on hover (overrides generic a:hover) */
.btn-primary:hover,
.hero .open-contact:hover {
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #1a5ab9;
    border: 2px solid #103d97;
}

.btn-secondary:hover {
    background-color: #397fd7;
    color: white;
}

.text-link {
    color: #7CB342;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #7CB342;
    transition: width 0.3s ease;
}

.text-link:hover::after {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background-color: #BCC4D9;
    background-image: url('img/nbg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 0;
    position: relative;
    overflow: visible;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: clamp(650px, 75vh, 85vh);

    position: relative;
    /* background-image: url('img/title.png'); */
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 65%;
}

.hero-content {
    max-width: 675px;

    padding-right: 2rem;
    z-index: 2;
    flex-shrink: 0;
}

.hero-image {
    width: 700px;
    height: 400px;
    z-index: 2;
    flex-shrink: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;

}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eyebrow-badge {
    width: 40px;
    height: 40px;
    background-color: #b4b8d3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eyebrow-star {
    width: 20px;
    height: 20px;
}

.eyebrow-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C3E50;
}

.hero-title {
    font-size: 3.375rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: #2C3E50;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #546E7A;
    margin-bottom: 2rem;
    max-width: 90%;
}

/* Partners Bar at bottom of hero */
.partners-bar {
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    max-width: 1280px;
    height: 7rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(188, 196, 217, 0.25);
    padding: 0 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
}

.partners-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    
}



.partners-credentials {
    display: flex;
    align-items: center;

/* Stack partners credentials under each other for narrow screens */
@media (max-width: 939px) {
    .partners-credentials {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .credential-separator {
        display: none;
    }

    .credential-item {
        white-space: normal;
        text-align: left;
    }
}
    gap: 1.5rem;
    flex: 0 0 auto;
}

.credential-item {
    font-size: 1.125rem;
    color: #546E7A;
    white-space: nowrap;
}

.credential-item strong {
    color: #2C3E50;
    font-weight: 600;
}

.credential-separator {
    width: 1px;
    height: 2rem;
    background-color: #E0E0E0;
}

.partners-summary {
    flex: 1;
    font-size: 1.15rem;
    color: #546E7A;
    line-height: 1.5;
    padding-left: 2rem;
    border-left: 1px solid #E0E0E0;
}

/* Hide partners summary below 1680px */
@media (max-width: 1680px) {
    .partners-summary {
        display: none;
    }
    
    .partners-content {
        justify-content: center;
    }

    .hero-image {
        width: 550px;
        height: 315px;
    }
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    max-width: 1024px;
    margin: 0 auto 2rem;
}

.section-title {
    /* removed: using global h2 instead */
}

.section-subtitle {
    font-size: 1.375rem;
    color: #546E7A;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   Services Section
   ============================================ */

.services {
    padding: 6rem 0;
    background-color: white;
    margin-top: 3.5rem;
}

.services-grid-unified {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.service-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Cards 5 and 6 span 2 columns each */
.service-card-wide {
    grid-column: span 2;
}

.service-card {
    position: relative;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 0 8px rgba(235, 247, 246, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Individual border colors for each card */
.service-card-wrapper:nth-child(1) .service-card {
    box-shadow: 0 0 0 8px #EBF7F6;
}

.service-card-wrapper:nth-child(2) .service-card {
    box-shadow: 0 0 0 8px #EBF7F6;
}

.service-card-wrapper:nth-child(3) .service-card {
    box-shadow: 0 0 0 8px #ECF2F7;
}

.service-card-wrapper:nth-child(4) .service-card {
    box-shadow: 0 0 0 8px #EDF4FD;
}

.service-card-wrapper:nth-child(5) .service-card {
    box-shadow: 0 0 0 8px #EDF4FD;
}

.service-card-wrapper:nth-child(6) .service-card {
    box-shadow: 0 0 0 8px #F7F8F1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 8px rgba(124, 179, 66, 0.2), 0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 6.5rem;
    height: auto;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    outline: none;
}

.service-icon img {
    width: 6.5rem;
    height: auto;
    object-fit: contain;
    display: block;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: #7CB342;
    stroke-width: 2;
}

.service-title {
    font-size: 1.425rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
    color: #2C3E50;
    letter-spacing: -0.015em;
}

/* Master typography on the card container - source of truth for all text */
.services .service-card {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.40;
    letter-spacing: var(--letter-spacing-default, -0.02em);
    color: #2C3E50;
}

/* p inherits from card and adds only margins */
.services .service-card p {
    margin: 0.25rem 0 0.75rem;
}

/* h4 inherits from card, overrides weight, adds margins */
.services .service-card h4 {
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
}

.service-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

/* li inherits from card and adds only positioning/spacing */
.service-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
}

.service-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #7CB342;
    font-weight: 600;
}

/* Secondary Services Grid */
.services-grid-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.service-card-wrapper-secondary {
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card-underlay-secondary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 106%;
    height: 115%;
    border-radius: 16px;
    z-index: 0;
}

/* Individual underlay gradients for secondary services */
.service-card-wrapper-secondary:nth-child(1) .service-card-underlay-secondary {
    background: linear-gradient(90deg, #F0F4F8 0%, #F5F8FA 50%, #F0F4F8 100%);
}

.service-card-wrapper-secondary:nth-child(2) .service-card-underlay-secondary {
    background: linear-gradient(90deg, #F0F4F8 0%, #F5F8FA 50%, #F8F9F0 100%);
}

.service-card-wrapper-secondary:nth-child(3) .service-card-underlay-secondary {
    background: linear-gradient(90deg, #F2F5F8 0%, #F6F8FB 50%, #F2F5F8 100%);
}

.service-card-secondary {
    position: relative;
    z-index: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    gap: 1.5rem;
}

.service-card-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-icon-secondary {
    width: 6.5rem;
    height: 6.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.service-icon-secondary svg {
    width: 2rem;
    height: 2rem;
    color: #7CB342;
    stroke-width: 1.5;
}

.service-content-secondary {
    flex: 1;
}

.service-title-secondary {
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
    color: #2C3E50;
}

.service-list-secondary {
    list-style: none;
}

.service-list-secondary li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #546E7A;
}

.service-list-secondary li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #7CB342;
    font-weight: 600;
}

/* ============================================
   Why Choose Section
   ============================================ */

.why-choose {
    padding: 2rem 0;
    background-color: white;
    margin: 3rem 0
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
}

.benefit-card {
    text-align: left;
    padding: 2.5rem;
    border-radius: 16px;
    background-color: #F6F8FC;
    position: relative;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-card:nth-child(2) {
    background-color: #EDF3FA;
}

.benefit-card:nth-child(3) {
    background-color: #EDF5F0;
}

.benefit-card-middle {
    padding-bottom: 0rem;
}

.benefit-icon-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.benefit-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-title {
    font-size: 1.575rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2C3E50;
    line-height: 1.3;
}

.benefit-description {
    color: #546E7A;
    line-height: 1.6;
    font-size: 1.1rem;
}

.benefit-cta {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 10;
}

.benefits-mobile-cta {
    display: none;
}

.btn-benefit {
    background-color: #1a5ab9;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgb(16 58 149 / 50%);
    outline: 1px solid #103d97;
}

.btn-benefit:hover {
    background-color: #397fd7;
    box-shadow: 0 6px 20px rgb(18 62 152 / 60%);
    transform: translateY(-2px);
}

.section-cta {
    display: none;
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: 0 0 6rem 0;
    background-color: white;

}

.about-divider-wrapper {
    padding: 3rem;
    
}

.about-divider {
    height: 6px;
    background-color: #F3F1F5;
    margin-bottom: 4rem;
}

.about-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 4rem;
    align-items: flex-start;
}

.about-image {
    width: 100%;
}

.about-image-photo {
    width: 100%;
    max-height: 450px;
    display: block;
    border-radius: 32px;
    object-fit: cover;
}

.about-content {
    max-width: 700px;
}

.about-title {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-title-large {
    font-size: 2.875rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.2;
}

.about-title-small {
    font-size: 1.875rem;
    font-weight: 400;
    color: #546E7A;
    line-height: 1.3;
}

.about-author-name {
    font-size: 1.875rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.375rem;
    line-height: 1.7;
    color: #2C3E50;
    margin-bottom: 1.5rem;
}

.about-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.about-expandable.expanded {
    max-height: 1000px;
}

.about-expandable p {
    color: #546E7A;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: none;
    color: #2C3E50;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.875rem 1.5rem;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.btn-expand:hover {
    color: #7CB342;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.expand-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-expand.expanded .expand-arrow {
    transform: rotate(180deg);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #546E7A;
    line-height: 1.7;
}

.about-content .text-link {
    margin-top: 1rem;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials {
    padding: 6rem 0 0 0;
    background-color: #FAF6F5;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    
}

.testimonial-card {
    background-color: #FEF9F8;
    padding: 2rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #FFD991;
    width: 20px;
    height: 20px;
}

.testimonial-quote {
    font-style: italic;
    color: #2C3E50;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F5F3EF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.author-avatar svg {
    width: 24px;
    height: 24px;
    color: #9E9E9E;
    transition: opacity 0.2s ease;
}

.author-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-position {
    font-size: 1.125rem;
    color: #9E9E9E;
    margin-bottom: 0;
}

/* Testimonial CTA Panel */
.testimonial-cta {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
    background: url('img/contact_bg.png') center/cover no-repeat;
    padding: 2.5rem;
    border-radius: 32px;
    margin-bottom: 14rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonial-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.testimonial-cta > * {
    position: relative;
    z-index: 1;
}


.cta-text {
    font-size: 1.45rem;
    color: #546E7A;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-form {
    display: flex;
    gap: 0.5rem;
}

.cta-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.cta-input:focus {
    outline: none;
    border-color: #7CB342;
}

.cta-button {
    padding: 0 1.25rem;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #7CB342;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #6A9E38;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: #FAF6F5;
    color: #2C3E50;
    padding: 0;
    min-height: 12rem;
    display: flex;
    align-items: center;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #D3C9C3;
    margin-bottom: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 6.5vw;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo a {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-label {
    font-size: 0.875rem;
    color: #798996;
    font-weight: 400;

}

.footer-value {
    font-size: 1.125rem;
    color: #798996;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-value:hover {
    color: #7CB342;
}

.footer-legal-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-self: end;
    text-align: right;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #B4A9A2;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.75rem;
}

.footer-legal-link {
    color: #B4A9A2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: #7CB342;
}

.footer-separator {
    color: #D3C9C3;
}

/* ============================================
   Responsive Design - Medium Screens
   ============================================ */

@media (max-width: 1366px) {
    .container-content {
        padding: 0;
    }
}

/* ============================================
   Responsive Design - Large Screens
   ============================================ */

@media (min-width: 1681px) {
    .container,
    .logo-overlay,
    .partners-bar {
        max-width: 1480px;
    }
}

/* Scale down hero image between 1380px and 1680px */
@media (max-width: 1680px) and (min-width: 1381px) {
    .hero-image {
        width: 500px;
        height: 286px;
    }


}

/* Use single-column hero layout on medium-large screens (match mobile stacking) */
@media (max-width: 1380px) {
    .hero-container {
        flex-direction: column-reverse;
        align-items: flex-start;
        height: auto;
        padding: 6rem 0 10rem;
        background-size: contain;
        background-position: center bottom;
    }

    .hero-content {
        padding-right: 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        width: 160px;
        height: auto;
        margin-top: 2rem;

        align-self: flex-start;
    }

    .hero-img {
        height: auto;
        border-radius: 14px;
        aspect-ratio: 7 / 4;
        margin-bottom: 1rem;
    }
    
    .logo-img {
        height: 2.5rem;
        width: auto;
    }

    .services-grid-unified {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-wide {
        grid-column: span 1;
    }
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */

@media (max-width: 1024px) {
    .services-grid-unified {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-wide {
        grid-column: span 1;
    }

    .services-grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        align-items: stretch;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-cta {
        grid-row: auto;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Move the CTA below the benefits cards on tablets */
    .benefit-cta {
        display: none;
    }

    .hero-img {
        height: auto;
        border-radius: 14px;
        aspect-ratio: 7 / 4;
        margin-bottom: 1rem;
    }

    .benefits-mobile-cta {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 1368px) {
    /* Keep the testimonials two-column grid until 1368px */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Logo */
    .logo-overlay {
        top: 1rem;
        width: calc(100% - 2rem);
    }

    .logo-img {
        margin-left: 3%;
    }

    /* Hero */
    .hero-container {
        flex-direction: column-reverse;
        height: auto;
        background-size: contain;
        background-position: center bottom;
    }

    .hero-content {
        padding-right: 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        margin-top: 2rem;
        width: 160px;
        height: auto;

    }

    .hero-img {
        height: auto;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Partners Bar */
    .partners-bar {
        width: calc(100% - 2rem);
        padding: 1.5rem;
        bottom: -100px;
    }

    .partners-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .partners-logos {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .partners-bar {
        bottom: -3.5rem;
        height: auto;
        min-height: 7rem;
        padding: 1.5rem;
    }

    .services {
        margin-top: 5rem;
    }

    /* Services */
    .services-grid-unified {
        grid-template-columns: 1fr;
    }
    
    .service-card-wide {
        grid-column: span 1;
    }

    .services-grid-secondary {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-cta {
        grid-column: auto;
        min-height: auto;
        grid-row: auto;
        margin-bottom: 6rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        align-items: stretch;
    }

    .benefit-cta {
        display: none;
    }

    .benefits-mobile-cta {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-self: center;
    }

    .footer-logo-img {
        height: 40px;
    }

    .footer-logo,
    .footer-contact-item {
        justify-self: center;
        grid-column: auto !important;
    }

    .footer-contact-item {
        align-items: center;
    }

    .footer-legal-section {
        justify-self: center;
        grid-column: auto !important;
        grid-row: auto !important;
        text-align: center;
        display: flex !important;
        flex-direction: column !important;

        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .footer-copyright {
        text-align: center;
        display: block;

    }

    .footer-legal {
        justify-content: center;
        text-align: center;
        display: flex;
        width: 100%;
        margin-bottom: 4rem;
    }
}

/* ============================================
   Accessibility & Focus States
   ============================================ */

*:focus {
    outline: 2px solid #7CB342;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #7CB342;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #7CB342;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .header,
    .hamburger,
    .footer,
    .btn {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   New Sections Styles - Website Update
   ============================================ */

/* Simple list without icons */
.simple-list {
    list-style: disc;
    padding-left: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.simple-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Large text for additional areas */
.large-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Background light for sections */
.bg-light {
    background-color: #f8f9fa;
}

/* Section title centering */
.section-title {
    /* removed: H2 now controls section headings globally */
}

/* Button secondary style */
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #fff;
    color: #1a5ab9;
    border: 2px solid #103d97;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #397fd7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(18 62 152 / 60%);
}

/* Combined section background */
.section-combined-bg {
    background: #f5f5f5 url('img/tbg.jpg') center bottom / cover no-repeat;
    background-attachment: scroll;
    position: relative;
}

.section-combined-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 241, 247, 0.45);
    z-index: 0;
}

.section-combined-bg .container {
    position: relative;
    z-index: 1;
}

/* Combined section layout */
.combined-section {
    display: grid;
    grid-template-columns: 33% 1fr;
    gap: 3rem;
    align-items: center;
}

/* For whom container - 35% width */
.for-whom-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 0;
}

.for-whom-container h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* For whom list with individual underlays */
.for-whom-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.for-whom-list li {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 1.375rem;
    transition: all 0.3s ease;
}

.for-whom-list li:hover {
    background: #E8F5E9;
    transform: translateX(4px);
}

/* Additional areas container - 65% width */
.additional-areas-container {
    /* width controlled by parent grid */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.additional-areas-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.additional-areas-container .large-text {
    text-align: left;
    margin: 0;
}

/* Make the additional areas container the single source of typography
   — all copy inherits from this parent; H2s in this block are styled like H3s */
.additional-areas-container {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    font-size: 1.225rem;
    line-height: 1.55;
    letter-spacing: var(--letter-spacing-default, -0.02em);
    color: #2C3E50;
}

.additional-areas-container p,
.additional-areas-container .large-text,
.additional-areas-container .text {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0 0 1rem;
    max-width: none;
    text-align: left;
}

/* H2 inside this block should visually match H3 */
.additional-areas-container h2 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .services-grid-bottom {
        grid-template-columns: 1fr;
    }

    .combined-section {
        grid-template-columns: 1fr;
    }

    .for-whom-container,
    .additional-areas-container {
        width: 100%;
    }
    
    .for-whom-container,
    .additional-areas-container {
        flex: 0 0 100%;
    }
    
    .for-whom-container h2,
    .additional-areas-container h2 {
        text-align: center;
    }
    
    .additional-areas-container .large-text {
        text-align: center;
    }
    
    .services-grid-unified {
        grid-template-columns: 1fr;
    }
    
    .service-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 1280px) {
    /* Extend the single-column combined-section layout to 1280px */
    .combined-section {
        grid-template-columns: 1fr;
    }

    /* Footer - two-row layout */
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 2rem 3rem;
    }

    .footer-logo,
    .footer-contact-item {
        grid-column: span 1;
    }

    .footer-legal-section {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        justify-self: stretch;
    }

    .footer-copyright {
        text-align: left;
    }

    .footer-legal {
        text-align: right;
    }
}

/* ============================================
   Contact Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    color: #2C3E50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #9E9E9E;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #2C3E50;
}

.modal-body {
    padding: 2rem;
}

.modal-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.modal-alert.alert-danger {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.modal-alert.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #81C784;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2C3E50;
    font-size: 0.95rem;
}

.form-group .required {
    color: #EF5350;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1.375rem;
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif);
    letter-spacing: var(--letter-spacing-default, -0.02em);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #7CB342;
}

.form-control.is-invalid {
    border-color: #EF5350;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: block;
    margin-top: 1.5rem;
}

/* Full-width submit button inside modal */
.modal .form-actions .btn-full {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 1rem;
    font-size: 1rem;
}

#captchaContainer {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* ============================================
   Testimonial Modal
   ============================================ */

.testimonial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.testimonial-modal.active {
    display: flex;
}

.testimonial-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.testimonial-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.testimonial-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.testimonial-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.testimonial-modal-close svg {
    width: 20px;
    height: 20px;
    color: #2C3E50;
}

.testimonial-modal-body {
    padding: 3rem 2.5rem;
}

.testimonial-modal-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8F5E9 0%, #C5E1A5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.testimonial-modal-avatar svg {
    width: 40px;
    height: 40px;
    color: #7CB342;
}

.testimonial-modal-avatar .author-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-modal-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C3E50;
    margin: 0;
}

.testimonial-modal-position {
    font-size: 1rem;
    color: #7CB342;
    margin: 0.25rem 0 0 0;
}

.testimonial-modal-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-modal-rating .star {
    width: 20px;
    height: 20px;
    color: #FFD991;
}

.testimonial-modal-quote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2C3E50;
    font-style: italic;
    margin: 0;
}

.testimonial-more-link {
    color: #7CB342;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: normal;
}

.testimonial-more-link:hover {
    color: #558B2F;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .testimonial-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .testimonial-modal-body {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-modal-author {
        gap: 1rem;
    }
    
    .testimonial-modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-modal-avatar svg {
        width: 30px;
        height: 30px;
    }
    
    .testimonial-modal-name {
        font-size: 1.25rem;
    }
    
    .testimonial-modal-position {
        font-size: 0.9rem;
    }
    
    .testimonial-modal-quote {
        font-size: 1rem;
    }
}
