@charset "utf-8";

/*==============================================================
  layout.css — Estilos exclusivos de Header, Navegación y Footer
  Extraído de main.css para facilitar el mantenimiento.
  Editando este archivo afectas al menú y footer en todos las páginas.
==============================================================*/

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/

/* El header se inyecta dentro de #header-placeholder via JS.
   Hacemos sticky al contenedor real para que siempre sea visible. */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 997;
}

.header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.90);
}

/* backdrop-filter se aplica en ::before para NO crear un containing block
   para position:fixed. Si estuviera en .header directamente, Chrome trataría
   .header como containing block del navmenu fijo, haciendo que el menú móvil
   se posicione dentro de la barra del header (~70px) en vez del viewport. */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--header-background-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.header .navmenu a,
.header .navmenu a:focus {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/*
  En index.html el header es semitransparente (glassmorphism) porque
  se superpone al hero parallax.
  En el resto de páginas usamos fondo blanco sólido para garantizar
  legibilidad sin imagen de fondo detrás.
*/
body:not(.index-page) .header {
    --header-background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

/* En páginas no-index el texto del nav puede ser oscuro sin problema */
body:not(.index-page) .header .navmenu a,
body:not(.index-page) .header .navmenu a:focus {
    text-shadow: none;
}


/* Logo — restricción de ancho para todos los breakpoints */
.logo svg#LOGO {
    width: auto;
    max-width: 220px;
    height: 46px;
    display: block;
}

/* Logo — ancho ampliado en pantallas grandes */
@media (min-width: 1400px) {
    .logo svg#LOGO {
        max-width: 280px;
        height: 52px;
    }
}

/*--------------------------------------------------------------
# Navigation Menu
# Breakpoint de colapso: lg (≥992px expandido, <992px drawer).
--------------------------------------------------------------*/
/* Navmenu - Desktop (≥992px) */
@media (min-width: 992px) {
    .navmenu {
        padding: 0
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center
    }

    .navmenu li {
        position: relative
    }

    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 18px 15px;
        font-size: 15px;
        font-family: var(--nav-font);
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s
    }

    .navmenu li:last-child a {
        padding-right: 0
    }

    .navmenu li:hover>a,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-hover-color)
    }

    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 0;
        background: var(--nav-dropdown-background-color);
        display: block;
        position: absolute;
        visibility: hidden;
        left: 14px;
        top: 130%;
        opacity: 0;
        transition: 0.3s;
        border-radius: 4px;
        z-index: 99;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1)
    }

    .navmenu .dropdown ul li {
        min-width: 200px
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        color: var(--nav-dropdown-color)
    }

    .navmenu .dropdown ul a i {
        font-size: 12px
    }

    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active,
    .navmenu .dropdown ul .active:focus,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover>a {
        color: var(--nav-dropdown-hover-color)
    }

    .navmenu .dropdown:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible
    }

    .navmenu .dropdown .dropdown ul {
        top: 0;
        left: -90%;
        visibility: hidden
    }

    .navmenu .dropdown .dropdown:hover>ul {
        opacity: 1;
        top: 0;
        left: -100%;
        visibility: visible
    }
}

/* Navmenu - Mobile/tablet (<992px drawer) */
@media (max-width: 991.98px) {

    /* ── Logo responsivo en móvil (evita desbordamiento horizontal) ── */
    .logo svg#LOGO {
        width: auto;
        max-width: 180px;
        height: 42px;
    }

    /* ── Hamburger button ── */
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 26px;
        line-height: 0;
        margin-right: 8px;
        cursor: pointer;
        transition: color 0.3s;
        z-index: 1037;
        position: relative;
        background: transparent;
        border: 0;
        padding: 6px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ── Navmenu wrapper (becomes full-screen backdrop) ── */
    .navmenu {
        padding: 0;
        z-index: 1035;
    }

    /* ── Side-drawer panel ── */
    .navmenu ul {
        list-style: none;
        margin: 0;
        padding: 0;

        /* Drawer starts off-screen to the right */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        z-index: 1036;

        background: #0f1923;
        border-left: 1px solid rgba(105, 168, 47, 0.15);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);

        display: flex;
        flex-direction: column;
        overflow-y: auto;
         padding-top: 70px; /* space for the × button */

        /* Hidden by default — slide in via transform */
        transform: translateX(110%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s;
    }

    /* ── First-level links ── */
    .navmenu a,
    .navmenu a:focus {
        color: rgba(255, 255, 255, 0.85);
        padding: 13px 24px;
        font-family: var(--nav-font);
        font-size: 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: color 0.25s, background 0.25s;
        letter-spacing: 0.02em;
    }

    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: #69A82F;
        background: rgba(105, 168, 47, 0.06);
    }

    /* ── Chevron icon inside links ── */
    .navmenu a i,
    .navmenu a:focus i {
        font-size: 11px;
        line-height: 0;
        margin-left: 6px;
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: transform 0.3s, background 0.3s, border-color 0.3s;
    }

    .navmenu a i:hover,
    .navmenu a:focus i:hover {
        background: rgba(105, 168, 47, 0.15);
        border-color: #69A82F;
        color: #69A82F;
    }

    /* Rotate chevron when submenu is open */
    .navmenu .active > a i,
    .navmenu .active > a:focus i {
        transform: rotate(180deg);
        background: rgba(105, 168, 47, 0.15);
        border-color: #69A82F;
        color: #69A82F;
    }

    /* ── Submenu (dropdown ul) ── */
    .navmenu .dropdown ul {
        position: static;
        display: none;
        padding: 4px 0;
        margin: 0;
        width: auto;
        /* .navmenu ul sets transform/visibility for the drawer animation.
           Those rules also match these nested uls (same selector).
           Reset them here so submenus are fully visible when opened. */
        transform: none;
        visibility: visible;
        box-shadow: none;
        transition: none;
        /* Visual style */
        background: rgba(0, 0, 0, 0.25);
        border-top: 1px solid rgba(105, 168, 47, 0.1);
        border-bottom: 1px solid rgba(105, 168, 47, 0.1);
    }

    .navmenu .dropdown ul a {
        padding: 10px 24px 10px 40px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.65);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .navmenu .dropdown ul a:hover {
        color: #69A82F;
        background: rgba(105, 168, 47, 0.05);
    }

    /* ── Nested sub-submenu ── */
    .navmenu .dropdown ul ul {
        background: rgba(0, 0, 0, 0.2);
    }

    .navmenu .dropdown ul ul a {
        padding-left: 56px;
    }

    /* Reveal submenu when parent has .dropdown-active */
    .navmenu .dropdown > .dropdown-active {
        display: block;
    }

    /* ── Active state: drawer slides in ── */
    .mobile-nav-active {
        overflow: hidden;
    }

    /* Dim backdrop */
    .mobile-nav-active .navmenu {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* Slide the <ul> panel in */
    .mobile-nav-active .navmenu > ul {
        transform: translateX(0);
        visibility: visible;
    }

    /* × close button repositioned to sit inside the drawer */
    .mobile-nav-active .mobile-nav-toggle {
        color: rgba(255, 255, 255, 0.75);
        position: fixed;
        font-size: 24px;
        top: 16px;
        right: calc(min(320px, 85vw) - 44px);
        margin-right: 0;
        z-index: 1037;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: color 0.25s, border-color 0.25s, background 0.25s;
    }

    .mobile-nav-active .mobile-nav-toggle:hover {
        color: #69A82F;
        border-color: #69A82F;
        background: rgba(105, 168, 47, 0.1);
    }

    /* Brand bar at the top of the drawer */
    .mobile-nav-active .navmenu > ul::before {
        content: 'Menu';
        text-align: center;
        display: block;
        position: absolute;
        /* move the label a bit lower so it doesn’t sit behind the × button
           (you can tweak the value as needed or even center it with translate) */
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        line-height: 60px;
        padding: 0 24px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(105, 168, 47, 0.7);
        border-bottom: 1px solid rgba(105, 168, 47, 0.15);
        pointer-events: none;
    }
}

/*--------------------------------------------------------------
# Nav CTA Button (Contact) — Shiny animated border
# Inspired by: https://ryanmulligan.dev/blog/css-property-new-style/
# Colors adapted to Duralis brand (#69A82F accent green)
--------------------------------------------------------------*/

/* Houdini @property — enables animating gradient angles as numbers.
   In browsers without support (old Firefox, old Safari) the animation
   simply won't play, but the button still renders correctly. */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 5%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: white;
    inherits: false;
}

/* ── Desktop only (≥992px): full shiny effect ── */
@media (min-width: 992px) {

    .nav-cta a,
    .nav-cta a:focus {
        /* Brand tokens */
        --cta-bg:               #0a1628;
        --cta-bg-subtle:        #1a2540;
        --cta-fg:               #ffffff;
        --cta-highlight:        #69A82F;
        --cta-highlight-subtle: #a8ff6e;

        /* Animation tokens */
        --cta-duration:    3s;
        --cta-transition:  800ms cubic-bezier(0.25, 1, 0.5, 1);

        /* Layout overrides */
        isolation: isolate;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        outline-offset: 4px;
        padding: 0.55rem 1.35rem !important;
        margin-left: 8px;
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        text-shadow: none !important;

        /* Pill shape */
        border: 1px solid transparent;
        border-radius: 360px;
        color: var(--cta-fg) !important;

        /* Two-layer background:
           inner fill  → padding-box
           animated conic border → border-box */
        background:
            linear-gradient(var(--cta-bg), var(--cta-bg)) padding-box,
            conic-gradient(
                from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
                transparent,
                var(--cta-highlight)        var(--gradient-percent),
                var(--gradient-shine)       calc(var(--gradient-percent) * 2),
                var(--cta-highlight)        calc(var(--gradient-percent) * 3),
                transparent                 calc(var(--gradient-percent) * 4)
            ) border-box;

        box-shadow:
            inset 0 0 0 1px var(--cta-bg-subtle),
            inset 0 -8px 24px rgba(105, 168, 47, 0);   /* glow: off by default */

        /* Animatable CSS custom properties */
        transition:
            --gradient-angle-offset var(--cta-transition),
            --gradient-percent      var(--cta-transition),
            --gradient-shine        var(--cta-transition),
            box-shadow              var(--cta-transition),
            translate               0s;

        /* Two simultaneous gradient-angle animations:
           #1 runs forward always (idle slow rotation)
           #2 runs in reverse and is paused — resumes on hover;
           animation-composition: add combines both angles */
        animation:
            gradient-angle linear var(--cta-duration) infinite,
            gradient-angle linear calc(var(--cta-duration) / 0.4) reverse paused;
        animation-composition: add;
    }

    /* Press feedback */
    .nav-cta a:active {
        translate: 0 1px;
    }

    /* ── Dots pattern (::before) ── */
    .nav-cta a::before {
        content: "";
        pointer-events: none;
        position: absolute;
        left: 50%;
        top: 50%;
        translate: -50% -50%;
        z-index: -1;

        --dot-size:  calc(100% - 6px);   /* shadow-size * 3 */
        --dot-gap:   2px;
        --dot-space: calc(var(--dot-gap) * 2);

        width:  var(--dot-size);
        height: var(--dot-size);

        background: radial-gradient(
            circle at var(--dot-gap) var(--dot-gap),
            white calc(var(--dot-gap) / 4),
            transparent 0
        ) padding-box;
        background-size:   var(--dot-space) var(--dot-space);
        background-repeat: space;

        /* Rotating mask reveals dots near the bright spot */
                mask-image: conic-gradient(
            from calc(var(--gradient-angle) + 45deg),
            black,
            transparent 10% 90%,
            black
        );
        -webkit-mask-image: conic-gradient(
            from calc(var(--gradient-angle) + 45deg),
            black,
            transparent 10% 90%,
            black
        );

        border-radius: inherit;
        opacity: 0.4;

        animation:
            gradient-angle linear 3s infinite,
            gradient-angle linear calc(3s / 0.4) reverse paused;
        animation-composition: add;
    }

    /* ── Inner shimmer (::after) ── */
    .nav-cta a::after {
        content: "";
        pointer-events: none;
        position: absolute;
        left: 50%;
        top: 50%;
        translate: -50% -50%;
        z-index: -1;

        width: 100%;
        aspect-ratio: 1;

        background: linear-gradient(
            -50deg,
            transparent,
            #69A82F,
            transparent
        );

                mask-image: radial-gradient(circle at bottom, transparent 40%, black);
        -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
        opacity: 0.6;

        animation:
            nav-cta-shimmer linear 3s infinite,
            nav-cta-shimmer linear calc(3s / 0.4) reverse paused;
        animation-composition: add;
    }

    /* Span needs stacking context so it sits above pseudo-elements */
    .nav-cta a span {
        position: relative;
        z-index: 1;
    }

    /* ── Hover / focus-visible ── */
    .nav-cta a:is(:hover, :focus-visible) {
        --gradient-percent:       20%;
        --gradient-angle-offset:  95deg;
        --gradient-shine:         #a8ff6e;
        color: #ffffff !important;
        /* Inner glow: inset shadow in pill shape, no square */
        box-shadow:
            inset 0 0 0 1px var(--cta-bg-subtle),
            inset 0 -8px 24px rgba(105, 168, 47, 0.35),
            0 0 18px rgba(105, 168, 47, 0.18);
    }

    /* Resume the paused reverse animation */
    .nav-cta a:is(:hover, :focus-visible),
    .nav-cta a:is(:hover, :focus-visible)::before,
    .nav-cta a:is(:hover, :focus-visible)::after {
        animation-play-state: running;
    }
}

/* ── Mobile/tablet (<992px): simplified pill button (no animation) ── */
@media (max-width: 991.98px) {
    .nav-cta a,
    .nav-cta a:focus {
        color: #69A82F !important;
        background: rgba(105, 168, 47, 0.08) !important;
        border: 1px solid rgba(105, 168, 47, 0.45) !important;
        border-radius: 360px;
        margin: 8px 16px;
        padding: 10px 24px !important;
        font-weight: 600;
        text-shadow: none !important;
        border-bottom: 1px solid rgba(105, 168, 47, 0.45) !important; /* override drawer border */
    }

    .nav-cta a:hover,
    .nav-cta a:focus-visible {
        background: rgba(105, 168, 47, 0.18) !important;
        border-color: #69A82F !important;
        color: #69A82F !important;
    }
}

/* ── Keyframe animations ── */
@keyframes gradient-angle {
    to { --gradient-angle: 360deg; }
}

@keyframes nav-cta-shimmer {
    to { rotate: 360deg; }
}


/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    padding-bottom: 50px;
    position: relative
}

.footer .footer-newsletter {
    background-color: color-mix(in srgb, var(--accent-color), transparent 96%);
    padding: 50px 0
}

.footer .footer-newsletter h4 {
    font-size: 24px
}

.footer .footer-newsletter .newsletter-form {
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 6px 8px;
    position: relative;
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: 0.3s;
    border-radius: 4px
}

.footer .footer-newsletter .newsletter-form:focus-within {
    border-color: var(--accent-color)
}

.footer .footer-newsletter .newsletter-form input[type=email] {
    border: 0;
    padding: 4px;
    width: 100%;
    background-color: var(--surface-color);
    color: var(--default-color)
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
    outline: none
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
    border: 0;
    font-size: 16px;
    padding: 0 20px;
    margin: -7px -8px -7px 0;
    background: var(--accent-color);
    color: #fff;
    transition: 0.3s;
    border-radius: 0 4px 4px 0
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
    background: color-mix(in srgb, var(--accent-green), transparent 20%)
}

.footer .footer-top {
    padding-top: 50px
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin-right: 10px;
    transition: 0.3s
}

.footer .social-links a:hover {
    color: var(--accent-green);
    border-color: var(--accent-green)
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px
}

.footer .footer-links {
    margin-bottom: 30px
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer .footer-links ul i {
    margin-right: 3px;
    font-size: 12px;
    line-height: 0;
    color: var(--accent-color)
}

.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center
}

.footer .footer-links ul li:first-child {
    padding-top: 0
}

.footer .footer-links ul a {
    display: inline-block;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    line-height: 1
}

.footer .footer-links ul a:hover {
    color: var(--accent-green)
}

.footer .footer-about .sitename {
    color: var(--heading-color);
    font-size: 24px;
    font-weight: 600;
    font-family: var(--heading-font)
}

.footer .footer-contact p {
    margin-bottom: 5px
}

.footer .copyright {
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%)
}

.footer .copyright p {
    margin-bottom: 0
}



.footer .credits {
    margin-top: 6px;
    font-size: 13px
}


/*--------------------------------------------------------------
# Contact Modal (global — triggered from nav Contact button)
# Styles copied here from services-shared.css so the modal works
# on every page (index.html, portfolio.html, etc.), not just service pages.
--------------------------------------------------------------*/

.contact-modal__content {
    background: #0a1628;
    border: 1px solid rgba(105, 168, 47, 0.15);
    border-radius: 12px;
    color: #fff;
}

.contact-modal__header {
    background: linear-gradient(135deg, #0d1f3c 0%, #091525 100%);
    border-bottom: 1px solid rgba(105, 168, 47, 0.2);
    padding: 24px 28px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-modal__title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(105, 168, 47, 0.12);
    border: 1px solid rgba(105, 168, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #69A82F;
    flex-shrink: 0;
}

.contact-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.contact-modal__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.contact-modal__body {
    padding: 32px 28px;
    background: #0a1628;
    border-radius: 0 0 12px 12px;
}

/* Form fields inside the modal */
#contactModal .contact-form .form-field {
    position: relative;
    margin-bottom: 40px;
}

#contactModal .contact-form .form-field.message-field {
    margin-bottom: 32px;
}

#contactModal .contact-form .form-field .field-label {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#contactModal .contact-form .form-field .form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    padding: 20px 0 12px;
    font-size: 15px;
    color: #fff;
    transition: border-color 0.3s ease;
}

#contactModal .contact-form .form-field .form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#contactModal .contact-form .form-field .form-input:focus {
    outline: none;
    border-bottom-color: #69A82F;
}

#contactModal .contact-form .form-field .message-input {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    padding-top: 24px;
}

#contactModal .contact-form .send-button {
    background: transparent;
    border: 1px solid #69A82F;
    color: #69A82F;
    padding: 15px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#contactModal .contact-form .send-button:hover {
    background: #69A82F;
    color: #000c0f;
}

#contactModal .contact-form .send-button .button-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

#contactModal .contact-form .send-button:hover .button-arrow {
    transform: translateX(5px);
}


/*--------------------------------------------------------------
# D4 — Contact modal mobile override (<576px)
#      .modal-lg leaves no breathing room on 320–375px phones.
#      Also prevents iOS Safari auto-zoom on input focus (font ≥16px).
--------------------------------------------------------------*/
@media (max-width: 575.98px) {
    #contactModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    #contactModal .contact-modal__content {
        border-radius: 12px;
    }

    #contactModal .contact-modal__header,
    #contactModal .contact-modal__body {
        padding: 1rem;
    }

    #contactModal .contact-form .form-field .form-input {
        font-size: 16px;
    }

    #contactModal .contact-modal__title {
        font-size: 1.25rem;
    }

    #contactModal .contact-modal__icon {
        width: 38px;
        height: 38px;
    }
}


/*--------------------------------------------------------------
# D5 + D6 — Footer mobile polish (<576px)
#   D5 — social links left-aligned with smaller gap when stacked
#   D6 — newsletter form stacks vertically and pills both rounded
--------------------------------------------------------------*/
@media (max-width: 575.98px) {

    /* D6 — Newsletter: input + button stack so the button stays usable */
    .footer .footer-newsletter .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
        padding: 8px;
    }
    .footer .footer-newsletter .newsletter-form input[type=email] {
        width: 100%;
        padding: 8px;
        border-radius: 4px;
    }
    .footer .footer-newsletter .newsletter-form input[type=submit] {
        width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 4px;
    }

    /* D5 — Footer social row reads naturally on phones */
    .footer .social-links.d-flex {
        gap: 8px;
        flex-wrap: wrap;
    }
    .footer .social-links a {
        margin-right: 0;
    }
    .footer .footer-about p {
        font-size: 0.95rem;
    }
}