/* =========================================================
   FBA Xperts CLONE — style.css
   Reset / Variables / Typography / Layout / Header / Buttons / Footer / Utilities
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ---------- Variables ---------- */
:root {
    --primary: #8400F7;
    --primary-light: #8400F7;
    --primary-dark: #8400F7;

    --black: #050505;
    --black-soft: #050505;
    --dark-brown: #050505;
    --brown: #050505;
    --brown-light: #8400F7;

    --card-dark: #1c1c1c;
    --card-light: #2b2b2b;
    --input-bg: #333333;

    --white: #ffffff;
    --text-light: #dedede;
    --text-muted: #a3a3a3;

    --border-light: rgba(255, 255, 255, 0.25);
    --border-dark: rgba(255, 255, 255, 0.1);

    --container: 1320px;
    --container-small: 1180px;

    --section-padding: clamp(56px, 7vw, 110px);
    --section-padding-mobile: clamp(44px, 10vw, 64px);

    --radius-small: 6px;
    --radius-card: 10px;
    --radius-button: 50px;

    --font-heading: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --header-h: 76px;
    --header-h-mobile: 64px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 88% 8%, rgba(132, 0, 247, 0.55), transparent 40%),
    linear-gradient(180deg, #050505 0%, #050505 6%, #050505 94%, #050505 100%);
    background-color: var(--black);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
}

h2 {
    font-size: clamp(1.85rem, 3vw, 2.85rem);
}

h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
}

p {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.7;
}

.home-hero__heading {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.text-primary,
.highlight {
    color: var(--primary);
}

/* ---------- Layout ---------- */
.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
    padding: 0;
}

.container-small {
    width: min(100% - 40px, var(--container-small));
    margin-inline: auto;
    padding: 0;
}

main {
    display: block;
}

section {
    position: relative;
}

.section-pad {
    padding: var(--section-padding) 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
}

.section-head__text {
    max-width: 480px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: var(--border-dark);
    margin: 40px 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 13px 26px;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(132, 0, 247, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(132, 0, 247, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--border-light);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translate(3px, -3px);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.82rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.link-arrow svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
    transform: translate(3px, -3px);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 14px 0;
    transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header.is-scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-dark);
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-caret {
    width: 10px;
    height: 10px;
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.has-dropdown {
    position: relative;
}

.has-dropdown[aria-expanded='true'] .nav-caret,
.has-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 40%;
    transform: translateX(-50%) translateY(8px);
    min-width: 300px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-card);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.nav-item-services:hover .dropdown-menu,
.nav-item-services.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    font-size: 0.88rem;
    color: var(--text-light);
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(132, 0, 247, 0.12);
    color: var(--primary);
    padding-left: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--white);
}

.header-phone svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.header-quote-btn {
    padding: 10px 22px;
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.hamburger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.hamburger span::before {
    top: -6px;
}

.hamburger span::after {
    top: 6px;
}

.hamburger.is-active span {
    background: transparent;
}

.hamburger.is-active span::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.is-active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Mobile Nav Drawer ---------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 1001;
}

.mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(340px, 86vw);
    background: var(--black-soft);
    border-left: 1px solid var(--border-dark);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    padding: 26px 22px 40px;
}

.mobile-drawer.is-active {
    transform: translateX(0);
}

.mobile-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-drawer__top img {
    height: 28px;
}

.mobile-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-close svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

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

.mobile-nav > li > a,
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    width: 100%;
    text-align: left;
}

.mobile-nav a.active {
    color: var(--primary);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.mobile-dropdown.open {
    max-height: 400px;
}

.mobile-dropdown li a {
    padding: 12px 4px 12px 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: block;
}

.mobile-nav-toggle .nav-caret {
    width: 12px;
    height: 12px;
}

.mobile-nav-toggle[aria-expanded='true'] .nav-caret {
    transform: rotate(180deg);
}

.mobile-drawer-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-drawer-footer .header-phone {
    justify-content: center;
}

body.no-scroll {
    overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--black-soft) 0%, var(--dark-brown) 45%, var(--black) 100%);
    border-top: 1px solid var(--border-dark);
    overflow: hidden;
    padding-top: var(--section-padding);
}

.footer-bg-text {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: min(720px, 60vw);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: lighten;
}

.footer-newsletter {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-newsletter__brand {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-newsletter__brand img {
    height: 50px;
}

.footer-newsletter__brand h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    text-transform: none;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--input-bg);
    border-radius: var(--radius-button);
    padding: 6px;
    min-width: 380px;
    max-width: 460px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 18px;
    color: var(--white);
    font-size: 0.9rem;
    background: transparent;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 12px 26px;
    border-radius: var(--radius-button);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: transform 0.3s var(--ease);
}

.newsletter-form button:hover {
    transform: scale(1.04);
}

.form-msg {
    width: 100%;
    font-size: 0.82rem;
    margin-top: 8px;
    min-height: 18px;
}

.form-msg.error {
    color: #8400F7;
}

.form-msg.success {
    color: #6fdc8c;
}

.footer-columns {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 40px;
    padding: 50px 0 40px;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-light);
    transition: color 0.25s, padding-left 0.25s;
}

.footer-col ul li a:hover,
.footer-col ul li a.active {
    color: var(--primary);
    padding-left: 4px;
}

.footer-payment-logo {
    max-width: 220px;
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.footer-social span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 4px;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.social-icon svg {
    width: 15px;
    height: 15px;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col--find li {
    font-size: 0.88rem;
    color: var(--text-light);
}

.footer-support-title {
    font-weight: 700;
    color: var(--white);
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-dark);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Fixed Buttons ---------- */
.whatsapp-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #06210f;
    padding: 13px 18px;
    border-radius: var(--radius-button);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s var(--ease);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.3s;
    box-shadow: 0 10px 25px rgba(132, 0, 247, 0.35);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ---------- Reveal animation base states ---------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-fade {
    opacity: 0;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
}

.js-ready .reveal-up,
.js-ready .reveal-fade,
.js-ready .reveal-scale {
    will-change: transform, opacity;
}

.no-js .reveal-up,
.no-js .reveal-fade,
.no-js .reveal-scale {
    opacity: 1;
    transform: none;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


/* =========================================================
   HOME PAGE FINAL MATCH OVERRIDES
   Loaded before pages.css, with footer/header rules here.
   ========================================================= */

body.home-page {
    background: #050505;
}

/* Header proportions from the supplied home-page reference */
.home-page .site-header {
    padding: 13px 0;
}

.home-page .site-header .container {
    width: min(calc(100% - 64px), 1440px);
}

.home-page .header-logo img {
    height: 60px;
}

.home-page .main-nav > ul {
    gap: 3px;
}

.home-page .main-nav a {
    padding: 8px 10px;
    font-size: 0.78rem;
}

.home-page .header-actions {
    gap: 14px;
}

.home-page .header-phone {
    font-size: 0.78rem;
}

.home-page .header-quote-btn {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.76rem;
}

