/* =========================================================
   Otomatix — components.css
   Header · Footer · Mobile drawer · Back to top
   ========================================================= */

/* =========================================================
   ADMIN BAR COMPENSATION
   Quand la barre WP Admin est présente, on décale tout.
   ========================================================= */
.admin-bar .site-header { top: 32px; }
.admin-bar .header-spacer { margin-top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar .header-spacer { margin-top: 46px; }
}
@media screen and (max-width: 600px) {
    .admin-bar .site-header { top: 0; position: relative; }
    .admin-bar .header-spacer { margin-top: 0; }
}

/* =========================================================
   HEADER — Base
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Styles par défaut = transparent */
.site-header.style-transparent {
    background: transparent;
}
.site-header.style-transparent.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Style blanc (toujours visible) */
.site-header.style-white {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Style sombre */
.site-header.style-dark {
    background: #0a0a0a;
}
.site-header.style-dark .nav-list > li > a,
.site-header.style-dark .logo-rest { color: rgba(255,255,255,0.85); }
.site-header.style-dark .logo-accent { color: #818cf8; }
.site-header.style-dark .header-icon-btn,
.site-header.style-dark .header-social-link { color: rgba(255,255,255,0.7); }
.site-header.style-dark .header-icon-btn:hover,
.site-header.style-dark .header-social-link:hover { color: #fff; }
.site-header.style-dark .cta-secondary {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.site-header.style-dark .cta-secondary:hover {
    background: rgba(255,255,255,0.08);
}

/* Bordure bas optionnelle */
.site-header.has-border {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header.style-dark.has-border {
    border-bottom-color: rgba(255,255,255,0.08);
}

/* Header spacer */
.header-spacer { height: 72px; }

/* ── Layout interne ──────────────────────────────────── */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 72px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── Logo ────────────────────────────────────────────── */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.site-logo img { height: 36px; width: auto; display: block; }

.logo-text {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-accent { color: var(--color-indigo-600); }
.logo-rest   { color: var(--color-gray-900); }

/* ── Navigation desktop ──────────────────────────────── */
.header-nav { display: flex; align-items: center; flex: 1; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    border-radius: 0.5rem;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a {
    color: var(--color-indigo-600);
    background: var(--color-indigo-50);
}

/* Dropdown */
.nav-list li.menu-item-has-children { position: relative; }
.nav-list li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s;
}
.nav-list li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

.nav-list .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-gray-100);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.18s ease;
    list-style: none;
    z-index: 100;
}
.nav-list li.menu-item-has-children:hover .sub-menu,
.nav-list li.menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-list .sub-menu li a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray-700);
    border-radius: 0.6rem;
    transition: background 0.12s, color 0.12s;
}
.nav-list .sub-menu li a:hover {
    background: var(--color-indigo-50);
    color: var(--color-indigo-600);
}

/* ── Actions droite ──────────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Icône générique (search…) */
.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 0.6rem;
    background: none;
    border: none;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.header-icon-btn:hover { background: var(--color-gray-100); color: var(--color-gray-900); }

/* Icônes sociales header */
.header-socials {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 0.5rem;
    color: var(--color-gray-500);
    transition: color 0.15s, background 0.15s;
}
.header-social-link:hover { color: var(--color-gray-900); background: var(--color-gray-100); }
.header-social-link svg { width: 15px; height: 15px; }

/* CTA boutons header */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid transparent;
}
.cta-primary {
    background: var(--color-black);
    color: #fff;
    border-color: var(--color-black);
}
.cta-primary:hover { background: #1a1a2e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.cta-secondary {
    background: transparent;
    color: var(--color-gray-700);
    border-color: var(--color-gray-200);
}
.cta-secondary:hover { background: var(--color-gray-50); border-color: var(--color-gray-300); }

.cta-indigo {
    background: var(--color-indigo-600);
    color: #fff;
    border-color: var(--color-indigo-600);
}
.cta-indigo:hover { background: var(--color-indigo-700); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.3); }

/* Burger — caché en desktop */
.burger-btn { display: none; }

/* ── Search bar slide-down ────────────────────────────── */
.header-search-bar {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--color-gray-100);
    padding: 1rem 0;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s ease;
    z-index: 50;
}
.header-search-bar.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header.style-dark .header-search-bar {
    background: #1a1a2e;
    border-top-color: rgba(255,255,255,0.08);
}
.header-search-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-search-inner .search-form { flex: 1; max-width: 600px; }
.search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 0.6rem;
    background: none;
    border: none;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.search-close:hover { background: var(--color-gray-100); color: var(--color-gray-900); }


/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}
.mobile-drawer[aria-hidden="false"] { pointer-events: all; }

.mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer[aria-hidden="false"] .mobile-backdrop { opacity: 1; }

.mobile-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(360px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.mobile-drawer[aria-hidden="false"] .mobile-panel { transform: translateX(0); }

.mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
    flex-shrink: 0;
}

.mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 0.6rem;
    background: var(--color-gray-100);
    border: none;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: background 0.15s;
}
.mobile-close-btn:hover { background: var(--color-gray-200); }

.mobile-nav { padding: 0.75rem 1rem; flex: 1; }

/* ── Liste principale ────────────────────────────────── */
.mobile-nav-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Chaque item de niveau 1 */
.mobile-nav-list > li {
    border-bottom: 1px solid var(--color-gray-100);
}
.mobile-nav-list > li:last-child { border-bottom: none; }

/* Wrapper pour aligner lien + bouton toggle sur la même ligne */
.mobile-nav-list > li > .mobile-item-row {
    display: flex;
    align-items: stretch;
}

/* Lien principal niveau 1 */
.mobile-nav-list > li > .mobile-item-row > a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.9rem 0.75rem;
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--color-gray-800);
    text-decoration: none;
    transition: color 0.12s;
    min-width: 0;
}
.mobile-nav-list > li > .mobile-item-row > a:hover,
.mobile-nav-list > li.current-menu-item > .mobile-item-row > a {
    color: var(--color-indigo-600);
}

/* Bouton toggle chevron — MÊME hauteur que le lien */
.mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    background: none;
    border: none;
    border-left: 1px solid var(--color-gray-100);
    color: var(--color-gray-400);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    border-radius: 0;
}
.mobile-toggle-btn:hover {
    background: var(--color-gray-50);
    color: var(--color-indigo-600);
}
.mobile-toggle-btn svg {
    width: 16px; height: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
/* Rotation quand ouvert */
.mobile-nav-list > li.is-open > .mobile-item-row > .mobile-toggle-btn svg {
    transform: rotate(180deg);
}
.mobile-nav-list > li.is-open > .mobile-item-row > a,
.mobile-nav-list > li.is-open > .mobile-item-row > .mobile-toggle-btn {
    color: var(--color-indigo-600);
}

/* ── Sous-menu accordion ─────────────────────────────── */
.mobile-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-100);
    /* Fermé par défaut */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
/* Ouvert */
.mobile-nav-list > li.is-open > .sub-menu {
    max-height: 600px;
}

.mobile-nav-list .sub-menu li {
    border-bottom: 1px solid var(--color-gray-100);
}
.mobile-nav-list .sub-menu li:last-child { border-bottom: none; }

.mobile-nav-list .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: color 0.12s, background 0.12s;
}
.mobile-nav-list .sub-menu li a::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-gray-300);
    flex-shrink: 0;
    transition: background 0.12s;
}
.mobile-nav-list .sub-menu li a:hover {
    color: var(--color-indigo-600);
    background: var(--color-indigo-50);
}
.mobile-nav-list .sub-menu li a:hover::before {
    background: var(--color-indigo-400);
}

.mobile-cta-wrap {
    padding: 0 1rem;
    margin-bottom: 1rem;
}
.mobile-cta-wrap .btn-primary {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
}

.mobile-socials-wrap {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem;
    border-top: 1px solid var(--color-gray-100);
    margin-top: auto;
}
.mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 0.6rem;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    transition: background 0.15s, color 0.15s;
}
.mobile-social-icon:hover { background: var(--color-indigo-100); color: var(--color-indigo-600); }
.mobile-social-icon svg { width: 16px; height: 16px; }

/* ── Burger button ────────────────────────────────────── */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 0.6rem;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, background 0.15s;
}
.burger-btn:hover { background: var(--color-gray-50); border-color: var(--color-gray-300); }
.burger-btn .burger-bar {
    display: block;
    width: 18px; height: 2px;
    background: var(--color-gray-700);
    border-radius: 2px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.site-header.style-dark .burger-btn { border-color: rgba(255,255,255,0.15); }
.site-header.style-dark .burger-btn .burger-bar { background: rgba(255,255,255,0.8); }

/* Burger → X */
body.menu-open .burger-btn .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger-btn .burger-bar:nth-child(2) { transform: scaleX(0); opacity: 0; }
body.menu-open .burger-btn .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; }

/* ── Thèmes ──────────────────────────────────────────── */
.footer-dark {
    background: #0a0a0a;
    color: #9ca3af;
}
.footer-light {
    background: #f9fafb;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
}
.footer-minimal {
    background: #fff;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* Séparateur décoratif haut */
.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, #4f46e5 0%, #818cf8 50%, transparent 100%);
}

.footer-container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 4rem 1.5rem 2.5rem;
}

/* ── Grilles colonnes ────────────────────────────────── */
.footer-grid {
    display: grid;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid;
}
.footer-dark  .footer-grid { border-bottom-color: rgba(255,255,255,0.07); }
.footer-light .footer-grid,
.footer-minimal .footer-grid { border-bottom-color: #e5e7eb; }

.footer-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid-4 { grid-template-columns: 2fr 1fr 1fr 1.5fr; }

/* ── Colonne brand ───────────────────────────────────── */
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-logo img { height: 32px; width: auto; }
.footer-logo-text {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.footer-light .footer-logo-text,
.footer-minimal .footer-logo-text { color: var(--color-gray-900); }

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 0.6rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: background 0.15s, color 0.15s;
}
.footer-light .footer-social-btn,
.footer-minimal .footer-social-btn {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}
.footer-social-btn:hover { background: var(--color-indigo-600); color: #fff; }
.footer-social-btn svg { width: 15px; height: 15px; }

/* ── Colonnes menu ───────────────────────────────────── */
.footer-col-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
}
.footer-dark  .footer-col-title { color: rgba(255,255,255,0.9); }
.footer-light .footer-col-title,
.footer-minimal .footer-col-title { color: var(--color-gray-900); }

.footer-menu-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-menu-list li a {
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
}
.footer-dark .footer-menu-list li a { color: #6b7280; }
.footer-dark .footer-menu-list li a:hover { color: #fff; padding-left: 4px; }
.footer-light .footer-menu-list li a,
.footer-minimal .footer-menu-list li a { color: var(--color-gray-500); }
.footer-light .footer-menu-list li a:hover,
.footer-minimal .footer-menu-list li a:hover { color: var(--color-indigo-600); padding-left: 4px; }

.footer-empty-note { font-size: 0.8rem; opacity: 0.5; }
.footer-empty-note a { color: var(--color-indigo-400); text-decoration: underline; }

/* ── Colonne newsletter ──────────────────────────────── */
.footer-newsletter-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.7;
}
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-input-row {
    display: flex;
    gap: 0;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s;
}
.footer-light .newsletter-input-row,
.footer-minimal .newsletter-input-row {
    background: #fff;
    border-color: var(--color-gray-200);
}
.newsletter-input-row:focus-within { border-color: var(--color-indigo-500); }
.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #fff;
    min-width: 0;
}
.footer-light .newsletter-input,
.footer-minimal .newsletter-input { color: var(--color-gray-900); }
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-light .newsletter-input::placeholder,
.footer-minimal .newsletter-input::placeholder { color: var(--color-gray-400); }
.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    background: var(--color-indigo-600);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.newsletter-submit:hover { background: var(--color-indigo-700); }
.newsletter-note {
    font-size: 0.72rem;
    opacity: 0.4;
    margin: 0;
}

/* ── Colonne social chips ────────────────────────────── */
.footer-social-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-social-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.footer-dark .footer-social-chip { color: #6b7280; }
.footer-dark .footer-social-chip:hover { background: rgba(255,255,255,0.06); color: #fff; }
.footer-light .footer-social-chip,
.footer-minimal .footer-social-chip { color: var(--color-gray-500); }
.footer-light .footer-social-chip:hover,
.footer-minimal .footer-social-chip:hover { background: var(--color-gray-100); color: var(--color-gray-900); }
.footer-social-chip svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Bas du footer ───────────────────────────────────── */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    font-size: 0.8rem;
}
.footer-copyright { margin: 0; opacity: 0.5; }
.footer-copyright a { opacity: 1; transition: opacity 0.15s; }
.footer-copyright a:hover { opacity: 0.8; }
.footer-dark .footer-admin-link { color: var(--color-indigo-400); }
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-legal-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-dark  .footer-legal-list a { color: #6b7280; }
.footer-dark  .footer-legal-list a:hover { color: #fff; }
.footer-light .footer-legal-list a,
.footer-minimal .footer-legal-list a { color: var(--color-gray-400); }
.footer-light .footer-legal-list a:hover,
.footer-minimal .footer-legal-list a:hover { color: var(--color-gray-700); }
.footer-made-with { opacity: 0.4; }


/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: var(--color-indigo-600);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79,70,229,0.4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s, background 0.15s;
    pointer-events: none;
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover { background: var(--color-indigo-700); transform: translateY(-2px); }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .header-socials { display: none; }
    .footer-grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid-4 > .footer-col:first-child,
    .footer-grid-3 > .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .header-nav  { display: none; }
    .header-cta-btn { display: none; }
    .burger-btn  { display: flex; }
    .header-spacer { height: 64px; }
    .header-inner { height: 64px; }
    .admin-bar .site-header { top: 46px; }

    .footer-grid-4,
    .footer-grid-3 { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid-4 > .footer-col:first-child,
    .footer-grid-3 > .footer-col:first-child { grid-column: auto; }

    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-right { justify-content: center; }
    .back-to-top { bottom: 1.25rem; right: 1rem; }
}

@media (max-width: 480px) {
    .header-inner { padding-inline: 1rem; }
    .footer-container { padding: 3rem 1rem 2rem; }
}
