/* ==========================================================================
   Karibi-Whyte & Partners — Core Stylesheet
   Design system: Deep Navy/Teal + Orange + Cream + Beige
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #082E38;
  --navy-deep: #051D24;
  --navy-soft: #123B47;
  --orange: #F56A00;
  --orange-soft: #FF8A33;
  --cream: #F7F2E9;
  --beige: #D9C9AE;
  --charcoal: #1D1D1D;
  --white: #FFFFFF;

  /* Derived / functional */
  --line: rgba(29, 29, 29, 0.1);
  --line-on-navy: rgba(247, 242, 233, 0.14);
  --shadow-soft: 0 20px 50px rgba(8, 46, 56, 0.10);
  --shadow-card: 0 12px 30px rgba(8, 46, 56, 0.08);
  --shadow-lift: 0 24px 60px rgba(8, 46, 56, 0.18);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --section-pad: 7.5rem;
  --section-pad-sm: 4.5rem;
  --radius: 4px;
  --radius-lg: 8px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.18;
}

p { color: var(--charcoal); opacity: 0.85; }

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

::selection { background: var(--orange); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

.container-xl { max-width: 1320px; margin-inline: auto; padding-inline: 1.5rem; }

section { position: relative; }

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

.bg-navy { background-color: var(--navy); }
.bg-cream { background-color: var(--cream); }
.bg-beige { background-color: var(--beige); }
.bg-white-panel { background-color: var(--white); }

.text-orange { color: var(--orange) !important; }
.text-navy { color: var(--navy) !important; }
.text-cream { color: var(--cream) !important; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.on-navy { color: var(--orange-soft); }

.section-heading { max-width: 640px; }
.section-heading.mx-auto { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); margin-bottom: 1rem; }
.section-heading p { font-size: 1.05rem; }

/* Buttons */
.btn { border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.03em; padding: 0.9rem 2rem; transition: all var(--transition); border: 1px solid transparent; }

.btn-primary-brand {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary-brand:hover { background-color: transparent; color: var(--orange); border-color: var(--orange); }

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-on-navy);
}
.btn-outline-cream:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }


.btn-sm-brand { padding: 0.55rem 1.3rem; font-size: 0.82rem; }

.text-link-arrow {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}
.text-link-arrow svg { transition: transform var(--transition); width: 16px; height: 16px; }
.text-link-arrow:hover svg { transform: translateX(5px); }
.text-link-arrow:hover { color: var(--orange); }

/* ==========================================================================
   Seal Monogram — signature element
   ========================================================================== */
.kw-seal { display: inline-block; }
.kw-seal circle, .kw-seal path, .kw-seal text { vector-effect: non-scaling-stroke; }

.seal-watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-seal { width: 64px; height: 64px; animation: spin-seal 1.6s linear infinite; }
@keyframes spin-seal { to { transform: rotate(360deg); } }

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--orange); z-index: 1100; width: 0%;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.kw-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.6rem 0;
  background: transparent;
  transition: all var(--transition);
}
.kw-navbar.scrolled {
  background: var(--navy);
  padding: 0.9rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.kw-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.01em;
}
.kw-navbar .navbar-brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.kw-nav-link {
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 0 !important;
  margin-inline: 0.65rem;
  position: relative;
  opacity: 0.88;
  white-space: nowrap;
}
.kw-nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--orange);
  transition: width var(--transition);
}
.kw-nav-link:hover, .kw-nav-link.active { opacity: 1; color: var(--cream); }
.kw-nav-link:hover::after, .kw-nav-link.active::after { width: 100%; }

/* Compact CTA buttons in the navbar — full-size .btn everywhere else on
   the page stays untouched; this scopes down just the header's buttons
   so 4 nav links + a dropdown + 2 buttons fit one line at laptop widths. */
.kw-navbar .btn { padding: 0.55rem 1.1rem; font-size: 0.8rem; white-space: nowrap; }
.kw-navbar .btn-primary-brand { margin-left: 0.4rem; }

/* Simple dropdown (Resources) — lighter-weight than the mega menu, just
   an anchored list for secondary pages that don't need a multi-column layout. */
.simple-dropdown { position: relative; }
.simple-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  background: var(--navy-deep);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  padding: 0.6rem;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 10;
}
.simple-dropdown:hover .simple-dropdown-menu,
.simple-dropdown:focus-within .simple-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.simple-dropdown-menu a {
  display: block;
  color: var(--cream);
  opacity: 0.82;
  font-size: 0.86rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}
.simple-dropdown-menu a:hover { opacity: 1; background: rgba(247,242,233,0.06); color: var(--orange-soft); }
.simple-dropdown-caret { width: 10px; height: 10px; margin-left: 2px; vertical-align: -1px; transition: transform var(--transition); }
.simple-dropdown:hover .simple-dropdown-caret { transform: rotate(180deg); }

/* Mega dropdown */
.mega-dropdown { position: static; }
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-on-navy);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  padding: 2.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition);
}
.mega-dropdown:hover .mega-menu,
.mega-dropdown:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-menu-col h6 {
  color: var(--orange-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1rem;
}
.mega-menu-link {
  display: block;
  color: var(--cream);
  opacity: 0.8;
  font-size: 0.92rem;
  padding: 0.4rem 0;
}
.mega-menu-link:hover { opacity: 1; color: var(--orange-soft); padding-left: 4px; }

/* Search */
.nav-search-toggle { color: var(--cream); background: none; border: none; }
.search-overlay {
  position: fixed; inset: 0; background: rgba(5,29,36,0.97); z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner { width: min(700px, 90vw); }
.search-overlay input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line-on-navy);
  color: var(--cream); font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem);
  padding: 1rem 0;
}
.search-overlay input:focus { outline: none; border-color: var(--orange); }
.search-overlay input::placeholder { color: rgba(247,242,233,0.4); }
.search-close { position: absolute; top: 2rem; right: 2rem; color: var(--cream); background: none; border: none; font-size: 1.6rem; }
.search-suggestions { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(247,242,233,0.55); letter-spacing: 0.05em; }
.search-suggestions a { color: var(--orange-soft); margin-right: 1rem; }

/* Mobile offcanvas */
.kw-offcanvas { width: min(380px, 88vw); background: var(--navy-deep); }
.kw-offcanvas .offcanvas-header { border-bottom: 1px solid var(--line-on-navy); padding: 1.5rem; }
.kw-offcanvas .btn-close { filter: invert(1); }
.kw-offcanvas .nav-link { color: var(--cream); padding: 0.9rem 0; border-bottom: 1px solid var(--line-on-navy); font-size: 1.05rem; font-family: var(--font-display); }
.kw-offcanvas .nav-link:hover { color: var(--orange-soft); }
.offcanvas-sub { padding-left: 1rem; font-size: 0.85rem !important; font-family: var(--font-body) !important; opacity: 0.75; border-bottom: none !important; padding-top: 0.4rem; padding-bottom: 0.4rem; }

/* ==========================================================================
   Hero — 3-slide carousel
   ========================================================================== */
.hero-full {
  position: relative;
  z-index: 0; /* establishes a local stacking context so the layers below stay contained */
  min-height: 100vh;
  background-color: var(--navy);
  color: var(--cream);
  overflow: hidden;
}
#heroCarousel, #heroCarousel .carousel-inner, #heroCarousel .carousel-item {
  min-height: 100vh;
}
#heroCarousel .carousel-item { position: relative; }

.hero-slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 1; opacity: 0.85;
}
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(5,29,36,0.78) 0%, rgba(5,29,36,0.5) 45%, rgba(5,29,36,0.92) 100%);
}
.hero-slide-content {
  position: relative; z-index: 3;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 6rem;
}
.hero-eyebrow { color: var(--orange-soft); }
.hero-full h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  max-width: 14ch;
  margin-bottom: 1.2rem;
}
.hero-full h1 em { font-style: italic; color: var(--orange-soft); }
.hero-rule { width: 70px; height: 2px; background: var(--orange); margin: 0 0 1.4rem; }
.hero-full .lead { font-size: 1.08rem; max-width: 40ch; color: rgba(247,242,233,0.82); margin-bottom: 2.2rem; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Persistent decorative seal, sits above every slide */
.hero-seal-mark { position: absolute; top: 6.5rem; right: 4rem; width: 110px; height: 110px; opacity: 0.5; z-index: 4; pointer-events: none; }

/* Custom carousel controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 56px; height: 56px; border-radius: 50%;
  top: 50%; transform: translateY(-50%); bottom: auto;
  background: rgba(247,242,233,0.08);
  border: 1px solid rgba(247,242,233,0.25);
  opacity: 1; z-index: 5;
  transition: all var(--transition);
}
#heroCarousel .carousel-control-prev { left: 1.5rem; }
#heroCarousel .carousel-control-next { right: 1.5rem; }
#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover { background: var(--orange); border-color: var(--orange); }
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }

/* Custom indicators — thin lines, orange when active */
#heroCarousel .carousel-indicators { z-index: 5; bottom: 2.25rem; margin-bottom: 0; gap: 0.6rem; }
#heroCarousel .carousel-indicators [data-bs-target] {
  width: 32px; height: 3px; border-radius: 2px;
  background-color: rgba(247,242,233,0.35);
  border: none; opacity: 1; transition: background-color var(--transition);
}
#heroCarousel .carousel-indicators .active { background-color: var(--orange); }


/* Non-home page hero (breadcrumb header) */
.page-header {
  background: var(--navy-deep);
  padding: 10.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.page-header h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 0.75rem; }
.breadcrumb-kw { font-size: 0.85rem; color: rgba(247,242,233,0.6); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb-kw a { color: rgba(247,242,233,0.75); }
.breadcrumb-kw a:hover { color: var(--orange-soft); }
.breadcrumb-kw .sep { opacity: 0.5; }
.breadcrumb-kw .current { color: var(--orange-soft); }

/* About preview image frame — self-contained, cannot overflow its column */
.about-preview-visual {
  position: relative;
  overflow: hidden; /* hard containment: nothing inside can ever exceed this box */
}
.about-preview-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 1.25rem 1.25rem 0 0; /* leaves room inside the box for the accent border to show */
}
.about-preview-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-preview-visual::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: calc(100% - 1.25rem);
  height: calc(100% - 1.25rem);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  z-index: 0;
}
@media (max-width: 991px) {
  .about-preview-frame { margin: 0.75rem 0.75rem 0 0; }
  .about-preview-visual::before { width: calc(100% - 0.75rem); height: calc(100% - 0.75rem); }
}

/* ==========================================================================
   Cards — Practice Areas
   ========================================================================== */
.practice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  transition: all var(--transition);
}
.practice-card:hover { transform: translateY(-6px); border-top-color: var(--orange); box-shadow: var(--shadow-lift); }
.practice-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: all var(--transition);
}
.practice-card:hover .practice-icon { background: var(--orange); color: var(--white); }
.practice-icon svg { width: 24px; height: 24px; }
.practice-card h3, .practice-card h5 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.practice-card p { font-size: 0.92rem; margin-bottom: 1.25rem; }

/* Attorney cards */
.attorney-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: all var(--transition); height: 100%; }
.attorney-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.attorney-photo { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.attorney-card:hover .attorney-photo img { transform: scale(1.06); }
.attorney-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,46,56,0.55), transparent 45%); }
.attorney-social { position: absolute; bottom: 1rem; left: 1rem; display: flex; gap: 0.5rem; }
.attorney-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(247,242,233,0.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: var(--cream); }
.attorney-social a:hover { background: var(--orange); }
.attorney-social svg { width: 14px; height: 14px; }
.attorney-info { padding: 1.6rem; }
.attorney-info h3, .attorney-info h5 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.attorney-position { color: var(--orange); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.attorney-meta { font-size: 0.8rem; color: var(--charcoal); opacity: 0.65; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.85rem; margin-top: 0.85rem; }

/* Stats counter */
.stats-band { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.stat-item { text-align: center; padding: 1rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--orange-soft); font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-top: 0.6rem; }

/* Case study cards */
.case-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; height: 100%; transition: all var(--transition); }
.case-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-5px); }
.case-card-body { padding: 2rem; }
.case-tag { display: inline-block; background: var(--beige); color: var(--navy); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 30px; margin-bottom: 1rem; }
.case-outcome { border-left: 3px solid var(--orange); padding-left: 1rem; margin-top: 1.2rem; font-size: 0.9rem; }
.case-outcome strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1rem; }

/* Testimonials */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.75rem; box-shadow: var(--shadow-card); text-align: center; max-width: 780px; margin-inline: auto; }
.testimonial-stars { color: var(--orange); font-size: 1rem; margin-bottom: 1.2rem; letter-spacing: 0.2em; }
.testimonial-quote { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--navy); font-style: italic; line-height: 1.5; margin-bottom: 1.8rem; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }
.testimonial-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; opacity: 0.6; }
.testimonial-mini { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); height: 100%; }

#testimonialCarousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background: var(--beige); opacity: 1; }
#testimonialCarousel .carousel-indicators .active { background: var(--orange); }
.carousel-nav-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition); }
.carousel-nav-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* CTA section */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 4rem;
}
.cta-band h2 { color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-band .seal-watermark { top: -20%; right: -6%; width: 340px; }

/* FAQ accordion */
.kw-accordion .accordion-item { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.kw-accordion .accordion-button {
  background: transparent; color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  padding: 1.6rem 0; box-shadow: none;
}
.kw-accordion .accordion-button::after { filter: none; }
.kw-accordion .accordion-button:not(.collapsed) { color: var(--orange); }
.kw-accordion .accordion-body { padding: 0 0 1.8rem; font-size: 0.95rem; opacity: 0.85; }
.faq-search-input { border-radius: 30px; padding: 0.9rem 1.6rem; border: 1px solid var(--line); background: var(--white); }
.faq-search-input:focus { border-color: var(--orange); box-shadow: none; }
.faq-category-pill { border: 1px solid var(--line); background: var(--white); color: var(--charcoal); border-radius: 30px; padding: 0.5rem 1.2rem; font-size: 0.85rem; font-weight: 600; transition: all var(--transition); }
.faq-category-pill.active, .faq-category-pill:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* Newsletter / consultation banner */
.consult-banner { background: var(--beige); }
.consult-banner .form-control { border-radius: var(--radius); border: 1px solid var(--line); padding: 0.85rem 1.1rem; background: var(--white); }
.consult-banner .form-control:focus { border-color: var(--orange); box-shadow: none; }

/* Google map */
.map-frame-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); filter: grayscale(0.35) contrast(1.05); }
.map-frame-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Footer */
.kw-footer { background: var(--navy-deep); color: rgba(247,242,233,0.75); padding: 5.5rem 0 0; position: relative; overflow: hidden; }
.kw-footer h6 { color: var(--cream); font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 1.4rem; }
.kw-footer a { color: rgba(247,242,233,0.7); font-size: 0.92rem; }
.kw-footer a:hover { color: var(--orange-soft); }
.footer-link-list li { margin-bottom: 0.7rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); }
.footer-bottom { border-top: 1px solid var(--line-on-navy); margin-top: 4rem; padding: 1.6rem 0; font-size: 0.8rem; opacity: 0.55; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-on-navy); display: inline-flex; align-items: center; justify-content: center; margin-right: 0.5rem; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; }

/* Back to top */
#backToTop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--cream); border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--orange); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: white; }

/* Reveal-on-scroll (AOS-style, custom, no dependency) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.48s; }

/* Timeline (About) */
.kw-timeline { position: relative; padding-left: 2.5rem; }
.kw-timeline::before { content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -2.5rem; top: 0.35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); transform: translateX(-4.5px); }
.timeline-year { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); display: block; margin-bottom: 0.4rem; }

/* Values grid */
.value-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.value-item h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-number { font-family: var(--font-display); font-size: 0.9rem; color: var(--orange); margin-bottom: 0.5rem; display: block; }

/* Awards / partners strip */
.logo-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 3rem 4rem; justify-content: center; opacity: 0.65; }
.logo-strip img { height: 34px; filter: grayscale(1); }

/* Office gallery */
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery-item img { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* Careers */
.job-item { background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem 2rem; box-shadow: var(--shadow-card); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.job-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.job-meta { font-size: 0.82rem; opacity: 0.6; }
.job-meta span { margin-right: 1rem; }
.benefit-item { text-align: center; padding: 2rem 1rem; }
.benefit-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--beige); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; }

/* Contact page */
.contact-info-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); height: 100%; }
.contact-info-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--orange-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.form-floating-kw .form-control, .form-floating-kw .form-select { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); padding: 1rem 1.1rem; min-height: 54px; }
.form-floating-kw .form-control:focus, .form-floating-kw .form-select:focus { border-color: var(--orange); box-shadow: none; }
.form-floating-kw textarea.form-control { min-height: 130px; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: #d64545; }
.invalid-feedback { font-size: 0.78rem; }
.form-label-kw { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }

/* 404 */
.error-404 { min-height: 100vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--navy); opacity: 0.12; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%); z-index: 0; white-space: nowrap; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: white; padding: 0.8rem 1.4rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Utility divider */
.hr-brand { width: 60px; height: 2px; background: var(--orange); border: none; margin: 1.5rem 0; }
