/* ==========================================================================
   TRELLIS BOOKKEEPING SERVICES - OFFICIAL STYLESHEET (v3)
   Domain: trellisbookkeeping.com
   Colors: Primary Deep Navy (#1B2A4A), Wood Bronze (#8B5A2B), Gold Accent (#C89B53), Slate (#4A5568), Light Slate (#F8FAFC)
   Strict Rules: NO physical street address. NO social media icons.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --navy-deep:    #0A1324;
  --navy-dark:    #0F1C33;
  --navy-800:     #1B2A4A; /* Primary Deep Navy */
  --navy-700:     #243862;
  --navy-600:     #314B82;

  --bronze-800:   #5E3A1A;
  --bronze-700:   #734922;
  --bronze-600:   #8B5A2B; /* Wood Bronze */
  --bronze-500:   #9E6732;
  --bronze-100:   #F5EDE6;
  --bronze-50:    #FAF5F0;

  --gold-accent:  #C89B53; /* Gold Accent */
  --gold-light:   #FEF3C7;

  --slate-900:    #0F172A;
  --slate-800:    #1E293B;
  --slate-700:    #334155;
  --slate-600:    #4A5568;
  --slate-400:    #94A3B8;
  --slate-200:    #E2E8F0;
  --slate-100:    #F1F5F9;
  --slate-50:     #F8FAFC;
  --white:        #FFFFFF;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-2xl:   24px;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md:    0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg:    0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl:    0 18px 45px rgba(15, 23, 42, 0.16);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-600);
  background-color: var(--slate-50);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

a, p, span, h1, h2, h3, h4, label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------- Typography & Section Titles ----------------- */
h1, h2, h3, h4 {
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section {
  padding: 5.5rem 0;
}

.section-bg-alt {
  background-color: var(--slate-50);
}

.section-bg-white {
  background-color: var(--white);
}

.section-bg-dark {
  background-color: var(--navy-800);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bronze-600);
  background-color: var(--bronze-100);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-bg-dark .section-tag {
  background-color: rgba(200, 155, 83, 0.15);
  color: var(--gold-accent);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  color: var(--navy-800);
}

.section-bg-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.section-bg-dark .section-subtitle {
  color: #CBD5E1;
}

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
}

.btn-primary {
  background-color: var(--bronze-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.3);
}

.btn-primary:hover {
  background-color: var(--bronze-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139, 90, 43, 0.45);
  color: var(--white);
}

.btn-consultation {
  background-color: var(--bronze-600);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.3);
}

.btn-consultation:hover {
  background-color: var(--bronze-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.45);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--navy-800);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
  color: var(--navy-800);
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ----------------- Header & Navigation ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background-color: rgba(15, 28, 51, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

/* White Logo Badge matching Prototype */
.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.brand-logo-badge:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bronze-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #CBD5E1;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Bilingual switcher with Spain & UK flags */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #CBD5E1;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--white);
  color: var(--navy-800);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.nav-backdrop.is-open,
.nav-backdrop.open {
  display: block;
}

/* ----------------- Hero Section ----------------- */
.hero {
  position: relative;
  background-color: var(--navy-800);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(200, 155, 83, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(139, 90, 43, 0.12) 0%, transparent 50%),
    linear-gradient(to right, rgba(200, 155, 83, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 155, 83, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  color: var(--white);
  padding: 4.5rem 0 5.5rem;
  overflow: visible;
}

.circuit-vector-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='800' height='600' viewBox='0 0 800 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M500 0V150L600 250H800M400 0V100L480 180H700M650 300L720 370V600M550 220L450 320V600M300 0L350 50H450' stroke='%23C89B53' stroke-opacity='0.18' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='600' cy='250' r='3.5' fill='%23C89B53' fill-opacity='0.4'/%3E%3Ccircle cx='480' cy='180' r='3.5' fill='%23C89B53' fill-opacity='0.4'/%3E%3Ccircle cx='720' cy='370' r='3.5' fill='%23C89B53' fill-opacity='0.4'/%3E%3Ccircle cx='450' cy='320' r='3.5' fill='%23C89B53' fill-opacity='0.4'/%3E%3C/svg%3E");
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: rgba(15, 28, 51, 0.85);
  border: 1px solid rgba(200, 155, 83, 0.4);
  color: #FDE68A;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-accent);
  box-shadow: 0 0 0 0 rgba(200, 155, 83, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 155, 83, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 155, 83, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 155, 83, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 4 Overlapping Floating Cards Grid */
.hero-overlap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: -5.5rem;
  position: relative;
  z-index: 20;
}

.pillar-card-v6 {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.85rem 1.45rem;
  box-shadow: 0 16px 40px rgba(15, 28, 51, 0.12);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: all var(--transition-normal);
}

.pillar-card-v6:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 28, 51, 0.18);
  border-color: var(--gold-accent);
}

.card-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-badge-icon.blue {
  background-color: #EBF5FF;
  color: var(--navy-800);
}

.card-badge-icon.bronze {
  background-color: #FEF3C7;
  color: var(--bronze-600);
}

.card-badge-icon svg {
  width: 24px;
  height: 24px;
}

.card-title-v6 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.card-desc-v6 {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.card-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--bronze-600);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(139, 90, 43, 0.25);
}

.pillar-card-v6:hover .card-arrow-btn {
  background-color: var(--bronze-700);
  transform: translateX(4px);
}

.card-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* Direct contact bar at base of hero */
.hero-direct-contact {
  margin-top: 8rem;
  text-align: center;
  color: #CBD5E1;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-contact-label {
  font-weight: 700;
  color: #FDE68A;
}

.hero-contact-link {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.hero-contact-link:hover {
  color: var(--gold-accent);
}

/* ----------------- Trust Metrics Section ----------------- */
.metrics-section {
  background-color: var(--slate-50);
  padding: 7rem 0 4.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-num span {
  color: var(--bronze-600);
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  margin-top: 0.6rem;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--slate-600);
  margin-top: 0.35rem;
}

/* ----------------- Strategic Focus Banner ----------------- */
.focus-banner {
  background-color: var(--white);
  padding: 4.5rem 0;
}

.focus-card {
  background: linear-gradient(135deg, var(--white) 0%, #FAF6F0 100%);
  border: 1px solid rgba(139, 90, 43, 0.25);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.focus-icon-box {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-xl);
  background-color: var(--bronze-100);
  color: var(--bronze-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  flex-shrink: 0;
}

.focus-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--navy-800);
}

.focus-text p {
  color: var(--slate-600);
  line-height: 1.7;
}

/* ----------------- Services Grid ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-accent);
}

.service-header-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--navy-800);
}

.service-subtitle-en {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bronze-600);
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--slate-100);
  padding-top: 1.25rem;
}

.service-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.service-features-list .check {
  color: var(--bronze-600);
  font-weight: 700;
  flex-shrink: 0;
}

/* ----------------- Packages Comparison Matrix ----------------- */
.packages-matrix-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.925rem;
}

.matrix-table th {
  background-color: var(--slate-100);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.95rem;
}

.matrix-table th.col-highlight,
.matrix-table td.col-highlight {
  background-color: #FAF6F0;
  border-left: 2px solid var(--gold-accent);
  border-right: 2px solid var(--gold-accent);
}

.matrix-table th.col-highlight {
  background-color: var(--navy-800);
  color: var(--white);
  border-top: 3px solid var(--gold-accent);
}

.matrix-popular-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--bronze-600);
  color: var(--white);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.status-badge-inc {
  color: #059669;
  font-weight: 700;
}

.status-badge-opt {
  color: var(--bronze-600);
  font-weight: 600;
}

.status-badge-none {
  color: var(--slate-400);
}

.matrix-table tfoot td {
  padding: 1.5rem 1.4rem;
  background-color: var(--slate-50);
}

/* Mobile Packages View */
.mobile-packages-view {
  display: none;
}

.mobile-pkg-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pkg-tab-btn {
  flex: 1;
  min-width: 110px;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-600);
  transition: all var(--transition-fast);
}

.pkg-tab-btn.active {
  background-color: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.mobile-pkg-card {
  display: none;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.mobile-pkg-card.active {
  display: block;
}

.mobile-pkg-card.card-featured {
  border: 2px solid var(--gold-accent);
}

.mobile-pkg-header {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1rem;
}

.mobile-pkg-title {
  font-size: 1.35rem;
  color: var(--navy-800);
  margin-top: 0.25rem;
}

.mobile-feature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
}

/* ----------------- FAQ Accordion ----------------- */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--gold-accent);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  background-color: var(--white);
}

.faq-toggle-icon {
  font-size: 1.3rem;
  color: var(--bronze-600);
  transition: transform var(--transition-fast);
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background-color: var(--slate-50);
}

.faq-answer-inner {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
  border-top: 1px solid var(--slate-200);
}

.faq-answer-inner ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.faq-answer-inner li {
  margin-bottom: 0.5rem;
}

/* ----------------- Contact & Consultation Dossier ----------------- */
.contact-section-v6 {
  background-color: var(--navy-800);
  color: var(--white);
  padding: 5.5rem 0;
}

/* Top direct contact ribbon */
.contact-ribbon {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2.75rem;
  margin-bottom: 3.5rem;
}

.contact-ribbon-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-ribbon-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 1.05rem;
}

.contact-ribbon-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-ribbon-label {
  font-weight: 700;
  color: #FDE68A;
}

.contact-ribbon-link {
  color: #CBD5E1;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-ribbon-link:hover {
  color: var(--white);
}

/* Consultation Form Card */
.consultation-form-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-xl);
  color: var(--navy-800);
}

.consultation-form-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.consultation-form-header h2 {
  font-size: 2rem;
  color: var(--navy-800);
  margin-top: 0.35rem;
}

.consultation-form-header p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
  margin-bottom: 1.5rem;
}

.form-group.col-full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  margin-bottom: 0.45rem;
}

.form-group .req {
  color: #DC2626;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy-800);
  background-color: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--bronze-600);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.15);
}

.confidentiality-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
}

.confidentiality-badge .badge-icon {
  font-size: 1.25rem;
  color: var(--bronze-600);
  flex-shrink: 0;
}

.confidentiality-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-800);
}

.confidentiality-badge p {
  font-size: 0.775rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.4;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.form-status {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-status.success {
  display: block;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status.error {
  display: block;
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.mailto-fallback-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--bronze-600);
  text-decoration: underline;
}

.privacy-notice {
  text-align: center;
  font-size: 0.775rem;
  color: var(--slate-400);
  margin-top: 1rem;
  line-height: 1.4;
}

/* ----------------- Footer ----------------- */
.site-footer {
  background-color: var(--navy-dark);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--navy-deep);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand-text h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand-text p {
  color: #94A3B8;
  font-size: 0.85rem;
}

.footer-contact-info {
  text-align: left;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-contact-info {
    text-align: right;
  }
}

.footer-contact-info a {
  color: #CBD5E1;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #64748B;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-policy-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-policy-links a {
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-policy-links a:hover {
  color: var(--white);
}

/* Floating call button for mobile */
.floating-contact-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--bronze-600);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 900;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast);
}

.floating-contact-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
}

/* ----------------- Responsive Media Queries ----------------- */
@media (max-width: 1080px) {
  .hero-overlap-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: -3.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-container {
    padding: 0 1rem;
    height: 72px;
  }
  .brand-logo-badge {
    padding: 0.25rem 0.6rem;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .brand-logo-img {
    height: 30px;
    width: 30px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-logo-badge .brand-sub {
    display: none;
  }
  .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .lang-switcher {
    padding: 2px;
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    gap: 4px;
  }
  .flag-icon {
    width: 15px;
    height: 10px;
  }
  .btn-consultation {
    display: none;
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 6px;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--navy-800);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }
  .nav-menu.open,
  .nav-menu.is-open {
    display: flex;
  }
  .packages-matrix-wrapper {
    display: none;
  }
  .mobile-packages-view {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-direct-contact {
    margin-top: 5rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-full {
    grid-column: span 1;
  }
  .consultation-form-card {
    padding: 2rem 1.5rem;
  }
  .focus-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }
  .nav-container {
    padding: 0 0.75rem;
    height: 70px;
  }
  .brand-logo-badge {
    padding: 0.25rem 0.5rem;
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .brand-logo-img {
    height: 28px;
    width: 28px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
  .nav-actions {
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .lang-switcher {
    padding: 2px;
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 0.25rem 0.45rem;
    font-size: 0.725rem;
    gap: 3px;
  }
  .flag-icon {
    width: 14px;
    height: 10px;
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  .btn-consultation {
    display: none;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
    max-width: 95%;
  }
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  .hero-overlap-cards {
    grid-template-columns: 1fr;
    margin-top: 2.25rem;
    margin-bottom: -2.5rem;
    gap: 1.25rem;
  }
  .pillar-card-v6 {
    padding: 1.5rem 1.25rem;
  }
  .metrics-section {
    padding: 4.5rem 0 3rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .metric-card {
    padding: 1.35rem 1rem;
  }
  .metric-num {
    font-size: 2.25rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .floating-contact-btn {
    display: inline-flex;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }
  .nav-container {
    height: 68px;
  }
  .brand-logo-badge {
    padding: 0.25rem 0.5rem;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .brand-logo-img {
    height: 28px;
    width: 28px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-logo-badge .brand-sub {
    display: none;
  }
  .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .lang-switcher {
    padding: 2px;
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 0.25rem 0.45rem;
    font-size: 0.725rem;
    gap: 3px;
  }
  .flag-icon {
    width: 14px;
    height: 10px;
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}
