/* ============================================================
   A2S Telecom - Style CSS
   Reproduit fidèlement le design Kadence/WordPress original
   Palette: Teal #7ACFC4, Dark Teal #044355, Noir #000
   Typo: Urbanist (body), Manrope (titres, nav, boutons)
   ============================================================ */

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/urbanist-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope/manrope-variable.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CUSTOM PROPERTIES (Kadence exact values)
   ============================================================ */
:root {
    /* Palette - exact Kadence global */
    --global-palette1: #7ACFC4;
    --global-palette2: #044355;
    --global-palette3: #000000;
    --global-palette4: #010101;
    --global-palette5: #111111;
    --global-palette6: #282828;
    --global-palette7: #F5ECE5;
    --global-palette8: #F9F7F7;
    --global-palette9: #ffffff;

    /* Semantic aliases */
    --color-primary: var(--global-palette1);
    --color-primary-rgb: 122, 207, 196;
    --color-dark-teal: var(--global-palette2);
    --color-dark-teal-rgb: 4, 67, 85;
    --color-black: var(--global-palette3);
    --color-text: var(--global-palette4);
    --color-text-medium: var(--global-palette5);
    --color-text-light: var(--global-palette6);
    --color-cream: var(--global-palette7);
    --color-offwhite: var(--global-palette8);
    --color-white: var(--global-palette9);

    /* Typography */
    --font-body: 'Urbanist', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-size-body: 17px;

    /* Layout - Kadence exact */
    --content-width: 1290px;
    --content-edge-padding: 1.5rem;

    /* Header */
    --header-height: 80px;
    --header-bg-stuck: var(--global-palette3);

    /* Spacing */
    --section-padding-y: 5rem;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --btn-shadow-hover: 0px 15px 25px -7px rgba(0,0,0,0.1);
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: normal;
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-offwhite);
    margin: 0;
}

/* ============================================================
   TYPOGRAPHY (Kadence exact sizes)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.5;
    margin-top: 0;
}

h1 {
    font-weight: 600;
    font-size: 80px;
    color: var(--color-black);
}

h2 {
    font-weight: 600;
    font-size: 42px;
    color: var(--color-black);
}

h3 {
    font-weight: 500;
    font-size: 31px;
    color: var(--color-black);
}

h4 {
    font-weight: 500;
    font-size: 22px;
    color: var(--color-text);
}

h5 {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
}

h6 {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text-medium);
}

a {
    color: var(--color-dark-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

p {
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Content wrapper for white background */
main {
    background: var(--color-white);
}

/* ============================================================
   BUTTONS (Kadence exact: Manrope 500, 18px, 10px radius)
   ============================================================ */
.btn-primary,
.btn-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-black);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 10px 26px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0px 0px 0px -7px rgba(0,0,0,0);
}

.btn-primary:hover,
.btn-cta:hover {
    background-color: var(--color-dark-teal);
    border-color: var(--color-dark-teal);
    color: var(--color-white);
    box-shadow: var(--btn-shadow-hover);
}

.btn-outline {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-white);
    background-color: transparent;
    border: 2px solid var(--color-white);
    border-radius: var(--border-radius);
    padding: 10px 26px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark-teal);
    box-shadow: var(--btn-shadow-hover);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-black);
    background-color: var(--color-cream);
    border: 2px solid var(--color-cream);
    border-radius: var(--border-radius);
    padding: 10px 26px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--color-dark-teal);
    border-color: var(--color-dark-teal);
    color: var(--color-white);
    box-shadow: var(--btn-shadow-hover);
}

/* ============================================================
   ANNOUNCEMENT BAR (fixed dark band at top)
   ============================================================ */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.announcement-bar p {
    margin: 0;
}

.has-announcement .site-header {
    top: 38px;
}

.has-announcement .hero {
    padding-top: calc(var(--header-height) + 38px + 4rem);
}

/* ============================================================
   HEADER (transparent → sticky black)
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: transparent;
    transition: background-color var(--transition-medium),
                backdrop-filter var(--transition-medium);
}

.site-header.scrolled {
    background-color: var(--header-bg-stuck);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header .navbar {
    padding: 0;
    min-height: var(--header-height);
    align-items: center;
}

.site-header .container {
    max-width: var(--content-width);
}

.header-logo {
    height: 50px;
    width: auto;
}

/* Navigation links */
.site-header .nav-link {
    color: var(--color-white) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 18px;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
}

.site-header .nav-link:hover {
    color: var(--color-primary) !important;
}

.site-header .nav-link.active {
    color: var(--color-white) !important;
}

/* Underline effect on nav links */
.site-header .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.site-header .nav-link:not(.dropdown-toggle):hover::after,
.site-header .nav-link.active:not(.dropdown-toggle)::after {
    transform: scaleX(1);
}

/* Dropdown toggle caret */
.site-header .dropdown-toggle::after {
    border-top-color: var(--color-white);
}

/* Mobile toggler */
.site-header .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    padding: 0.4rem 0.8rem;
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Services mega-menu dropdown (Kadence style: wide white panel) */
.site-header .nav-item.dropdown {
    position: static;
}

.dropdown-menu-mega {
    max-width: 1100px;
    background: var(--color-white);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto;
    transform: none;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.mega-menu-card {
    display: block;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.mega-menu-card:hover {
    background: var(--color-offwhite);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}

.mega-menu-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.mega-menu-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-black);
    margin: 0 0 0.5rem;
}

.mega-menu-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Header CTA button */
.header-cta {
    font-size: 16px !important;
    padding: 8px 20px !important;
    white-space: nowrap;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    overflow: hidden;
}

/* Photo hero (service pages): gradient overlay */
.hero:not(.hero-dark)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4,67,85,0.85) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
}

/* Dark tech hero: black gradient base */
.hero.hero-dark {
    background: linear-gradient(120deg, var(--color-black) 1%, var(--global-palette4) 100%);
}

/* Service/inner page hero: shorter height, smaller title */
body:not(.page-accueil) .hero {
    min-height: 50vh;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
}

body:not(.page-accueil) .hero h1 {
    font-size: clamp(2.5rem, 5vw, 56px);
}

/* Hero background video */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Hero overlay layers for dark hero */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
}

.hero-overlay-gradient {
    opacity: 0.35;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: var(--content-width);
}

/* Dark hero (homepage only): center-aligned text */
.page-accueil .hero.hero-dark .container {
    text-align: center;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.page-accueil .hero.hero-dark h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero:not(.hero-dark) h1 {
    max-width: 800px;
}

/* Télécom highlight decoration (strikethrough style) */
.hero h1 mark {
    color: inherit;
    background: transparent;
    position: relative;
    display: inline;
}

.hero h1 mark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 55%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.hero p,
.hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.page-accueil .hero.hero-dark .lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero:not(.hero-dark) .lead {
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-accueil .hero.hero-dark .hero-buttons {
    justify-content: center;
}

/* Hero large logo (A2S TÉLÉCOM) */
.hero-logo-wrap {
    margin-top: 3rem;
    text-align: center;
}

.hero-logo-large {
    max-width: 500px;
    width: 80%;
    height: auto;
    opacity: 0.95;
}

/* Hero partner logos carousel (infinite scroll) */
.hero-carousel-wrap {
    margin-top: 2.5rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-carousel-track {
    display: flex;
    align-items: center;
    gap: 55px;
    width: max-content;
    animation: hero-carousel-scroll 25s linear infinite;
}

.hero-carousel-item {
    flex-shrink: 0;
}

.hero-carousel-item img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.hero-carousel-item img:hover {
    opacity: 1;
}

@keyframes hero-carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   SECTIONS - General
   ============================================================ */
.section {
    padding: var(--section-padding-y) 0;
}

.section .container {
    max-width: var(--content-width);
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Background variants */
.bg-cream {
    background-color: var(--color-cream);
}

.bg-offwhite {
    background-color: var(--color-offwhite);
}

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

.bg-dark-teal h2,
.bg-dark-teal h3,
.bg-dark-teal h4 {
    color: var(--color-white);
}

/* ============================================================
   TEXT + IMAGE (alternating sections)
   ============================================================ */
.section-text-image .section-icon {
    margin-bottom: 1rem;
}

.section-text-image .section-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.section-text-image .section-content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
}

.section-text-image .section-content p {
    margin-bottom: 1rem;
}

.section-text-image .section-image-wrap {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.section-text-image .section-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

/* ============================================================
   CARDS (SAV, info cards)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0px 15px 15px -10px rgba(0,0,0,0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.info-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    object-fit: contain;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   SERVICE CARDS (homepage grid with image overlay)
   ============================================================ */
.service-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: var(--color-white);
    transition: transform var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-6px);
    color: var(--color-white);
}

.service-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.service-card:hover > img {
    transform: scale(1.05);
}

.service-card .service-card-overlay {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(4,67,85,0.9));
    width: 100%;
    padding-top: 5rem;
}

.service-card h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   PARTNERS (logo grid)
   ============================================================ */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3.5rem;
    padding: 1rem 0;
}

.partners-grid img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.partners-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ============================================================
   ABOUT SECTION (CEO + features)
   ============================================================ */
.about-portrait {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.about-features .feature-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.about-features .feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-features .feature-item h4 {
    color: var(--color-dark-teal);
    font-size: 22px;
    margin-bottom: 0.5rem;
}

.about-features .feature-item p {
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0px 15px 15px -10px rgba(0,0,0,0.05);
}

.testimonial-card .quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card .quote::before {
    content: '\201C';
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.testimonial-card .author {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-dark-teal);
}

.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}

.faq-section .accordion-button {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--color-text);
    background: transparent;
    box-shadow: none;
    padding: 1.25rem 0;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--color-dark-teal);
    background: transparent;
}

.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23044355'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
    padding: 0 0 1.25rem 0;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================================
   CTA BANNER (full-width colored)
   ============================================================ */
.cta-banner {
    padding: var(--section-padding-y) 0;
}

.cta-banner .container {
    max-width: var(--content-width);
}

.cta-banner.bg-dark-teal {
    background: linear-gradient(135deg, var(--color-dark-teal), #065a6e);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.cta-banner .cta-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    max-width: 700px;
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION (with bullets + image)
   ============================================================ */
.cta-section .cta-bullets {
    list-style: none;
    padding: 0;
}

.cta-section .cta-bullets li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.cta-section .cta-bullets li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================================
   STATS BAR (bottom of service pages)
   ============================================================ */
.stats-bar {
    background-color: var(--color-dark-teal);
    color: var(--color-white);
    padding: 2.5rem 0;
}

.stats-bar .container {
    max-width: var(--content-width);
}

.stats-bar .stat-item {
    text-align: center;
}

.stats-bar .stat-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.stats-bar .stat-subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form .form-control {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-info-icon {
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert-success {
    background-color: rgba(var(--color-primary-rgb), 0.15);
    border-color: var(--color-primary);
    color: var(--color-dark-teal);
}

/* ============================================================
   FOOTER (Kadence: bg black, social white→dark teal)
   ============================================================ */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.site-footer .container {
    max-width: var(--content-width);
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--color-primary);
}

.footer-company {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-contact-item {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: rgba(255,255,255,0.7);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: transparent;
    border: 2px solid currentColor;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-dark-teal);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: var(--color-primary);
}

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

/* ============================================================
   RICH TEXT (WYSIWYG content)
   ============================================================ */
.section-content {
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul,
.section-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.3rem;
}

.section-content strong {
    font-weight: 600;
}

/* ============================================================
   DARK SECTIONS (service cards + testimonials on homepage)
   ============================================================ */
.section-dark {
    background: linear-gradient(150deg, var(--color-black) 0%, var(--global-palette4) 100%);
    color: rgba(255,255,255,0.85);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-dark p,
.section-dark small {
    color: rgba(255,255,255,0.7);
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.6);
}

/* Testimonials in dark section */
.section-dark .testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.section-dark .testimonial-card .quote {
    color: rgba(255,255,255,0.8);
}

.section-dark .testimonial-card .author {
    color: var(--color-primary);
}

.section-dark .testimonial-card .role {
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   HERO ANIMATIONS (pure CSS, no AOS dependency)
   ============================================================ */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.3s; }
.hero-anim-3 { animation-delay: 0.5s; }
.hero-anim-4 { animation-delay: 0.7s; }
.hero-anim-5 { animation-delay: 0.9s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

/* ============================================================
   RESPONSIVE - Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 3rem;
    }

    h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
    h2 { font-size: clamp(1.8rem, 3vw, 2.625rem); }
    h3 { font-size: clamp(1.4rem, 2.5vw, 1.9375rem); }
}

@media (max-width: 991.98px) {
    .hero {
        min-height: 60vh;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .has-announcement .hero {
        padding-top: calc(var(--header-height) + 38px + 2rem);
    }

    .site-header .navbar-collapse {
        background-color: var(--color-black);
        padding: 1rem;
        border-radius: 0;
        margin-top: 0.5rem;
    }

    .dropdown-menu-mega {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0.75rem;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .mega-menu-card {
        background: rgba(255,255,255,0.08);
        color: var(--color-white);
        padding: 0.8rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .mega-menu-card:hover {
        background: rgba(255,255,255,0.15);
        color: var(--color-white);
        transform: none;
        box-shadow: none;
    }

    .mega-menu-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        filter: brightness(0) invert(1);
    }

    .mega-menu-title {
        color: var(--color-white);
        margin-bottom: 0;
    }

    .mega-menu-desc {
        display: none;
    }

    .service-card {
        aspect-ratio: 16/10;
    }
}

/* ============================================================
   RESPONSIVE - Mobile (max 767px)
   ============================================================ */
@media (max-width: 767.98px) {
    :root {
        --section-padding-y: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .hero {
        min-height: 50vh;
    }

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

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

    .partners-grid img {
        height: 35px;
    }

    .stats-bar .row > div + div {
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* ============================================================
   RESPONSIVE - Small mobile (max 575px)
   ============================================================ */
@media (max-width: 575.98px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        text-align: center;
    }
}
