/* ===========================================================
   QSTRUCTS SYSTEMS - Brand Identity Design System v2.0
   Brand Colors extracted from official logo:
     Navy Blue    #1E3A6E  - "QSTRUCTS" / Q-ring
     Deep Burgundy #7B1A1A  - "SYSTEMS"
     Copper Amber  #C8622A  - Inner Q accent (gradient)
   =========================================================== */

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

:root {
  /* Brand Core */
  --navy: #1E3A6E;
  --navy-dark: #122244;
  --navy-mid: #2A4D8F;
  --navy-light: #3D6BB5;

  --burgundy: #7B1A1A;
  --burgundy-dark: #541111;
  --burgundy-mid: #9B2020;
  --burgundy-light: #C23030;

  --copper: #C8622A;
  --copper-dark: #8B3A12;
  --copper-light: #E08040;

  /* Derived UI Colors */
  --bg-body: #F5F6F9;
  --bg-white: #FFFFFF;
  --bg-light: #EDF0F7;
  /* faint navy tint */
  --bg-dark-section: #0E1F40;
  /* deep navy for dark sections */

  --text-heading: #0D1F3C;
  /* near-navy, near-black */
  --text-body: #2D3748;
  /* slate dark - great on white */
  --text-muted: #475569; /* darkened from #64748B: that shade lands at ~4.2-4.4:1 on the site's light backgrounds, just under WCAG AA's 4.5:1 for normal text */
  /* slate medium - accessible */
  --text-on-dark: #FFFFFF;
  --text-on-dark-sub: rgba(255, 255, 255, 0.78);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 58, 110, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 58, 110, 0.12);
  --shadow-lg: 0 20px 50px rgba(30, 58, 110, 0.16);
  --shadow-card: 0 4px 16px rgba(30, 58, 110, 0.07);
  --shadow-card-hover: 0 16px 48px rgba(30, 58, 110, 0.14);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--navy-dark) 0%, #091629 55%, #1a0f28 100%);
  --grad-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  --grad-burgundy: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  --grad-copper: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  --grad-accent: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 60%, var(--burgundy-mid) 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--burgundy-dark);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Layout */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

.section-padding-sm {
  padding: 3rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  min-height: 48px;
  touch-action: manipulation;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

/* Primary - Burgundy (on light/white bg) */
.btn-primary {
  background: var(--grad-burgundy);
  color: #fff;
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 26, 26, 0.30);
}

/* Outline Navy - for use on light bg */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* Outline White - for use on dark bg */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Outline Burgundy - CTA secondary on light bg */
.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-outline:hover {
  background: var(--burgundy);
  color: #fff;
}

/* Copper accent CTA */
.btn-copper {
  background: var(--grad-accent);
  color: #fff;
  border-color: var(--copper);
}

.btn-copper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 98, 42, 0.35);
  color: #fff;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(30, 58, 110, 0.08);
  box-shadow: 0 2px 12px rgba(30, 58, 110, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}

/* Logo - image version */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 9999;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
}

/* Mobile Full-Screen App Menu */
@media (max-width: 1023px) {
  /* The navbar's backdrop-filter makes it the containing block for this
     fixed panel, so top/height resolve against the navbar - not the
     viewport. top:100% therefore means "directly under the navbar", and the
     usable height is measured into --nav-panel-height by the nav script. */
  .nav-links.open {
    position: fixed;
    top: 100%; left: 0; right: 0;
    height: var(--nav-panel-height, 80vh);
    width: 100%; max-width: none;
    background: #ffffff;
    z-index: 9998;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5rem 0 3rem;
    gap: 0;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.2s ease-out;
  }

  /* Keep the page behind the open menu still, and get the floating
     WhatsApp bubble (z-index 1000, above this panel) out of the way. */
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .floating-whatsapp {
    display: none;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open a {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--navy) !important;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background .2s;
    text-decoration: none;
    box-sizing: border-box;
  }
  
  .nav-links.open a:hover,
  .nav-links.open a.active {
    background: #f9f9fa;
    color: var(--burgundy) !important;
  }

  .nav-links.open .nav-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Services Mega Menu (mobile/tablet): a nested card, not more top-level rows */
  .nav-links.open .nav-mega {
    display: none;
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    min-width: 0;
    box-shadow: none;
    border: 1px solid rgba(30, 58, 110, 0.10);
    border-radius: var(--r-md);
    background: #f7f8fb;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0.5rem 1.5rem 0.75rem;
    padding: 0 1rem;
    align-self: stretch;
  }

  .nav-item.dropdown-open .nav-mega {
    display: grid;
  }

  .nav-item > a i {
    transition: transform .2s ease;
  }

  .nav-item.dropdown-open > a i {
    transform: rotate(180deg);
  }

  .nav-mega-intro,
  .nav-mega-col {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 58, 110, 0.09);
  }

  .nav-mega-intro {
    border-right: none;
    padding-right: 0;
  }

  .nav-mega-col:last-child {
    border-bottom: none;
  }

  .nav-mega-intro h3 {
    font-size: 1rem;
  }

  /* Neutralize the full-width row treatment the mobile menu gives every link */
  .nav-links.open .nav-mega a {
    border-bottom: none;
    width: auto;
  }

  /* Sub-links: accent rail for hierarchy, 44px minimum touch target */
  .nav-links.open .nav-mega-col > a:not(.nav-mega-col-title) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0 0.5rem 0.85rem;
    font-size: 0.95rem;
    border-left: 2px solid rgba(30, 58, 110, 0.14);
  }

  .nav-links.open .nav-mega-col > a:not(.nav-mega-col-title):hover,
  .nav-links.open .nav-mega-col > a:not(.nav-mega-col-title):active {
    border-left-color: var(--burgundy);
    background: rgba(123, 26, 26, 0.04) !important;
  }

  .nav-links.open .nav-mega-intro-link,
  .nav-links.open .nav-mega-col-title {
    min-height: 44px;
  }


  .nav-links.open a.btn-copper,
  .nav-links.open a.btn-outline {
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem 0.5rem;
    text-align: center;
    border-radius: var(--r-md);
    padding: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
  }
  
  .nav-links.open a.btn-copper {
    margin: 0.5rem 1.5rem 2rem;
    border: none;
    background: var(--grad-accent);
    color: #fff !important;
  }
  
  .nav-links.open a.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy) !important;
  }
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-heading);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
  background: rgba(123, 26, 26, 0.06);
}


/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 9999;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5.5rem 0 3.5rem;
  background: var(--navy);
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 6rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 110, 0.85) 0%, rgba(14, 31, 64, 0.95) 100%);
  z-index: 1;
}

.hero-shape-burgundy {
  position: absolute;
  top: -5%;
  right: -50%;
  width: 150vw;
  height: 150vw;
  background: var(--burgundy);
  border-radius: 50%;
  z-index: 2;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  animation: pulseShape 15s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
  .hero-shape-burgundy {
    top: -10%;
    right: -25%;
    width: 70vw;
    height: 120vh;
    min-width: 600px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
}

@keyframes pulseShape {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(-3deg); }
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
  }
}

.hero-content {
  position: relative;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 8vw, 4rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero h1 .brand-q {
  color: var(--copper-light);
}

.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: float 6s ease-in-out infinite;
  aspect-ratio: 4/3;
  z-index: 4;
}

.hero-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  opacity: 0;
  animation: heroImageFade 20s ease-in-out infinite;
}

.hero-image-card img:nth-child(1) {
  animation-delay: 0s;
}

.hero-image-card img:nth-child(2) {
  animation-delay: 5s;
}

.hero-image-card img:nth-child(3) {
  animation-delay: 10s;
}

.hero-image-card img:nth-child(4) {
  animation-delay: 15s;
}

.hero-image-card img:only-child {
  position: relative;
  opacity: 1;
  animation: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes heroImageFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

.hero h1 .brand-sys {
  color: #fff;
}

.hero>.container>.hero-content>p,
.hero p.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  padding: 0.4rem 1rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  background: rgba(200, 98, 42, 0.10);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
  margin-bottom: 0.85rem;
}

.section-header h2 {
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(30, 58, 110, 0.06);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  color: inherit;
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--text-heading);
}

.card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--grad-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(30, 58, 110, 0.22);
}

/* Product Cards */
.product-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.05);
  transition: all .28s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.product-card-body {
  padding: 1.4rem;
}

.product-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}

.product-card-body .price {
  color: var(--burgundy);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

/* Service Hero */
.service-hero {
  background: var(--grad-navy);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 98, 42, 0.14) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.service-hero h1,
.service-hero h2,
.service-hero h3 {
  color: #fff;
}

.service-hero p {
  color: rgba(255, 255, 255, 0.80);
}

/* Dark Section */
.section-dark {
  background: var(--bg-dark-section);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: var(--text-on-dark-sub);
}

/* Newsletter Section */
.newsletter-section {
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 26, 26, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid rgba(30, 58, 110, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--navy);
  color: #fff;
}

th,
td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 58, 110, 0.06);
}

th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

tr:hover {
  background: rgba(30, 58, 110, 0.03);
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid rgba(30, 58, 110, 0.15);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 5rem 0 2rem;
  margin-top: 0;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.site-footer h3 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.70);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover {
  color: var(--copper-light);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.40);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-burgundy {
  color: var(--burgundy) !important;
}

.text-copper {
  color: var(--copper) !important;
}

.text-white {
  color: #fff !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-light {
  background: var(--bg-light);
}

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

.bg-navy {
  background: var(--navy-dark);
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* Eyebrow / Tag */
.eyebrow-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  background: rgba(200, 98, 42, 0.10);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
  margin-bottom: 0.85rem;
}

.eyebrow-tag-navy {
  color: var(--navy);
  background: rgba(30, 58, 110, 0.09);
}

.eyebrow-tag-white {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.10);
}

/* Testimonial / Blockquote */
blockquote.card {
  border-left: 4px solid var(--copper);
  font-style: italic;
}

blockquote.card footer {
  margin-top: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--burgundy);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
}

/* Divider */
.section-divider {
  height: 4px;
  width: 60px;
  background: var(--grad-accent);
  border-radius: var(--r-full);
  margin: 0.75rem auto 1.5rem;
}

.section-divider-left {
  margin-left: 0;
}

/* Responsive Breakpoints */

/* LG (1024px+) */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 0.5rem; /* slightly increased gap for better breathing room */
    align-items: center;
  }

  .hamburger {
    display: none;
  }
  
  .d-lg-none {
    display: none !important;
  }
}

/* MD (768px+) */
@media (min-width: 768px) {

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .section-padding {
    padding: 6rem 0;
  }
}

/* LG (1024px+) */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .service-hero {
    padding: 7rem 0;
  }
}

/* XL (1440px+) */
@media (min-width: 1440px) {
  .hero {
    padding: 11rem 0 7.5rem;
  }

  .section-padding {
    padding: 7rem 0;
  }
}

/* Accessibility */
*:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--burgundy);
  color: #fff;
  padding: 0.6rem 1.2rem;
  z-index: 9999;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* Visually hidden — accessible to screen readers only (A11Y-02) */
.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;
}

/* Images */
.hero-img {
  border-radius: var(--r-xl);
  box-shadow: 0 30px 70px rgba(14, 31, 64, 0.28);
  object-fit: cover;
  width: 100%;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.30s;
}

.delay-3 {
  animation-delay: 0.45s;
}

/* Redesign Additions */

/* Top Bar */
.topbar {
  background: var(--burgundy-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-contacts a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color .2s;
  font-size: 0.8rem;
}

.topbar-contacts a:hover {
  color: var(--copper-light);
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.75rem;
  transition: background .2s, color .2s;
}

.topbar-socials a:hover {
  background: var(--copper);
  color: #fff;
}

/* Sticky Nav (now below topbar) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Dropdown Nav */
.nav-item {
  position: relative;
}

.nav-item>a {
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  z-index: 300;
  border: 1px solid rgba(30, 58, 110, 0.07);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-sm);
  color: var(--text-heading) !important;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent !important;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(123, 26, 26, 0.07) !important;
  color: var(--burgundy) !important;
}

/* Services Mega Menu (desktop) */
@media (min-width: 1024px) {
  .nav-mega {
    display: none;
    left: 0;
    transform: none;
    min-width: 640px;
    width: max-content;
    max-width: 720px;
    padding: 1.75rem;
    grid-template-columns: 200px 1fr 1fr;
    gap: 0 2rem;
  }

  .nav-item:hover .nav-mega,
  .nav-item:focus-within .nav-mega {
    display: grid;
  }

  .nav-mega-intro {
    border-right: 1px solid rgba(30, 58, 110, 0.08);
    padding-right: 1.75rem;
  }
}

.nav-mega-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

.nav-mega-intro h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0 0 1rem;
}

.nav-mega-intro-link {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  padding: 0 !important;
  background: transparent !important;
}

.nav-mega-intro-link:hover {
  color: var(--burgundy) !important;
}

.nav-mega-col-title {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
  padding: 0 !important;
  background: transparent !important;
  margin-bottom: 0.4rem;
}

.nav-mega-col-title i {
  color: var(--burgundy);
  font-size: 0.75em;
}

.nav-mega-col-title:hover {
  color: var(--burgundy) !important;
}

.nav-mega-col-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

.nav-mega-col a:not(.nav-mega-col-title) {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  font-weight: 500 !important;
  color: var(--text-body) !important;
  background: transparent !important;
  border-radius: 0;
  transition: color .15s, padding-left .15s;
}

.nav-mega-col a:not(.nav-mega-col-title):hover {
  color: var(--burgundy) !important;
  padding-left: 0.3rem;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  background: var(--grad-navy);
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 110, 0.6) 0%, rgba(14, 31, 64, 0.8) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.80);
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-hero .eyebrow-tag {
  margin-bottom: 0.75rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .page-hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    padding: 7rem 0 5rem;
  }
}

.page-hero-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  position: relative;
  z-index: 2;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Contact Strip */
.hero-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-contact-item .contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--copper-light);
}

.hero-contact-item .hero-contact-heading {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-family: 'Outfit', sans-serif;
}

.hero-contact-item p,
.hero-contact-item a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  margin: 0;
}

.hero-contact-item a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .hero-contact-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem 3rem;
  }
  .hero-contact-item:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Tab Switcher */
.tab-nav {
  display: flex;
  gap: 0;
  border-radius: var(--r-lg);
  background: rgba(30, 58, 110, 0.07);
  padding: 4px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 0.7rem 1rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--r-lg) - 4px);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
  line-height: 1.3;
}

.tab-btn.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 58, 110, 0.22);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Guiding Principles */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(30, 58, 110, 0.07);
  box-shadow: var(--shadow-sm);
}

.principle-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.principle-item h3 {
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.principle-item p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Cards (image-forward) */
.service-card-img {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.service-card-img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-card-img .card-thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-card-img .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card-img:hover .card-thumb img {
  transform: scale(1.05);
}

.service-card-img .card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-img h3 {
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card-img ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}

.service-card-img ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
}



/* Alternating Sections */
.alt-section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(30, 58, 110, 0.05);
}

.alt-section:last-of-type {
  border-bottom: none;
}

.alt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.alt-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/11;
}

.alt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alt-text .eyebrow-tag {
  margin-bottom: 0.6rem;
}

.alt-text h2 {
  margin-bottom: 1rem;
}

.alt-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.alt-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alt-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--text-body);
}

.alt-features li .fi {
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .alt-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .alt-section {
    padding: 5rem 0;
  }

  .alt-section.reverse .alt-img {
    order: -1;
  }
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.value-item {
  background: var(--bg-white);
  border-radius: var(--r-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.value-check {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--grad-burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.value-item h4 {
  color: var(--navy);
  font-size: 0.97rem;
  margin-bottom: 0.3rem;
}

.value-item p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 600px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Choose Us Section */
.choose-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.choose-us-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.choose-us-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.choose-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.choose-us-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}

.choose-us-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .choose-us-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

/* Mission / Vision Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.mission-card {
  border-radius: var(--r-lg);
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.mission-card.vision {
  background: var(--grad-navy);
}

.mission-card.mission {
  background: var(--grad-burgundy);
}

.mission-card h3 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.mission-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .mission-vision-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Why Qstructs Stands Out (Dark Panel) */
.why-us-section {
  background: var(--bg-dark-section);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 98, 42, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.why-us-header h2 {
  color: #fff;
}

.why-us-header p {
  color: var(--text-on-dark-sub);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  padding: 1.25rem;
  transition: background .25s;
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--grad-burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.why-item h3 {
  color: #fff;
  font-size: 0.97rem;
  margin-bottom: 0.25rem;
}

.why-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.87rem;
  margin: 0;
}

@media (min-width: 768px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Testimonial Carousel */
.testimonials-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.testimonial-slider-wrap {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .5s ease;
}

.testimonial-card {
  flex: 0 0 calc(100% - 0px);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card.t-white {
  background: #fff;
  border: 1px solid rgba(30, 58, 110, 0.08);
}

.testimonial-card.t-navy {
  background: var(--navy);
}

.testimonial-card.t-burgundy {
  background: var(--burgundy);
}

.testimonial-quote {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.3;
}

.t-white .testimonial-quote {
  color: var(--navy);
}

.t-navy .testimonial-quote {
  color: #fff;
}

.t-burgundy .testimonial-quote {
  color: #fff;
}

.testimonial-card p {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.t-white p {
  color: var(--text-body);
}

.t-navy p {
  color: rgba(255, 255, 255, 0.88);
}

.t-burgundy p {
  color: rgba(255, 255, 255, 0.88);
}

.testimonial-author {
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
}

.t-white .testimonial-author {
  color: var(--navy);
}

.t-navy .testimonial-author {
  color: var(--copper-light);
}

.t-burgundy .testimonial-author {
  color: #fff;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* A11Y-03: 44px minimum touch target. The visible dot is drawn on ::after
   at its original 8px size — .g-dot's background-clip trick doesn't work
   here because this dot is drawn with a border, and background-clip has no
   effect on borders, so it would render as a 44px ring instead. */
.t-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: transparent;
  cursor: pointer;
  border: none;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  transition: all .2s;
}

.t-dot.active::after {
  background: var(--burgundy);
  border-color: var(--burgundy);
  width: 24px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
  }

  .testimonial-track {
    flex-wrap: nowrap;
  }
}

/* Image Gallery Carousel */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #000;
  margin: 2rem 0;
}

.gallery-track {
  display: flex;
  transition: transform .5s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .gallery-slide { aspect-ratio: 16/9; }
}

@media (min-width: 1024px) {
  .gallery-slide { aspect-ratio: 16/7; }
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  transition: background .2s;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.gallery-btn:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.gallery-btn:hover {
  background: var(--copper);
  color: #fff;
}

.gallery-btn.prev {
  left: 1rem;
}

.gallery-btn.next {
  right: 1rem;
}

.gallery-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.75rem 0 0;
}

.g-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 58, 110, 0.25);
  cursor: pointer;
  border: none;
  transition: all .2s;
  padding: 0;
  /* A11Y-03: ensure 44px minimum touch target */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-clip: content-box;
  padding: 18px;
  -webkit-tap-highlight-color: transparent;
}

.g-dot:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.g-dot.active {
  background: var(--burgundy);
  width: 20px;
  border-radius: 4px;
}

/* Gallery slide as a clickable button (opens the lightbox) */
.gallery-slide-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.gallery-slide-btn:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: -3px;
}

.gallery-zoom-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 20, 35, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.gallery-slide-btn:hover .gallery-zoom-hint,
.gallery-slide-btn:focus-visible .gallery-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* Always show the hint on touch devices, where hover never fires */
@media (hover: none) {
  .gallery-zoom-hint {
    opacity: 1;
    transform: scale(1);
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* Image Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 12, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  -webkit-tap-highlight-color: transparent;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .2s;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--copper);
  border-color: var(--copper);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 3.5rem 0.5rem 4rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .lightbox-nav.lightbox-prev { left: 0.5rem; }
  .lightbox-nav.lightbox-next { right: 0.5rem; }
}

/* Product Section */
.products-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.products-sidebar {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.06);
  height: fit-content;
}

.products-sidebar h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.how-to-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.how-to-steps li {
  counter-increment: step;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 58, 110, 0.05);
  font-size: 0.87rem;
  color: var(--text-muted);
}

.how-to-steps li::before {
  content: counter(step);
  width: 22px;
  height: 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.products-main {
  min-width: 0;
}

.products-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.products-meta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.products-meta select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(30, 58, 110, 0.12);
  font-size: 0.88rem;
  color: var(--text-body);
  background: var(--bg-white);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .products-layout {
    grid-template-columns: 260px 1fr;
  }
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(30, 58, 110, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .2s;
}

.faq-question:hover {
  background: rgba(30, 58, 110, 0.03);
}

.faq-question.open {
  color: var(--burgundy);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 58, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform .25s ease;
  color: var(--navy);
}

.faq-question.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--burgundy);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 1.35rem;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0.25rem 0 1.25rem;
}

.faq-answer p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact Info Cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: -2rem 0 3rem;
}

.contact-card {
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.contact-card.c-white {
  background: #fff;
  border: 1px solid rgba(30, 58, 110, 0.08);
}

.contact-card.c-burgundy {
  background: var(--grad-burgundy);
}

.contact-card.c-navy {
  background: var(--grad-navy);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.c-white .contact-card-icon {
  background: rgba(30, 58, 110, 0.08);
  color: var(--navy);
}

.contact-card h2 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.c-white h4 {
  color: var(--navy);
}

.c-burgundy h4,
.c-navy h4 {
  color: #fff;
}

.contact-card p,
.contact-card a {
  font-size: 0.88rem;
  line-height: 1.6;
}

.c-white p,
.c-white a {
  color: var(--text-body);
}

.c-burgundy p,
.c-burgundy a,
.c-navy p,
.c-navy a {
  color: rgba(255, 255, 255, 0.88);
}

.contact-card a {
  text-decoration: none;
  display: block;
}

.contact-card a:hover {
  opacity: 0.8;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Form Section */
.contact-form-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.contact-form-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .contact-form-section {
    grid-template-columns: 1fr 1.4fr;
  }
}

/* Map Section */
.map-section {
  padding: 5rem 0;
}

.map-embed {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 58, 110, 0.07);
  margin-top: 1.5rem;
}

.map-embed iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Newsletter Bar */
.newsletter-bar {
  background: var(--grad-navy);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-bar::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 26, 26, 0.15) 0%, transparent 65%);
  border-radius: 50%;
}

.newsletter-bar h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-bar p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 0.93rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.50);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--copper-light);
  background: rgba(255, 255, 255, 0.14);
}

/* Blog Layout */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-featured-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-md);
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-featured h2 {
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr 0.6fr;
  }
}

.blog-sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-post {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(30, 58, 110, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.sidebar-post:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.sidebar-post-img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post h4 {
  font-size: 0.88rem;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.sidebar-post span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sidebar-post .blog-cat {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

/* Blog Detail */
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.blog-detail-layout > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .blog-detail-layout {
    grid-template-columns: 1fr 320px;
  }
}

.blog-article {
  overflow-x: auto;
}

.blog-article img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.blog-article h2 {
  margin: 2rem 0 0.75rem;
}

.blog-article h3 {
  margin: 1.75rem 0 0.6rem;
}

.blog-article p {
  margin-bottom: 1.1rem;
}

.blog-sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.06);
  margin-bottom: 1.5rem;
}

.blog-sidebar-widget h4 {
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--burgundy);
}

/* Comment Form */
.comment-form {
  margin-top: 3rem;
}

.comment-form h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(30, 58, 110, 0.08);
}

.comment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .comment-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.comment-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
}

.comment-checkbox input {
  width: auto;
  flex-shrink: 0;
}

/* Quote / Cart Table */
.quote-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.quote-page-layout > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .quote-page-layout {
    grid-template-columns: 1fr 300px;
  }
}

.quote-table-wrap {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.06);
}

@media (max-width: 640px) {
  .quote-table-wrap,
  .quote-sidebar-widget {
    padding: 1.25rem;
  }
}

.quote-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.quote-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.quote-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(30, 58, 110, 0.05);
  vertical-align: middle;
}

.quote-table tr:last-child td {
  border-bottom: none;
}

.quote-table .product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-table .product-cell img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.quote-table .product-cell a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.quote-table input[type="number"] {
  width: 70px;
  padding: 0.4rem 0.5rem;
  border: 1.5px solid rgba(30, 58, 110, 0.12);
  border-radius: var(--r-sm);
  text-align: center;
}

.quote-totals {
  background: rgba(30, 58, 110, 0.04);
  border-radius: var(--r-md);
  padding: 1.1rem 1rem;
  margin-top: 1rem;
}

.quote-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.93rem;
}

.quote-totals-row.total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--burgundy);
  border-top: 1px solid rgba(30, 58, 110, 0.10);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}

.quote-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.quote-sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30, 58, 110, 0.06);
  position: sticky;
  top: 90px;
}

.quote-sidebar-widget h4 {
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--burgundy);
}

.quote-howto {
  list-style: none;
  padding: 0;
}

.quote-howto li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 58, 110, 0.05);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quote-howto li strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

.radio-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
}

.radio-label input {
  accent-color: var(--burgundy);
}
/* --- App Screenshots Gallery ---------------------------- */
.app-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.app-screenshot-item {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.app-screenshot-item:hover {
  transform: translateY(-5px);
}

.app-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Animated Concentric Circles Components */
.animated-light-concentric-circles {
  position: relative;
  background-color: var(--bg-body, #F5F6F9);
  overflow: hidden;
  z-index: 1;
}

.animated-light-concentric-circles::before,
.animated-light-concentric-circles::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(30, 58, 110, 0.1);
  box-shadow: 
    0 0 0 10vw rgba(30, 58, 110, 0.02),
    0 0 0 20vw rgba(30, 58, 110, 0.04),
    0 0 0 30vw rgba(30, 58, 110, 0.02),
    0 0 0 40vw rgba(30, 58, 110, 0.04);
  z-index: -1;
  animation: ripple-out-light 8s infinite linear;
}

.animated-light-concentric-circles::after {
  animation-delay: -4s;
}

@keyframes ripple-out-light {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.animated-dark-concentric-circles {
  position: relative;
  background-color: var(--bg-dark-section, #0E1F40);
  overflow: hidden;
  z-index: 1;
}

.animated-dark-concentric-circles::before,
.animated-dark-concentric-circles::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(200, 98, 42, 0.15); /* Copper accent for dark */
  box-shadow: 
    0 0 0 10vw rgba(200, 98, 42, 0.03),
    0 0 0 20vw rgba(200, 98, 42, 0.06),
    0 0 0 30vw rgba(200, 98, 42, 0.03),
    0 0 0 40vw rgba(200, 98, 42, 0.06);
  z-index: -1;
  animation: ripple-out-dark 8s infinite linear;
}

.animated-dark-concentric-circles::after {
  animation-delay: -4s;
}

@keyframes ripple-out-dark {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Pulse ring uses transform/opacity (compositor-only) instead of animating
   box-shadow, which forces a repaint on every frame for the life of the page. */
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.6);
  animation: pulse-whatsapp 2s infinite;
  z-index: -1;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: white;
}

@keyframes pulse-whatsapp {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}


/* ─── Projects ──────────────────────────────────────────── */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(30, 58, 110, 0.15);
  background: #fff;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}

.project-filter:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.project-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.project-filter:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 58, 110, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
  -webkit-tap-highlight-color: transparent;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.project-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(13, 20, 35, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background .2s, transform .2s;
}

.project-card:hover .project-play-badge {
  background: var(--burgundy);
  transform: translate(-50%, -50%) scale(1.08);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
}

.project-card-body h2,
.project-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.project-card-body h2 a,
.project-card-body h3 a {
  color: var(--text-heading);
  text-decoration: none;
}

.project-card-body h2 a:hover,
.project-card-body h3 a:hover {
  color: var(--burgundy);
}

.project-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.project-card-link:hover {
  gap: 9px;
}

.project-card-link:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

/* Empty state */
.project-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.project-empty i {
  font-size: 3.5rem;
  color: var(--navy);
  opacity: 0.35;
  display: block;
  margin-bottom: 1rem;
}

.project-empty h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.project-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Detail page */
.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.project-back-link:hover {
  color: #fff;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.project-detail-layout > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .project-detail-layout {
    grid-template-columns: 1fr 320px;
  }
}

.project-article {
  overflow-x: auto;
}

.project-detail-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  background: #000;
}

.project-article h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.project-article h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
}

.project-article p,
.project-article li {
  color: var(--text-body);
  line-height: 1.75;
}

.project-article ul,
.project-article ol {
  margin: 0 0 1.25rem 1.25rem;
}

.project-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin: 1.5rem 0;
}

.project-facts {
  background: var(--bg-light);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1px solid rgba(30, 58, 110, 0.06);
  position: sticky;
  top: 6rem;
}

.project-facts h2 {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.project-facts dl {
  margin: 0;
}

.project-facts dl > div {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 58, 110, 0.08);
}

.project-facts dl > div:last-child {
  border-bottom: none;
}

.project-facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.project-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  word-break: break-word;
}

.project-related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(30, 58, 110, 0.08);
}

.project-related h2 {
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .project-facts {
    position: static;
    padding: 1.25rem;
  }
}
