/* ============================================
   ITESV — Premium Green & White Design System
   ============================================ */

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

:root {
    --champagne: #c9a227;
    --champagne-soft: rgba(201, 162, 39, 0.08);
    --forest: #042f2e;
    --forest-deep: #022c26;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    --cream: #f4f6f5;
    --surface: #f9faf9;
    --white: #ffffff;
    --ink: #0c1714;
    --ink-soft: #3d4d45;
    --muted: #5f6f68;
    --line: rgba(12, 23, 20, 0.06);
    --line-strong: rgba(12, 23, 20, 0.1);
    --shadow-xs: 0 1px 2px rgba(15, 23, 20, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 20, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 20, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 20, 0.08);
    --shadow-card: 0 1px 3px rgba(15, 23, 20, 0.05);
    --shadow-elevate: 0 6px 28px rgba(15, 23, 20, 0.07);
    --shadow-emerald: 0 6px 22px rgba(4, 120, 87, 0.14);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Outfit", system-ui, sans-serif;
    --page-pad: clamp(1.25rem, 4vw, 3.5rem);
    --nav-h: 68px;
    --space-section: 3.5rem;
    --space-section-sm: 2.85rem;
    --space-header: 1.65rem;
    --space-gap: 1.15rem;
    --card-pad: 1.4rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
    font-size: clamp(15px, 0.28vw + 14.2px, 17px);
    font-weight: 400;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--ink);
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 3px;
}

h1,
h2,
h3,
.hero-title,
.section-title,
.cta-title,
.footer-logo h3,
.logo-text,
.about-text h2,
.service-detail-card h2,
.page-hero .section-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Full-width shell: edge-to-edge sections with fluid horizontal padding */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

/* —— Navigation —— */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.35s ease, border-color 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-xs);
    border-bottom-color: var(--line);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    padding: 0.65rem 0;
    position: relative;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-text {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 55%, var(--emerald-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.625rem;
    font-family: var(--font-sans);
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: clamp(0.875rem, 0.15vw + 0.84rem, 0.95rem);
    transition: color 0.25s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald-800);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--white);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-nav-cta {
    padding: 0.55rem 1.15rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    box-shadow: none;
    min-height: 2.75rem;
    box-sizing: border-box;
}

.nav-menu-cta {
    display: none;
    list-style: none;
    padding: 0.65rem 1.1rem 0.85rem;
    margin: 0;
    border-top: 1px solid var(--line);
}

.nav-menu-cta .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 968px) {
    /* Must beat later `.btn { display: inline-flex }` — header CTA only; menu duplicate stays in dropdown */
    .nav-actions .btn.btn-nav-cta {
        display: none;
    }

    .nav-menu-cta {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        right: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
        gap: 0;
        height: auto;
        max-height: none;
        overflow: hidden;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        transform-origin: top center;
        transform: translateY(-4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.28s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--line);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        padding: 0.85rem 1.1rem;
        display: flex;
        align-items: center;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* —— Hero —— */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 2.75rem) 0 3rem;
    margin-top: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--emerald-50) 0%, var(--surface) 45%, var(--white) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 45% at 88% 5%, rgba(5, 150, 105, 0.09) 0%, transparent 52%),
        radial-gradient(ellipse 50% 40% at 12% 90%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    display: none;
}

/* Calmer hero — hide floating orbs */
.hero .hero-decor {
    display: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: min(56rem, 100%);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.45rem, 4.2vw + 1rem, 4.1rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.035em;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 45%, var(--emerald-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.02rem, 0.95vw + 0.86rem, 1.22rem);
    color: var(--ink-soft);
    margin-bottom: 1.65rem;
    line-height: 1.74;
    max-width: min(38rem, 100%);
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    flex: 1 1 12rem;
    max-width: 18rem;
    min-height: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.92rem 1.9rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 999px;
    text-decoration: none;
    transition:
        transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn:focus-visible {
    outline: 2px solid var(--emerald-400);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-emerald);
}

.btn-secondary {
    background: var(--white);
    color: var(--emerald-800);
    border-color: var(--line);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--line-strong);
    background: var(--emerald-50);
    color: var(--emerald-800);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(12, 23, 20, 0.08);
    max-width: min(52rem, 100%);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 0.95rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--ease-out);
}

.stat-item:hover {
    border-color: rgba(16, 185, 129, 0.18);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 600;
    color: var(--emerald-700);
    margin-bottom: 0.4rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 968px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* —— Sections —— */
section {
    padding: var(--space-section) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-header);
    max-width: min(48rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.38rem 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--emerald-50) 100%);
    color: var(--emerald-800);
    font-family: var(--font-sans);
    font-size: 0.65625rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 1px 2px rgba(4, 100, 80, 0.05);
}

.section-title {
    font-size: clamp(1.9rem, 2.6vw + 1rem, 2.95rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.9rem;
    line-height: 1.15;
    letter-spacing: -0.032em;
}

.section-description {
    font-size: clamp(1.02rem, 0.55vw + 0.93rem, 1.14rem);
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* —— Services grid —— */
.services {
    background: var(--white);
    border-top: 1px solid var(--line);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gap);
    align-items: stretch;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.35s var(--ease-out),
        border-color 0.25s ease,
        box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevate);
    border-color: rgba(16, 185, 129, 0.14);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--emerald-800) 0%, var(--emerald-600) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.2);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.service-description {
    color: var(--muted);
    margin-bottom: 1.2rem;
    line-height: 1.65;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    margin-bottom: 0;
    flex: 1 1 auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features li i {
    color: var(--emerald-600);
    font-size: 0.7rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--emerald-800);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.25s ease, color 0.25s ease;
    margin-top: auto;
    padding-top: 1.25rem;
}

.service-link:hover {
    gap: 0.65rem;
    color: var(--emerald-600);
}

/* Services alternate page layout */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
    }
}

.services-page .service-card.highlighted {
    border-color: var(--emerald-500);
    background: var(--emerald-50);
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%,
    100% {
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.18);
    }
    50% {
        box-shadow: 0 12px 48px rgba(16, 185, 129, 0.32);
    }
}

/* —— About —— */
.about {
    background: var(--surface);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
    align-items: center;
}

@media (max-width: 968px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-description {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-gap);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.15rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.35s var(--ease-out), border-color 0.35s ease, transform 0.35s var(--ease-out);
}

.about-feature:hover {
    box-shadow: none;
    border-color: var(--line-strong);
    transform: none;
}

.about-feature i {
    font-size: 1.35rem;
    color: var(--emerald-600);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

.about-photo {
    margin: 0;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    background: var(--emerald-50);
    line-height: 0;
    position: relative;
}

.about-photo::after {
    display: none;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* —— Client reviews (testimonials) —— */
.testimonials {
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 35%, var(--white) 100%);
    border-top: 1px solid var(--line);
}

.testimonials-reviews .section-description {
    max-width: 40rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gap);
    align-items: stretch;
}

@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.45rem 1.45rem;
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.35s var(--ease-out),
        border-color 0.25s ease,
        box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-700), var(--emerald-500));
    opacity: 0.85;
}

.testimonial-card::after {
    content: "\201C";
    position: absolute;
    top: 0.85rem;
    right: 1.1rem;
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--emerald-700);
    opacity: 0.07;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.14);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #b45309;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.testimonial-stars i {
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

.testimonial-quote {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

.testimonial-quote p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.72;
    font-size: 0.96875rem;
    font-style: normal;
    font-weight: 400;
    font-family: var(--font-sans);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.35rem;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--emerald-800) 0%, var(--emerald-600) 100%);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.2);
}

.author-info {
    min-width: 0;
    text-align: left;
}

.author-name {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.author-role {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 500;
}

/* —— CTA —— */
.cta {
    background: linear-gradient(165deg, var(--emerald-900) 0%, var(--forest-deep) 48%, #031f1c 100%);
    color: var(--white);
    text-align: center;
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 55% at 50% -20%, rgba(52, 211, 153, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: min(44rem, 100%);
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.05rem, 3.9vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.cta-description {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    margin-bottom: 1.5rem;
    opacity: 0.92;
    line-height: 1.65;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    flex: 1 1 12rem;
    max-width: 18rem;
    min-height: 3rem;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--emerald-900);
    box-shadow: var(--shadow-md);
}

.cta .btn-primary:hover {
    background: var(--emerald-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevate);
}

.cta .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* —— Footer —— */
.footer {
    background: linear-gradient(180deg, var(--forest-deep) 0%, #011a17 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.75rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #fff 0%, var(--emerald-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.footer-description {
    line-height: 1.65;
    margin-bottom: 1.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--emerald-600);
    border-color: var(--emerald-500);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.1rem;
    letter-spacing: 0.02em;
}

.footer-col h4 + ul + h4 {
    margin-top: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--emerald-200);
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
    margin-top: 0.75rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.footer-contact li i {
    color: var(--emerald-400);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--emerald-200);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
}

/* —— Page hero (inner pages) —— */
.page-hero {
    padding: calc(var(--nav-h) + 2rem) 0 2.35rem;
    background: linear-gradient(180deg, var(--emerald-50) 0%, var(--surface) 55%, var(--white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 58% 70% at 50% -15%, rgba(5, 150, 105, 0.08) 0%, transparent 52%);
    pointer-events: none;
}

.page-hero .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.page-hero .section-title {
    font-size: clamp(2.15rem, 4vw, 3rem);
}

/* —— About / Values / Team / Achievements / Services detail / Products —— */
.about-content-section,
.team-section,
.services-detail-section {
    padding: var(--space-section) 0;
    background: var(--white);
}

.values-section {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.achievements-section {
    padding: var(--space-section) 0;
    background: var(--white);
}

.products-section {
    padding: var(--space-section) 0;
    background: var(--white);
}

.partners-section {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.about-content-wrapper {
    max-width: min(52rem, 100%);
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.1rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.1rem;
    margin-top: 1.75rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.35rem;
}

.values-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-gap);
    align-items: stretch;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-gap);
    align-items: stretch;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gap);
    align-items: stretch;
}

/* SMM panels: center row(s) when fewer than three cards */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-gap);
    width: 100%;
}

.products-grid .product-card {
    flex: 1 1 300px;
    max-width: min(420px, 100%);
}

@media (max-width: 1400px) {
    .values-grid,
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .values-grid,
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid,
    .achievements-grid,
    .team-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .products-grid .product-card {
        max-width: none;
    }
}

.value-card,
.team-member,
.achievement-item,
.product-card,
.partner-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.35s var(--ease-out),
        border-color 0.25s ease,
        box-shadow 0.35s ease;
}

.value-card:hover,
.team-member:hover,
.achievement-item:hover,
.product-card:hover,
.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevate);
    border-color: rgba(16, 185, 129, 0.12);
}

.value-icon,
.achievement-icon,
.product-icon,
.partner-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--emerald-800) 0%, var(--emerald-600) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.15rem;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.18);
}

.value-card h3,
.team-member h3,
.product-card h3,
.partner-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.value-card p {
    flex: 1 1 auto;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: var(--emerald-50);
    border: 2px solid rgba(255, 255, 255, 0.95);
    outline: 1px solid var(--line-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--emerald-700);
    font-size: 2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.member-role {
    color: var(--emerald-700);
    font-weight: 600;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.875rem;
}

/* —— Team showcase (About — Meet the Experts) —— */
.team-section {
    background: var(--white);
}

.team-section > .container > .section-header {
    margin-bottom: calc(var(--space-header) + 0.35rem);
}

.team-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    max-width: min(76rem, 100%);
    margin: 0 auto;
}

.team-member--featured {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) 1fr;
    gap: 1.75rem 2.25rem;
    align-items: stretch;
    text-align: left;
    padding: 0;
    background: linear-gradient(125deg, var(--white) 0%, var(--emerald-50) 42%, var(--surface) 100%);
    border-color: rgba(16, 185, 129, 0.14);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.team-member--featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--emerald-700), var(--emerald-500));
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
}

/* CEO photo: framed portrait for better face / upper-body visibility */
.member-photo-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1rem 1.35rem;
    margin: 0;
    min-height: 100%;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, var(--emerald-50) 100%);
    border-right: 1px solid rgba(16, 185, 129, 0.1);
}

.member-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0.85rem 0.85rem 0.85rem 1.1rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(6, 95, 70, 0.05);
}

.team-member--featured .member-avatar--ceo {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: min(300px, 100%);
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 220px;
    margin: 0;
    border-radius: var(--radius);
    border: 2px solid var(--white);
    outline: 1px solid rgba(16, 185, 129, 0.15);
    outline-offset: 0;
    box-shadow:
        0 14px 36px rgba(4, 47, 46, 0.1),
        0 4px 12px rgba(4, 47, 46, 0.06);
}

.team-member--featured .member-avatar--ceo img {
    object-fit: cover;
    object-position: center 18%;
}

.team-member__body {
    min-width: 0;
    padding: 1.65rem 1.85rem 1.85rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-member--featured .member-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin: 0 0 0.4rem;
}

@media (min-width: 701px) {
    .team-member--featured .team-member__body {
        padding-right: 1.75rem;
    }
}

.team-member--featured h3 {
    font-size: clamp(1.32rem, 2.4vw, 1.65rem);
    font-weight: 600;
    margin: 0 0 0.4rem;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.team-member--featured .member-role {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--emerald-900);
}

.member-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0;
}

.member-tags li {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald-800);
    padding: 0.3rem 0.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.team-member--featured .member-bio {
    font-size: 0.95rem;
    line-height: 1.72;
    margin: 0;
    max-width: 52ch;
    color: var(--ink-soft);
}

.team-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-gap);
}

.team-member--card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.45rem 1.35rem 1.5rem;
    height: 100%;
}

.team-member--card .member-avatar {
    margin: 0 0 1.05rem;
    align-self: flex-start;
}

.team-member--card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.4rem;
}

.team-member--card .member-role {
    margin-bottom: 0.65rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: var(--emerald-700);
}

.team-member--card .member-bio {
    margin-top: auto;
    font-size: 0.9rem;
    line-height: 1.68;
}

@media (max-width: 900px) {
    .team-sub-grid {
        grid-template-columns: 1fr;
        max-width: min(26rem, 100%);
        margin-inline: auto;
    }

    .team-member--card {
        text-align: center;
    }

    .team-member--card .member-avatar {
        align-self: center;
    }
}

@media (max-width: 820px) {
    .team-member--featured {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 0 1.5rem;
    }

    .team-member--featured::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        border-radius: 4px 4px 0 0;
    }

    .member-photo-frame {
        border-right: none;
        border-bottom: 1px solid rgba(16, 185, 129, 0.12);
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .member-photo-frame::after {
        inset: 1rem 1.25rem 1.15rem;
    }

    .team-member--featured .member-avatar--ceo {
        max-width: 260px;
        min-height: 200px;
        margin-inline: auto;
    }

    .team-member--featured .member-role {
        justify-content: center;
    }

    .member-tags {
        justify-content: center;
    }

    .team-member--featured .member-bio {
        max-width: none;
    }

    .team-member__body {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.35rem 1.35rem 0.25rem;
    }
}

@media (min-width: 821px) and (max-width: 1100px) {
    .team-member--featured {
        grid-template-columns: minmax(200px, 0.4fr) 1fr;
        gap: 1.35rem 1.5rem;
    }

    .member-photo-frame {
        padding: 0.85rem 0.65rem 0.85rem 1rem;
    }

    .team-member--featured .member-avatar--ceo {
        max-width: 240px;
        min-height: 200px;
    }
}

.achievement-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 600;
    color: var(--emerald-700);
    margin-bottom: 0.4rem;
    line-height: 1;
}

.achievement-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
}

.achievement-item .achievement-icon,
.achievement-item .achievement-number {
    flex-shrink: 0;
}

.services-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-gap);
    align-items: stretch;
}

@media (max-width: 768px) {
    .services-detail {
        grid-template-columns: 1fr;
    }
}

.service-detail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.35s var(--ease-out),
        border-color 0.25s ease,
        box-shadow 0.35s ease;
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.service-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevate);
    border-color: rgba(16, 185, 129, 0.14);
}

.service-detail-card.highlighted {
    border-color: var(--emerald-500);
    background: linear-gradient(180deg, var(--emerald-50) 0%, var(--white) 100%);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.1);
    animation: none;
}

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

.service-detail-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--emerald-800) 0%, var(--emerald-600) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.22);
}

.service-detail-card h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.service-detail-content > p {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    margin-top: 0.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    color: var(--emerald-600);
    font-size: 1.35rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.feature-item p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

.partner-category {
    color: var(--emerald-700);
    font-weight: 600;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.product-description,
.partner-description {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0.85rem;
    font-size: 0.94rem;
    flex: 1 1 auto;
}

.product-features {
    list-style: none;
    margin-bottom: 0;
    text-align: left;
    flex: 1 1 auto;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.product-features li i {
    color: var(--emerald-600);
    font-size: 0.7rem;
}

.product-features li:last-child {
    margin-bottom: 0;
}

.partner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    justify-content: center;
    flex: 1 1 auto;
    align-content: flex-start;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--emerald-50);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--emerald-900);
    font-weight: 600;
}

.feature-tag i {
    color: var(--emerald-600);
    font-size: 0.65rem;
}

.product-link,
.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
    border-radius: 999px;
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
    margin-top: auto;
    min-height: 3rem;
    box-sizing: border-box;
}

.product-link:hover,
.partner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.38);
    color: var(--white);
}

@media (max-width: 768px) {
    section {
        padding: var(--space-section-sm) 0;
    }

    .hero {
        padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: auto;
        flex: 1 1 calc(50% - 0.5rem);
        min-width: min(100%, 11rem);
        max-width: none;
    }

    .nav-menu-cta .btn {
        width: 100%;
        max-width: none;
        flex: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn,
    .cta-buttons .btn {
        flex: none;
        width: 100%;
        max-width: none;
    }
}
