/*
  FERRARI DESIGN OVERRIDE — Homepage only
  Chiaroscuro rhythm: absolute black ↔ crisp white editorial panels
  Ferrari Red (#DA291C) reserved ONLY for primary CTA
  Near-zero border-radius (2px) — precision engineering aesthetics
  No gradients, no glows, no box-shadows
  Typography: Poppins as FerrariSans substitute
*/

/* ── Root overrides ─────────────────────────────────────── */
:root {
  --f-black:       #000000;
  --f-white:       #FFFFFF;
  --f-dark-surface:#1a1a1a;
  --f-red:         #DA291C;
  --f-red-dark:    #B01E0A;
  --f-gray-dark:   #181818;
  --f-gray-mid:    #666666;
  --f-gray-light:  #969696;
  --f-border:      #D2D2D2;
  --f-radius:      2px;
}

body {
  background: var(--f-black);
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
}

/* ── Global section rhythm: alternating black/white ─────── */
.section                 { background: var(--f-black); }
.section--light          { background: var(--f-white); }
.section--white          { background: var(--f-white); }
.section--dark           { background: var(--f-black); }

/* Text on white editorial sections */
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--white h1,
.section--white h2,
.section--white h3,
.section--white h4 {
  color: var(--f-gray-dark);
}
.section--light p,
.section--white p {
  color: var(--f-gray-mid);
}
.section--light .section-header p,
.section--white .section-header p {
  color: var(--f-gray-mid);
}

/* Text on black sections */
.section h1,
.section h2,
.section h3,
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--f-white); }
.section p,
.section--dark p   { color: var(--f-gray-mid); }

/* ── Section labels: editorial annotation style ─────────── */
.section-label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--f-gray-light);
  background: none;
}
.section-label::before,
.section-label::after { display: none; }

.section--light .section-label,
.section--white .section-label { color: var(--f-gray-light); }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header.scrolled {
  background: rgba(0,0,0,0.97);
  box-shadow: none;
  border-bottom-color: rgba(255,255,255,0.12);
}
.site-logo__icon {
  background: var(--f-red);
  border-radius: var(--f-radius);
  box-shadow: none;
}
.site-logo__text span { color: rgba(255,255,255,0.4); }

.main-nav > a,
.main-nav > .nav-item > a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.main-nav > a:hover,
.main-nav > .nav-item > a:hover,
.main-nav > a.current,
.main-nav > .nav-item > a.current {
  background: rgba(255,255,255,0.06);
}

.nav-item .dropdown {
  background: var(--f-gray-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--f-radius);
  box-shadow: rgba(153,153,153,0.25) 1px 1px 4px 0;
}
.dropdown a { border-left: none; border-radius: 0; }
.dropdown a:hover { background: rgba(255,255,255,0.06) !important; border-left: 2px solid var(--f-red); }

.hamburger { background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--f-radius); }

/* ── BUTTONS: razor-precision 2px radius ────────────────── */
.btn {
  border-radius: var(--f-radius);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 1.28px;
  padding: 13px 24px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Primary = Ferrari Red (sparingly, CTA only) */
.btn--primary {
  background: var(--f-red);
  color: var(--f-white);
  border-color: var(--f-red);
}
.btn--primary:hover {
  background: var(--f-red-dark);
  border-color: var(--f-red-dark);
  box-shadow: none;
  transform: none;
}
/* Outline: white border on dark */
.btn--outline {
  background: transparent;
  color: var(--f-white);
  border: 1px solid var(--f-white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--f-white);
  color: var(--f-white);
}
/* Ghost white: white bg, black text (on white sections) */
.btn--outline-dark {
  background: var(--f-white);
  color: var(--f-gray-dark);
  border: 1px solid var(--f-gray-dark);
}
.btn--outline-dark:hover {
  background: #f0f0f0;
  color: var(--f-gray-dark);
}
/* Inverted (CTA banner) */
.btn--inverted {
  background: var(--f-white);
  color: var(--f-gray-dark);
  border: 1px solid var(--f-white);
}
.btn--inverted:hover {
  background: transparent;
  color: var(--f-white);
  box-shadow: none;
}

/* ── HERO: absolute black cinematic ────────────────────── */
.hero {
  background: var(--f-black);
}
.hero__bg img {
  opacity: 0.3;
}
/* Kill the grid texture on Ferrari pages */
.hero__overlay::after { display: none; }
.hero__overlay {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.7) 50%,
    rgba(0,0,0,0.45) 100%
  );
}
/* Kill the radial glow */
.hero__overlay::before { display: none; }

.hero__badge {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--f-radius);
  color: rgba(255,255,255,0.75);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__badge::before { display: none; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: none;
}
.hero h1 .accent { color: var(--f-white); } /* No accent color in Ferrari headline */
.hero__sub {
  color: var(--f-gray-mid);
  font-size: 1rem;
  font-weight: 300;
}
.hero__stats {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero__stat-num .plus { color: var(--f-red); }
.hero__stat-label {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--f-gray-light);
}

/* ── SPOTLIGHT: cinematic dark vignettes ───────────────── */
.spotlight-item {
  border: none;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.spotlight-item:last-child { border-right: none; }
.spotlight-item__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.spotlight-item::before { display: none; }

.spotlight-item__num {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--f-red);
}
.spotlight-item__title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.spotlight-item__arrow { color: var(--f-red); }

/* ── SERVICES (section--light = white editorial) ─────── */
.services-split { }
.services-split__col h3 {
  color: var(--f-gray-dark);
  border-bottom: 2px solid var(--f-red);
}
.service-list a {
  background: transparent;
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  color: var(--f-gray-dark);
  font-size: 0.875rem;
}
.service-list a:hover {
  background: #f5f5f5;
  border-color: var(--f-gray-dark);
  color: var(--f-gray-dark);
  transform: none;
}
.service-list a .arrow { color: var(--f-red); }

/* ── WHY CHOOSE US (white section) ─────────────────────── */
.why-item {
  background: var(--f-white);
  border: none;
  border-top: 2px solid var(--f-red);
  border-radius: 0;
  box-shadow: none;
}
.why-item:hover {
  background: #fafafa;
  border-color: var(--f-red);
  box-shadow: none;
  transform: none;
}
.why-item__icon {
  background: transparent;
  border-radius: var(--f-radius);
  color: var(--f-red);
  width: 40px; height: 40px;
}
.why-item h3 { color: var(--f-gray-dark); font-size: 1rem; font-weight: 600; }
.why-item p  { color: var(--f-gray-mid); }

/* ── GALLERY (black section) ────────────────────────────── */
.gallery-item { border-radius: var(--f-radius); }
.gallery-item::after { background: rgba(218,41,28,0.35); }

/* ── TESTIMONIALS (white section) ──────────────────────── */
.testimonial-card {
  background: var(--f-white);
  border: none;
  border-radius: 0;
  border-top: 2px solid var(--f-border);
  box-shadow: none;
}
.testimonial-card:hover {
  border-top-color: var(--f-red);
  box-shadow: none;
  transform: translateY(-3px);
}
.testimonial-card::before { color: var(--f-red); opacity: 0.12; }
.testimonial-card__quote  { color: var(--f-gray-dark); }
.testimonial-card__author { color: var(--f-red); }
.testimonial-card__role   { color: var(--f-gray-mid); }

/* ── CTA BANNER: Ferrari Red ────────────────────────────── */
.cta-banner {
  background: var(--f-red);
  background-size: auto;
  animation: none;
}
.cta-banner::before,
.cta-banner::after { display: none; }
.cta-banner h2 { color: var(--f-white); font-weight: 500; letter-spacing: -0.5px; }
.cta-banner p  { color: rgba(255,255,255,0.85); }
.cta-banner .btn--primary {
  background: var(--f-white);
  color: var(--f-red);
  border-color: var(--f-white);
  border-radius: var(--f-radius);
}
.cta-banner .btn--primary:hover {
  background: transparent;
  color: var(--f-white);
  box-shadow: none;
}

/* ── CLIENT LOGO MARQUEE (white section) ───────────────── */
.section--white .logo-marquee-item {
  background: transparent;
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
}
.section--white .logo-marquee-item:hover {
  background: #f5f5f5;
  border-color: var(--f-gray-dark);
}
.section--white .logo-marquee-item img {
  filter: grayscale(1) contrast(0.6) brightness(0.4);
}
.section--white .logo-marquee-item:hover img { filter: none; }
.section--white .logo-marquee-item--text { color: var(--f-gray-light); }
.section--white .logo-marquee-item--text:hover { color: var(--f-gray-dark); }

/* ── PARTNERS section (dark) ────────────────────────────── */
.logo-marquee-item {
  border-radius: var(--f-radius);
}

/* ── SERVICE CARDS ──────────────────────────────────────── */
.service-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
}
.service-card:hover {
  border-color: var(--f-red);
  box-shadow: none;
  transform: translateY(-3px);
}
.service-card--image {
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.service-card--image:hover {
  border-color: var(--f-red);
}
.service-card__image { border-radius: 0; }
.service-card__body  { background: rgba(0,0,0,0.7); border-radius: 0; }
.service-card__body .icon { color: var(--f-red); }
.card__link { color: var(--f-red); }

/* ── PAGE HERO (interior pages) ─────────────────────────── */
.page-hero {
  background: var(--f-black);
}
.page-hero::before { display: none; }
.page-hero::after  { display: none; }
.page-hero__breadcrumb a:hover { color: var(--f-red); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-left: 2px solid var(--f-red);
  border-bottom-color: rgba(255,255,255,0.08);
}
.faq-question { border-radius: 0; }
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question[aria-expanded="true"] { background: rgba(218,41,28,0.05); }
.faq-icon {
  border-radius: 0;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--f-red);
  transform: rotate(45deg);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom { border-top-color: rgba(255,255,255,0.08); }
.footer-service-area { border-color: rgba(255,255,255,0.06); }
.footer-partner-badge { border-radius: var(--f-radius); }
.footer-partner-badge:hover {
  background: rgba(218,41,28,0.1);
  border-color: rgba(218,41,28,0.4);
  color: var(--f-white);
}
.footer-partner-badge small { color: var(--f-red); }
.back-to-top {
  background: var(--f-red);
  border-radius: var(--f-radius);
  box-shadow: none;
}
.back-to-top:hover { background: var(--f-red-dark); transform: none; }

/* ── TAB BUTTONS ────────────────────────────────────────── */
.tab-btn {
  border-radius: var(--f-radius);
  background: transparent;
  border-color: rgba(255,255,255,0.15);
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--f-red);
  border-color: var(--f-red);
  box-shadow: none;
}

/* ── ABOUT CERT BADGES ──────────────────────────────────── */
.cert-badge {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
}
.cert-badge:hover { background: rgba(218,41,28,0.07); border-color: var(--f-red); }
.cert-badge__name { color: var(--f-red); }

/* ── SIDEBAR WIDGET ─────────────────────────────────────── */
.sidebar-widget { border-radius: 0; border-color: rgba(255,255,255,0.1); }
.sidebar-widget__title { border-bottom-color: var(--f-red); }

/* ── CONTACT FORM ───────────────────────────────────────── */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--f-red);
  box-shadow: 0 0 0 2px rgba(218,41,28,0.1);
  background: rgba(218,41,28,0.02);
}
.partner-badge { border-radius: var(--f-radius); }
.partner-badge span { color: var(--f-red); }

/* ── Portfolio tabs ─────────────────────────────────────── */
.portfolio-tabs { gap: 4px; }
.tab-btn { border-radius: 0; letter-spacing: 0.08em; }
