/* ==========================================================================
   Sapphire Supreme Services - Master Stylesheet (Production Complete - Light Mode)
   Design System & Component Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Setup
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-light-tint: #f4faf9;
  
  --accent-primary: #19a7a0;
  --accent-secondary: #0d6f73;
  --accent-blue: #19a7a0;
  --accent-glow: rgba(25, 167, 160, 0.12);
  --accent-glow-strong: rgba(13, 111, 115, 0.2);
  
  --text-main: #111827;
  --text-muted: #667085;
  --text-dim: #94a3b8;
  
  --border: #e2e8f0;
  --border-focus: #19a7a0;
  --border-light: rgba(226, 232, 240, 0.8);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  
  --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 16px 36px rgba(17, 24, 39, 0.12);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1180px;
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 60px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Layout Helpers, Utility Classes & Buttons
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
  background-color: var(--bg-dark);
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

.section-head {
  margin-bottom: 50px;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #1f2937;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.25);
  color: #ffffff;
}

.btn-light {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-light:hover {
  background-color: var(--bg-card-alt);
  border-color: #cbd5e1;
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-secondary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(25, 167, 160, 0.25);
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

#mainNav {
  display: flex;
  align-items: center;
  gap: 28px;
}

#mainNav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

#mainNav a:hover {
  color: var(--accent-secondary);
}

#mainNav .btn {
  margin-left: 8px;
}

.menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
  color: var(--text-main);
}

.menu::before, .menu::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  left: 0;
  transition: var(--transition);
}

.menu::before { top: 6px; }
.menu::after { bottom: 6px; }

@media (max-width: 992px) {
  .menu {
    display: block;
  }
  
  #mainNav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  #mainNav.open {
    transform: translateX(0);
  }

  #mainNav a {
    font-size: 1.1rem;
    width: 100%;
    padding: 8px 0;
  }

  #mainNav .btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 100px 0 84px;
  background: radial-gradient(circle at 70% 20%, rgba(25, 167, 160, 0.06) 0%, transparent 60%), var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.showcase-header {
  margin-bottom: 24px;
}

.badge-status {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border: 1px solid rgba(13, 111, 115, 0.15);
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.workflow-step.active, .workflow-step:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.step-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-glow);
  color: var(--accent-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid rgba(13, 111, 115, 0.2);
}

.step-detail strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-detail p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. Trust Bar Section
   -------------------------------------------------------------------------- */
.trust-bar {
  background-color: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.trust-item b {
  display: block;
  font-size: 1.8rem;
  color: var(--accent-secondary);
  font-weight: 800;
  line-height: 1.1;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Services Grid & Interactive Cards
   -------------------------------------------------------------------------- */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .grid4 { grid-template-columns: 1fr; }
}

.service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.service:hover::after {
  opacity: 1;
}

.service .num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.service h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service ul {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.service li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.service li:last-child {
  margin-bottom: 0;
}

.service li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   8. Process & Benefits Sections
   -------------------------------------------------------------------------- */
.process-section {
  background-color: var(--bg-light-tint);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .process-timeline { grid-template-columns: 1fr; }
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(13, 111, 115, 0.15);
}

.process-card h4 {
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   9. Band, Two-Column & Field Report Cards
   -------------------------------------------------------------------------- */
.band {
  background-color: var(--bg-light-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .two {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.report-head b {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tag {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.row span {
  color: var(--text-muted);
}

.row b {
  color: var(--text-main);
  font-weight: 700;
}

.row b.score {
  color: var(--accent-secondary);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 576px) {
  .checklist { grid-template-columns: 1fr; }
}

.check {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   10. Remodels / Case Grid
   -------------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; }
}

.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.case.light {
  background: var(--bg-card-alt);
}

.case:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case h3 {
  margin-top: 10px;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   11. FAQ Accordions
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq details[open] {
  border-color: var(--border-focus);
  background: var(--bg-card-alt);
}

.faq summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  list-style: none;
  position: relative;
  padding-right: 50px;
  color: var(--text-main);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-secondary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. CTA Banner
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-light-tint));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
}

.cta h2 {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   13. Contact Section & Forms
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.direct-contact-card {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.direct-contact-card h4 {
  margin-bottom: 12px;
}

.contact-item-link {
  display: block;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-item-link:hover {
  color: var(--accent-secondary);
}

#contactForm label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  margin-top: 16px;
}

#contactForm label:first-of-type {
  margin-top: 0;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#contactForm textarea {
  min-height: 120px;
  resize: vertical;
}

#contactForm .btn {
  margin-top: 24px;
  width: 100%;
}

.notice {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.notice.success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.notice.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   14. Language Switchers & Floating Bars
   -------------------------------------------------------------------------- */
.desktop-lang-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .desktop-lang-float {
    display: none;
  }
}

.lang-switcher-group {
  display: inline-flex;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-btn svg {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 998;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: block;
  }
}

.bar-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.bar-btns .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.88rem;
}

.lang-select-mobile {
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   15. Modals & Overlay
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.modal-body h2 {
  margin-bottom: 16px;
}

.modal-body h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   16. Keyframe Animations & Transitions
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(25, 167, 160, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(25, 167, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 167, 160, 0); }
}

.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* --------------------------------------------------------------------------
   17. Accessibility & Print Stylesheet
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background-color: #ffffff;
    color: #000000;
  }
  
  header, footer, .desktop-lang-float, .mobile-sticky-bar {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
  }
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
footer {
  background-color: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 18px;
  font-weight: 800;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-col a:hover {
  color: var(--accent-secondary);
}

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.foot-bottom div {
  display: flex;
  gap: 20px;
}

.foot-bottom a {
  color: var(--text-dim);
  cursor: pointer;
}

.foot-bottom a:hover {
  color: var(--text-muted);
}