/* ==========================================================
   FastDelivery Child — Design System (Kinetic Editorial)
   Extracted from home.html — single source of truth.
   All component classes are reused across every page template.
   ========================================================== */

/* ──────────────────────────────────────────────────────────
   FONTS
   ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ──────────────────────────────────────────────────────────
   TOKENS — CSS Custom Properties
   ────────────────────────────────────────────────────────── */
:root {
    --fd-primary:       #e8192c;
    --fd-primary-dark:  #be001d;
    --fd-navy:          #0F172A;
    --fd-on-surface:    #131b2e;
    --fd-surface:       #faf8ff;
    --fd-surface-low:   #f2f3ff;
    --fd-surface-high:  #dae2fd;
    --fd-whatsapp:      #25D366;

    --fd-slate-50:  #f8fafc;
    --fd-slate-100: #f1f5f9;
    --fd-slate-200: #e2e8f0;
    --fd-slate-300: #cbd5e1;
    --fd-slate-400: #94a3b8;
    --fd-slate-500: #64748b;
    --fd-slate-600: #475569;
    --fd-slate-900: #0f172a;

    --fd-radius-card:  1.5rem;   /* rounded-3xl */
    --fd-radius-inner: 0.75rem;  /* rounded-xl (Tailwind default, not the overridden xl=3rem) */
    --fd-radius-pill:  9999px;
    --fd-transition:   all 150ms cubic-bezier(0.4, 0, 0.2, 1);

    --fd-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --fd-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --fd-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --fd-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ──────────────────────────────────────────────────────────
   BASE
   ────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--fd-surface);
    color: var(--fd-on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ──────────────────────────────────────────────────────────
   LAYOUT — Section containers
   ────────────────────────────────────────────────────────── */

/* Standard light section: py-24 px-8 max-w-screen-2xl mx-auto */
.fd-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
}

/* Full-width dark section wrapper (bg applied inline, inner uses fd-section-inner) */
.fd-section-dark {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--fd-navy);
    color: white;
}

/* Inner container for full-width sections */
.fd-section-inner {
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ──────────────────────────────────────────────────────────
   TYPOGRAPHY — Section headings & labels
   ────────────────────────────────────────────────────────── */

/* text-4xl font-black tracking-tighter */
.fd-section-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    color: var(--fd-navy);
    margin-bottom: 1rem;
}

/* On dark backgrounds */
.fd-section-title--white {
    color: white;
}

/* h-1.5 w-24 bg-primary rounded-full */
.fd-section-divider {
    height: 0.375rem;
    width: 6rem;
    background-color: var(--fd-primary);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

/* text-slate-500 font-medium */
.fd-section-subtitle {
    color: var(--fd-slate-500);
    font-weight: 500;
}

/* text-xs font-black uppercase tracking-widest text-slate-400 */
.fd-label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fd-slate-400);
}

/* Stat number: text-6xl font-black tracking-tighter */
.fd-stat-number {
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Stat label: font-black uppercase tracking-widest text-xs opacity-80 */
.fd-stat-label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ──────────────────────────────────────────────────────────
   MOBILE MENU
   JS toggles 'hidden' — CSS handles the flex layout when visible.
   ────────────────────────────────────────────────────────── */
#fd-mobile-menu:not(.hidden) {
    display: flex;
    flex-direction: column;
}

/* ──────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────── */

/* sticky top-0 w-full z-50 bg-white/90 backdrop-blur-xl shadow-sm */
.fd-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--fd-shadow-sm);
}

/* text-sm font-semibold text-slate-600 hover:text-navy transition-colors */
.fd-nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fd-slate-600);
    text-decoration: none;
    transition: color 150ms;
}
.fd-nav-link:hover { color: var(--fd-navy); }

/* Active nav item */
.fd-nav-link--active {
    color: var(--fd-primary);
    border-bottom: 2px solid var(--fd-primary);
    padding-bottom: 0.25rem;
}

/* ──────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────── */

/* Base shared */
.fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fd-transition);
    text-decoration: none;
    border: none;
    outline: none;
}
.fd-btn:focus-visible { outline: 2px solid var(--fd-primary); outline-offset: 2px; }

/* Primary — px-6 py-2.5 (nav size) */
.fd-btn-primary {
    padding: 0.625rem 1.5rem;
    background-color: var(--fd-primary);
    color: white;
    box-shadow: var(--fd-shadow-lg);
    font-weight: 700;
}
.fd-btn-primary:hover  { transform: scale(1.05); }
.fd-btn-primary:active { transform: scale(0.95); }

/* Primary large — px-10 py-5 (hero/section CTA) */
.fd-btn-primary-lg {
    padding: 1.25rem 2.5rem;
    background-color: var(--fd-primary);
    color: white;
    box-shadow: var(--fd-shadow-2xl);
    font-weight: 900;
    font-size: 1.125rem;
}
.fd-btn-primary-lg:hover {
    background-color: var(--fd-primary-dark);
    transform: translateY(-0.25rem);
}

/* Primary standard — px-8 py-4 (cards/sections) */
.fd-btn-primary-md {
    padding: 1rem 2rem;
    background-color: var(--fd-primary);
    color: white;
    font-weight: 900;
}
.fd-btn-primary-md:hover  { transform: scale(1.05); }
.fd-btn-primary-md:active { transform: scale(0.95); }

/* Outline navy — border-2 border-navy */
.fd-btn-outline-navy {
    padding: 1rem 2rem;
    border: 2px solid var(--fd-navy);
    color: var(--fd-navy);
    background: transparent;
    font-weight: 700;
}
.fd-btn-outline-navy:hover {
    background-color: var(--fd-navy);
    color: white;
}

/* Outline primary — nav WhatsApp */
.fd-btn-outline-primary {
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--fd-primary);
    color: var(--fd-primary);
    background: transparent;
    font-weight: 700;
}
.fd-btn-outline-primary:hover { background-color: rgba(232, 25, 44, 0.05); }

/* Ghost — on dark hero backgrounds */
.fd-btn-ghost {
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-weight: 700;
    font-size: 1.125rem;
}
.fd-btn-ghost:hover { background: rgba(255, 255, 255, 0.20); }

/* WhatsApp outline */
.fd-btn-whatsapp {
    padding: 1.25rem 2.5rem;
    border: 2px solid var(--fd-whatsapp);
    color: var(--fd-whatsapp);
    background: transparent;
    font-weight: 900;
    font-size: 1.125rem;
}
.fd-btn-whatsapp:hover { background-color: #f0fdf4; }

/* Full-width variant (forms) */
.fd-btn--full { width: 100%; }

/* ──────────────────────────────────────────────────────────
   LEGAL DISCLAIMER (dev rule #10)
   Below every form, quote button, and contact button.
   ────────────────────────────────────────────────────────── */
.fd-legal-disclaimer {
    font-size: 0.75rem;
    color: var(--fd-slate-400);
    margin-top: 0.75rem;
    text-align: center;
    line-height: 1.5;
}
.fd-legal-disclaimer a {
    text-decoration: underline;
    transition: color 150ms;
}
.fd-legal-disclaimer a:hover { color: var(--fd-primary); }

/* ──────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────── */

/* relative min-h-[85vh] flex items-center overflow-hidden */
.fd-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradient overlay on hero images */
.fd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.7) 100%);
}

/* text-5xl md:text-7xl font-black text-white leading-[1.05] tracking-tighter */
.fd-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .fd-hero-title { font-size: 4.5rem; }
}

/* Badge pill on hero */
.fd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(232, 25, 44, 0.20);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ──────────────────────────────────────────────────────────
   TRUST BAR
   ────────────────────────────────────────────────────────── */
.fd-trust-bar {
    background-color: var(--fd-navy);
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: white;
    overflow: hidden;
}
.fd-trust-bar__inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    opacity: 0.9;
}
.fd-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* ──────────────────────────────────────────────────────────
   CARDS
   ────────────────────────────────────────────────────────── */

/* Standard white card — testimonials, generic */
.fd-card {
    padding: 2rem;
    border-radius: var(--fd-radius-card);
    background: white;
    box-shadow: var(--fd-shadow-xl);
    transition: var(--fd-transition);
    border: 1px solid var(--fd-slate-50);
}
.fd-card:hover { box-shadow: var(--fd-shadow-2xl); }

/* Service card compact (flex horizontal) */
.fd-card-service {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--fd-surface-low);
    border-radius: 1rem;
    border: 1px solid var(--fd-slate-100);
    transition: var(--fd-transition);
}
.fd-card-service:hover { box-shadow: var(--fd-shadow-lg); }

/* Card on dark (navy bg sections) */
.fd-card-dark {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: var(--fd-transition);
}
.fd-card-dark:hover { background: rgba(255, 255, 255, 0.10); }

/* Form card wrapper */
.fd-card-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--fd-radius-card);
    box-shadow: var(--fd-shadow-2xl);
    border: 1px solid var(--fd-slate-50);
}

/* Service protagonist card (large navy) */
.fd-card-protagonist {
    position: relative;
    overflow: hidden;
    border-radius: var(--fd-radius-card);
    background-color: var(--fd-navy);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    box-shadow: var(--fd-shadow-2xl);
}

/* ──────────────────────────────────────────────────────────
   BADGES
   ────────────────────────────────────────────────────────── */
.fd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fd-badge--primary-outline {
    background: rgba(232, 25, 44, 0.20);
    color: var(--fd-primary);
    border: 1px solid rgba(232, 25, 44, 0.30);
}

.fd-badge--elite {
    background: rgba(232, 25, 44, 0.20);
    color: var(--fd-primary);
    border: 1px solid rgba(232, 25, 44, 0.30);
}

/* ──────────────────────────────────────────────────────────
   FORMS
   ────────────────────────────────────────────────────────── */

/* text-xs font-black uppercase tracking-widest text-slate-400 mb-2 */
.fd-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fd-slate-400);
    margin-bottom: 0.5rem;
}

/* w-full bg-slate-50 border-none rounded-xl p-4 focus:ring-2 focus:ring-primary/20 */
.fd-form-input,
.fd-form-select,
.fd-form-textarea {
    width: 100%;
    background-color: var(--fd-slate-50);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--fd-on-surface);
    outline: none;
    transition: box-shadow 150ms;
}
.fd-form-select {
    min-height: 3.25rem;
    line-height: 1.25rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}
.fd-form-input:focus,
.fd-form-select:focus,
.fd-form-textarea:focus {
    box-shadow: 0 0 0 2px rgba(232, 25, 44, 0.20);
}
.fd-form-textarea { resize: vertical; min-height: 7rem; }

/* ──────────────────────────────────────────────────────────
   PROCESS STEPS
   ────────────────────────────────────────────────────────── */

/* w-16 h-16 rounded-full bg-primary text-white flex ... */
.fd-step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: var(--fd-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: var(--fd-shadow-lg);
}

/* ──────────────────────────────────────────────────────────
   FAQ / ACCORDION
   ────────────────────────────────────────────────────────── */
.fd-faq-item {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--fd-shadow-sm);
    border: 1px solid var(--fd-slate-100);
    overflow: hidden;
}

.fd-faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 900;
    color: var(--fd-navy);
    list-style: none;
    transition: background-color 150ms;
}
.fd-faq-summary:hover { background-color: var(--fd-slate-50); }

.fd-faq-summary .material-symbols-outlined {
    transition: transform 300ms;
    color: var(--fd-primary);
}
details[open] .fd-faq-summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.fd-faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--fd-slate-600);
    font-weight: 500;
    line-height: 1.625;
}

/* ──────────────────────────────────────────────────────────
   STATS BAR (experience section)
   ────────────────────────────────────────────────────────── */
.fd-stats-bar {
    background-color: var(--fd-primary);
    padding-top: 5rem;
    padding-bottom: 5rem;
    color: white;
}
.fd-stats-bar__inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: center;
}
@media (min-width: 768px) {
    .fd-stats-bar__inner { grid-template-columns: repeat(4, 1fr); }
}

/* ──────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────── */
.fd-footer {
    width: 100%;
    border-radius: 3rem 3rem 0 0;
    margin-top: 4rem;
    background-color: var(--fd-navy);
    color: #cbd5e1;
}
.fd-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 3rem;
    max-width: 1536px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .fd-footer__grid { grid-template-columns: repeat(4, 1fr); }
}
.fd-footer__heading {
    color: white;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}
.fd-footer__link {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 150ms;
}
.fd-footer__link:hover { color: var(--fd-primary); }
.fd-footer__copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 2rem 3rem;
    max-width: 1536px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ──────────────────────────────────────────────────────────
   WHATSAPP FAB
   ────────────────────────────────────────────────────────── */
.fd-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}
.fd-fab__btn {
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background-color: var(--fd-whatsapp);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--fd-shadow-2xl);
    transition: var(--fd-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.fd-fab__btn:hover  { transform: scale(1.1); }
.fd-fab__btn:active { transform: scale(0.95); }
.fd-fab__tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: var(--fd-slate-900);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 150ms;
}
.fd-fab:hover .fd-fab__tooltip { opacity: 1; }

/* ──────────────────────────────────────────────────────────
   KINETIC / ANIMATION UTILITIES
   ────────────────────────────────────────────────────────── */

/* Diagonal cut: top-right + bottom-left rounded, other corners square */
.kinetic-card-cut {
    border-top-right-radius: 3rem;
    border-bottom-left-radius: 3rem;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* 135° gradient from primary-dark → primary */
.kinetic-gradient {
    background: linear-gradient(135deg, #be001d 0%, #e8192c 100%);
}

/* Marquee scroll */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 20s linear infinite; }

/* Gentle bounce */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }

/* Kinetic sweep on an element with position:relative */
@keyframes kinetic-sweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.kinetic-pulse {
    position: relative;
    overflow: hidden;
}
.kinetic-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(232, 25, 44, 0.15), transparent);
    animation: kinetic-sweep 2.5s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────
   ASTRA OVERRIDES
   Remove Astra's default padding/layout on pages where the
   child theme controls the full layout.
   ────────────────────────────────────────────────────────── */
.ast-plain-container .site-content,
.ast-full-width-layout .site-content,
.ast-full-width-layout #primary {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Hide Astra header/footer on full-template pages */
.fastdelivery-page .site-header,
.fastdelivery-page .site-footer,
.fastdelivery-page #masthead,
.fastdelivery-page .ast-above-header,
.fastdelivery-page .ast-below-header {
    display: none !important;
}

/* Remove Astra entry padding on pages */
.fastdelivery-page .entry-content,
.fastdelivery-page .ast-article-post {
    padding: 0 !important;
    margin: 0 !important;
}
