/* ==========================================================================
   SAVARD QTRADE INC. — STYLE.CSS
   Design Mood: Handmade Sketch
   Palette: Sage & Mauve
   Layout: Sticky Panels
   ========================================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-primary: #6B7F5E;
  --color-secondary: #9CAF88;
  --color-accent: #9B6B8C;
  --color-bg: #F7F9F5;
  --color-surface: #FFFFFF;
  --color-text: #2E3A26;
  --color-text-light: #6E7A66;
  --color-dark: #2E3A26;

  --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-body: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;
  --gap: 24px;
  --section-padding: 80px;

  --transition-base: 0.3s ease;
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.015em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper texture overlay on body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107, 127, 94, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 50%, rgba(155, 107, 140, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.03) 0%, transparent 50%);
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

/* ---------- TYPOGRAPHY — AIRY MODERN ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Bracket-framing for h2 */
h2::before {
  content: '— ';
  color: var(--color-accent);
  font-weight: 300;
  opacity: 0.6;
}

h2::after {
  content: ' —';
  color: var(--color-accent);
  font-weight: 300;
  opacity: 0.6;
}

/* Override bracket framing in dark/colored contexts */
.dark-section h2::before,
.dark-section h2::after,
.primary-section h2::before,
.primary-section h2::after,
.accent-section h2::before,
.accent-section h2::after {
  color: rgba(255, 255, 255, 0.5);
}

/* Dark section text colors */
.dark-section,
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section p,
.dark-section li,
.dark-section span,
.dark-section a {
  color: #FFFFFF;
}

.dark-section a:hover {
  color: var(--color-secondary);
}

.primary-section,
.primary-section h1,
.primary-section h2,
.primary-section h3,
.primary-section h4,
.primary-section p,
.primary-section li,
.primary-section span {
  color: #FFFFFF;
}

.accent-section,
.accent-section h1,
.accent-section h2,
.accent-section h3,
.accent-section h4,
.accent-section p,
.accent-section li,
.accent-section span {
  color: #FFFFFF;
}

/* ---------- HORIZONTAL RULE RHYTHM MOTIF ---------- */
.hr-motif {
  display: block;
  width: 80px;
  height: 18px;
  margin: 0 auto 1.5rem;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent) 0px,
    var(--color-accent) 2px,
    transparent 2px,
    transparent 4px,
    var(--color-primary) 4px,
    var(--color-primary) 5px,
    transparent 5px,
    transparent 8px,
    var(--color-accent) 8px,
    var(--color-accent) 9px,
    transparent 9px
  );
  opacity: 0.5;
}

.dark-section .hr-motif,
.primary-section .hr-motif,
.accent-section .hr-motif {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.6) 0px,
    rgba(255,255,255,0.6) 2px,
    transparent 2px,
    transparent 4px,
    rgba(255,255,255,0.4) 4px,
    rgba(255,255,255,0.4) 5px,
    transparent 5px,
    transparent 8px,
    rgba(255,255,255,0.3) 8px,
    rgba(255,255,255,0.3) 9px,
    transparent 9px
  );
  opacity: 0.6;
}

/* ---------- DIAGONAL LINES DECORATION ---------- */
.diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(46, 58, 38, 0.03) 10px,
    rgba(46, 58, 38, 0.03) 11px
  );
}

.diagonal-lines-white {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 11px
  );
}

/* ---------- NAVIGATION — FLOATING GLASS PILL ---------- */
.nav-pill {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px dashed rgba(107, 127, 94, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 95vw;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(107, 127, 94, 0.1);
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-login {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition-base);
}

.nav-login:hover {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-block;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFFFFF !important;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #FFFFFF !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav dropdown */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px dashed rgba(107, 127, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: min(90vw, 360px);
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background var(--transition-base);
  text-decoration: none;
}

.nav-mobile-menu a:hover {
  background: rgba(107, 127, 94, 0.1);
}

.nav-mobile-menu .nav-cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .nav-login,
  .nav-actions .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-pill {
    padding: 0.5rem 0.75rem 0.5rem 1.2rem;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px dashed transparent;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
  letter-spacing: 0.02em;
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px dashed var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.btn-white {
  background: #FFFFFF;
  color: var(--color-primary);
  border: 2px dashed rgba(255,255,255,0.4);
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-accent);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #b07fa1);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #b07fa1, var(--color-accent));
  color: #FFFFFF;
}

/* ---------- STICKY PANELS LAYOUT ---------- */
.sticky-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.sticky-panel:nth-child(1) { z-index: 1; }
.sticky-panel:nth-child(2) { z-index: 2; }
.sticky-panel:nth-child(3) { z-index: 3; }
.sticky-panel:nth-child(4) { z-index: 4; }
.sticky-panel:nth-child(5) { z-index: 5; }
.sticky-panel:nth-child(6) { z-index: 6; }
.sticky-panel:nth-child(7) { z-index: 7; }
.sticky-panel:nth-child(8) { z-index: 8; }
.sticky-panel:nth-child(9) { z-index: 9; }
.sticky-panel:nth-child(10) { z-index: 10; }

/* Panel layering shadow (essential for sticky-panel layout) */
.sticky-panel + .sticky-panel {
  box-shadow: 0 -6px 20px rgba(46, 58, 38, 0.08);
}

.panel-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem var(--gap);
  width: 100%;
}

.panel-content-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem var(--gap);
  width: 100%;
}

/* Panel background classes */
.panel-bg-primary {
  background-color: var(--color-primary);
}

.panel-bg-dark {
  background-color: var(--color-dark);
}

.panel-bg-accent {
  background-color: var(--color-accent);
}

.panel-bg-light {
  background-color: var(--color-bg);
}

.panel-bg-surface {
  background-color: var(--color-surface);
}

/* ---------- HERO — DIAGONAL SPLIT ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-diagonal {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.hero-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  z-index: 1;
}

.hero-diagonal::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-color: var(--color-accent);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 10% 100%);
  z-index: 0;
}

.hero-diagonal .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-diagonal .hero-content h1 {
  color: #FFFFFF;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-diagonal .hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

/* Decorative circle at intersection */
.hero-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-circle {
    width: 180px;
    height: 180px;
  }

  .hero-diagonal::before {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 0 70%);
  }

  .hero-diagonal::after {
    width: 100%;
    height: 60%;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s ease infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid rgba(255,255,255,0.7);
  border-right: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin-bottom: -12px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* Simple hero (non-diagonal) */
.hero-simple {
  background-color: var(--color-primary);
  text-align: center;
  padding: var(--section-padding) var(--gap);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-simple h1,
.hero-simple p {
  color: #FFFFFF;
}

.hero-simple h1 {
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero-simple p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- SPLIT HERO (About page) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background-color: var(--color-bg);
}

.hero-split-visual {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  min-height: 400px;
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
}

.hero-split-content h1 {
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero-split-content p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-split-visual {
    min-height: 250px;
  }

  .hero-split-content {
    padding: 2.5rem 1.5rem;
  }
}

/* ---------- TORN PAPER EDGE DIVIDER ---------- */
.torn-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 25px;
  z-index: 10;
  pointer-events: none;
}

.torn-edge svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Torn edge container positioning */
.has-torn-edge {
  position: relative;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--color-surface);
  border: 1px dashed rgba(107, 127, 94, 0.25);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Multi-line top border effect (motif) */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent) 0px,
    var(--color-accent) 1px,
    transparent 1px,
    transparent 2px,
    var(--color-primary) 2px,
    var(--color-primary) 3px,
    transparent 3px
  );
  opacity: 0.4;
}

.card:hover {
  border-bottom-color: var(--color-primary);
  transform: scale(1.02);
}

/* Hover shine sweep */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::after {
  transform: translateX(100%);
}

.card h3,
.card h4 {
  position: relative;
  z-index: 2;
}

.card p {
  position: relative;
  z-index: 2;
}

/* ---------- FROSTED GLASS CARDS (Services Grid) ---------- */
.frosted-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 2rem;
  transition: transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.frosted-card:hover {
  transform: scale(1.02);
}

.frosted-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.frosted-card:hover::after {
  transform: translateX(100%);
}

.frosted-card h3 {
  color: var(--color-text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.frosted-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

.frosted-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--color-primary);
}

/* ---------- GRIDS ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 768px) {
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
  }
}

/* ---------- STATS — CIRCULAR PROGRESS ---------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.stat-circle {
  text-align: center;
}

.stat-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto 1rem;
  position: relative;
  border: 2px dashed rgba(255,255,255,0.2);
}

.stat-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
}

.stat-ring[data-percent="85"]::before {
  background: conic-gradient(var(--color-secondary) 0deg, var(--color-secondary) 306deg, transparent 306deg) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

.stat-ring[data-percent="94"]::before {
  background: conic-gradient(var(--color-secondary) 0deg, var(--color-secondary) 338deg, transparent 338deg) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

.stat-ring[data-percent="70"]::before {
  background: conic-gradient(var(--color-secondary) 0deg, var(--color-secondary) 252deg, transparent 252deg) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.75rem;
  max-width: 160px;
  line-height: 1.4;
}

/* Dramatic stats banner (non-circular) */
.stats-banner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  text-align: center;
}

.stats-banner .stat-item .stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  display: block;
  line-height: 1.1;
}

.stats-banner .stat-item .stat-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  max-width: 200px;
}

/* ---------- TESTIMONIAL — PULL QUOTE ---------- */
.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  position: relative;
  padding: 2rem 0;
}

/* Large accent quotation marks */
.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  color: var(--color-accent);
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* Multiple left borders (motif) */
.testimonial-quote blockquote {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  padding: 1.5rem 0;
  margin: 0;
  box-shadow:
    -4px 0 0 var(--color-accent),
    -8px 0 0 transparent,
    -12px 0 0 var(--color-secondary);
  padding-left: 2rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(155, 107, 140, 0.05), rgba(107, 127, 94, 0.05));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  font-style: normal;
}

.testimonial-author span {
  display: block;
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px dashed var(--color-text-light);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- ACCORDION ---------- */
.accordion-item {
  border: 1px dashed rgba(107, 127, 94, 0.25);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background var(--transition-base);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.accordion-header:hover {
  background: rgba(107, 127, 94, 0.05);
}

.accordion-header h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.accordion-header .one-liner {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
  margin-top: 0.25rem;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-left: 1rem;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-light);
  transition: transform var(--transition-base);
}

.accordion-icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  transform: translateX(-50%);
}

.accordion-item.open .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 600px;
  padding: 0 1.5rem 1.5rem;
}

.accordion-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.accordion-body .btn {
  margin-top: 1rem;
}

/* ---------- TABS ---------- */
.tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px dashed rgba(107, 127, 94, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-body);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-panel {
  display: none;
  padding: 2rem 0;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.tab-panel p {
  color: var(--color-text-light);
}

.timeline-badge {
  display: inline-block;
  background: rgba(107, 127, 94, 0.1);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 1rem;
  border: 1px dashed var(--color-primary);
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
}

/* ---------- TIMELINE (About page) ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent) 0px,
    var(--color-accent) 6px,
    transparent 6px,
    transparent 12px
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: right;
  padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: left;
  padding-left: calc(50% + 2rem);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--color-surface);
  border: 3px dashed var(--color-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-year {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1rem;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
  }

  .timeline-item::before {
    left: 1rem;
  }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--section-padding) var(--gap);
  position: relative;
}

.section-dark {
  background-color: var(--color-dark);
}

.section-primary {
  background-color: var(--color-primary);
}

.section-accent {
  background-color: var(--color-accent);
}

.section-light {
  background-color: var(--color-bg);
}

.section-surface {
  background-color: var(--color-surface);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.text-center {
  text-align: center;
}

/* ---------- MANIFESTO STATEMENTS ---------- */
.manifesto-item {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.7;
  padding: 1.5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-item:last-child {
  border-bottom: none;
}

/* ---------- CONTACT FORM — INLINE PAIRED ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(107, 127, 94, 0.35);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  border-style: solid;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CONTACT TWO-COLUMN LAYOUT ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info-card {
  background: var(--color-surface);
  border: 1px dashed rgba(107, 127, 94, 0.25);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.contact-info-card strong {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- HUB AND SPOKE (Industries) ---------- */
.hub-spoke {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
}

.hub-center {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  border: 2px dashed rgba(255,255,255,0.3);
}

.hub-center h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.hub-center p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.spoke-card {
  text-align: center;
}

.spoke-card .spoke-stat {
  display: inline-block;
  background: rgba(107, 127, 94, 0.1);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  border: 1px dashed var(--color-primary);
}

/* ---------- CASE STUDY FEATURED ---------- */
.case-featured {
  background: var(--color-surface);
  border: 1px dashed rgba(107, 127, 94, 0.25);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.case-featured .case-tag {
  display: inline-block;
  background: rgba(155, 107, 140, 0.12);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-tag {
  display: inline-block;
  background: rgba(155, 107, 140, 0.12);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-results {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.case-results li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(107, 127, 94, 0.15);
  color: var(--color-text);
  font-size: 0.95rem;
}

.case-results li:last-child {
  border-bottom: none;
}

.case-results li strong {
  color: var(--color-primary);
}

/* ---------- FEE COMPARISON ---------- */
.fee-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  max-width: 700px;
  margin: 0 auto;
}

.fee-column {
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.fee-column.fee-old {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.fee-column.fee-new {
  background: rgba(156, 175, 136, 0.15);
  border: 2px dashed var(--color-secondary);
}

.fee-column h3 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.fee-column .fee-rate {
  font-size: 2rem;
  font-weight: 300;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.5rem;
}

.fee-column p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .fee-comparison {
    grid-template-columns: 1fr;
  }
}

/* ---------- ARTICLE CARDS ---------- */
.article-card {
  position: relative;
  overflow: hidden;
}

.article-card .article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.article-card .article-tag {
  background: rgba(107, 127, 94, 0.1);
  color: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
}

.article-card h3 {
  margin-bottom: 0.25rem;
}

.article-card .article-subtitle {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.article-card .read-time {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ---------- GEOMETRIC CSS ILLUSTRATIONS ---------- */
.geo-illustration {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.geo-illustration .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.geo-illustration .shape-1 {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  top: 20%;
  left: 15%;
  opacity: 0.4;
}

.geo-illustration .shape-2 {
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  top: 50%;
  left: 55%;
  opacity: 0.35;
}

.geo-illustration .shape-3 {
  width: 100px;
  height: 100px;
  background: var(--color-secondary);
  top: 10%;
  right: 10%;
  opacity: 0.25;
  border-radius: 50%;
}

.geo-illustration .shape-4 {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  bottom: 15%;
  left: 30%;
  border-radius: 4px;
  transform: rotate(45deg);
  opacity: 0.4;
}

.geo-illustration .shape-5 {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid var(--color-primary);
  bottom: 20%;
  right: 20%;
  border-radius: 0;
  opacity: 0.2;
}

/* Variations */
.geo-illustration.variant-2 .shape-1 {
  width: 120px; height: 120px; top: 5%; left: 5%; background: var(--color-secondary); opacity: 0.2;
}
.geo-illustration.variant-2 .shape-2 {
  width: 50px; height: 50px; top: 60%; left: 40%; background: var(--color-primary); opacity: 0.45;
}
.geo-illustration.variant-2 .shape-3 {
  width: 70px; height: 70px; top: 30%; right: 15%; background: var(--color-accent); opacity: 0.3;
}

.geo-illustration.variant-3 .shape-1 {
  width: 90px; height: 90px; top: 10%; left: 50%; background: var(--color-accent); opacity: 0.35;
}
.geo-illustration.variant-3 .shape-2 {
  width: 70px; height: 70px; bottom: 10%; left: 15%; background: var(--color-secondary); opacity: 0.4;
}

/* Large version for login / about hero */
.geo-illustration-lg {
  min-height: 100%;
}

.geo-illustration-lg .shape-1 {
  width: 180px; height: 180px;
}
.geo-illustration-lg .shape-2 {
  width: 120px; height: 120px;
}
.geo-illustration-lg .shape-3 {
  width: 200px; height: 200px;
}

/* ---------- EMAIL CAPTURE INLINE ---------- */
.email-capture {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 1.5rem auto 0;
}

.email-capture input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
}

.email-capture input::placeholder {
  color: rgba(255,255,255,0.5);
}

.email-capture input:focus {
  border-color: var(--color-secondary);
  border-style: solid;
}

.email-capture .btn {
  white-space: nowrap;
}

@media (max-width: 500px) {
  .email-capture {
    flex-direction: column;
  }
}

/* ---------- LOGIN PAGE — SIDEBAR LAYOUT ---------- */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 100vh;
}

.login-brand {
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.04) 10px,
    rgba(255, 255, 255, 0.04) 11px
  );
  pointer-events: none;
}

.login-brand > * {
  position: relative;
  z-index: 1;
}

.login-brand .brand-wordmark {
  font-size: 1.8rem;
  font-weight: 300;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.login-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.login-brand .login-testimonial {
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  border-left: 3px dashed rgba(255,255,255,0.3);
  padding-left: 1.5rem;
}

.login-brand .login-testimonial-author {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.login-brand .login-trust {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.login-brand .trust-badge {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  border: 1px dashed rgba(255,255,255,0.2);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
}

.login-form-panel {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.login-form-panel h1 {
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.login-form-panel h1::before,
.login-form-panel h1::after {
  display: none;
}

.login-form-panel .login-subtitle {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.login-form-panel .form-group {
  margin-bottom: 1.25rem;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 0.25rem;
}

.password-toggle:hover {
  color: var(--color-accent);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.remember-row label {
  font-size: 0.88rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.login-form-panel .btn {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.forgot-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
  display: block;
}

@media (max-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 3rem 2rem;
    min-height: 40vh;
  }

  .login-form-panel {
    padding: 2rem 1.5rem;
  }
}

/* ---------- DISCLOSURES ---------- */
.disclosures {
  background: #F0F2ED;
  border-top: 2px dashed var(--color-primary);
  padding: 2.5rem var(--gap);
}

.disclosures h3 {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Remove bracket framing from disclosure heading */
.disclosures h3::before,
.disclosures h3::after {
  content: none;
}

.disclosures p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 0.75rem;
  line-height: 1.7;
  text-align: center;
}

.disclosures p:last-child {
  margin-bottom: 0;
}

/* ---------- FOOTER — MEGA ---------- */
.footer {
  background: var(--color-dark);
  color: #FFFFFF;
  padding: 4rem 3rem 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  padding-right: 2rem;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-brand .footer-contact-info {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.footer-social a:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
}

/* Trust badges row */
.footer-trust {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-trust span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  border: 1px dashed rgba(255,255,255,0.12);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
}

/* Progressively fading horizontal lines (motif) */
.footer-lines {
  margin-top: 2rem;
  padding-top: 1rem;
  height: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.1) 0px,
    rgba(255,255,255,0.1) 1px,
    transparent 1px,
    transparent 3px,
    rgba(255,255,255,0.06) 3px,
    rgba(255,255,255,0.06) 4px,
    transparent 4px,
    transparent 7px,
    rgba(255,255,255,0.03) 7px,
    rgba(255,255,255,0.03) 8px,
    transparent 8px
  );
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Footer accordion (mobile) */
.footer-col-toggle {
  display: none;
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand {
    padding-right: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .footer-col h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
    margin-bottom: 0;
  }

  .footer-col-toggle {
    display: block;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.4);
    transition: transform var(--transition-base);
  }

  .footer-col.open .footer-col-toggle {
    transform: rotate(45deg);
  }

  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .footer-col.open ul {
    max-height: 300px;
    padding-bottom: 1rem;
  }

  .footer-trust {
    gap: 1rem;
  }
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(46, 58, 38, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  margin: 0;
  max-width: 500px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-accept {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition-base);
}

.cookie-accept:hover {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.cookie-decline:hover {
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

/* ---------- FLOATING MOBILE CTA ---------- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px dashed rgba(107, 127, 94, 0.2);
}

.floating-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .floating-cta {
    display: block;
  }

  /* Offset cookie banner when floating CTA present */
  .cookie-banner {
    bottom: 60px;
  }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 996;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFFFFF;
  border: 2px dashed rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition-base);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 6rem;
    right: 1rem;
  }
}

/* ---------- PAGE TRANSITIONS ---------- */
.page-transition-overlay {
  /* bdetect fix: start hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.transition-half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-dark);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.transition-top {
  top: 0;
  transform: translateY(-100%);
}

.transition-bottom {
  bottom: 0;
  transform: translateY(100%);
}

.page-transition-overlay.active .transition-top {
  transform: translateY(0);
}

.page-transition-overlay.active .transition-bottom {
  transform: translateY(0);
}

/* Accent line at seam */
.transition-seam {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.3s ease 0.2s;
}

.page-transition-overlay.active .transition-seam {
  transform: translateY(-50%) scaleX(1);
}

/* ---------- SCALE UP ENTRANCE ANIMATION ---------- */
.animate-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children .animate-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .animate-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .animate-in:nth-child(4) { transition-delay: 240ms; }
.stagger-children .animate-in:nth-child(5) { transition-delay: 320ms; }
.stagger-children .animate-in:nth-child(6) { transition-delay: 400ms; }
.stagger-children .animate-in:nth-child(7) { transition-delay: 480ms; }
.stagger-children .animate-in:nth-child(8) { transition-delay: 560ms; }

/* ---------- PRIVACY / TERMS PAGES ---------- */
.legal-page {
  padding-top: 7rem;
  min-height: 100vh;
}

.legal-page h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.legal-page h1::before,
.legal-page h1::after {
  content: none;
}

.legal-page .legal-updated {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin-bottom: 3rem;
}

.legal-content {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 var(--gap) 4rem;
}

/* Q&A style for privacy */
.qa-block {
  margin-bottom: 2rem;
}

.qa-block h3 {
  color: var(--color-text);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.qa-block h3::before {
  content: 'Q: ';
  color: var(--color-accent);
  font-weight: 600;
}

.qa-block p {
  color: var(--color-text-light);
}

/* Numbered sections for terms */
.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h3 {
  color: var(--color-text);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(107, 127, 94, 0.2);
}

.legal-section p,
.legal-section li {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.legal-section ol {
  list-style: none;
  counter-reset: sub-item;
  padding-left: 0;
}

.legal-section ol li {
  counter-increment: sub-item;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.legal-section ol li::before {
  content: counter(sub-item, lower-alpha) ') ';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- UTILITY CLASSES ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }

/* Non-sticky layout for inner pages */
.page-content {
  padding-top: 6rem;
}

/* Section specific - no bracket on h1 */
h1::before, h1::after {
  content: none;
}

/* h3, h4 should not have brackets */
h3::before, h3::after,
h4::before, h4::after {
  content: none;
}

/* Speed section on process page */
.speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  text-align: center;
}

.speed-grid .speed-item h4 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.speed-grid .speed-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .speed-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- FAQ ACCORDION ---------- */
.faq-section .accordion-header h3 {
  font-size: 0.95rem;
}

.faq-section .accordion-body {
  font-size: 0.92rem;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .nav-pill,
  .cookie-banner,
  .floating-cta,
  .back-to-top,
  .page-transition-overlay {
  /* bdetect fix: start hidden */
    display: none !important;
  }

  .sticky-panel {
    position: relative !important;
    min-height: auto !important;
  }

  body::before {
    display: none;
  }
}