/* ==========================================================================
   SilentHome® Pure Static Design System
   Architectural Soundproof Solution — Master UI/UX Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Architectural Color Tokens */
  --color-brand-blue-dark: #0D2B55;
  --color-brand-blue-darker: #0B192C;
  --color-brand-blue: #1E88E5;
  --color-brand-blue-hover: #1565C0;
  --color-brand-blue-light: #E3F2FD;
  
  --color-acoustic-teal: #1E88E5;
  --color-acoustic-teal-light: #E0F2F1;
  --color-acoustic-teal-hover: #028090;

  /* Neutral Surface Tokens */
  --color-bg-body: #FFFFFF;
  --color-bg-surface: #F8FAFC;
  --color-bg-surface-elevated: #FFFFFF;
  --color-bg-dark: #0B192C;
  --color-bg-dark-card: #1E293B;

  /* Typography Colors */
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-inverse: #FFFFFF;

  /* Borders & Accents */
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  --color-success: var(--color-brand-blue);
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Typography Families */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-body);

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 20px -3px rgba(13, 43, 85, 0.08), 0 4px 6px -2px rgba(13, 43, 85, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(13, 43, 85, 0.12), 0 10px 10px -5px rgba(13, 43, 85, 0.04);

  /* Spacing Scale Tokens */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 5rem;     /* 80px */

  /* Radii Tokens */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Base Resets & Global Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility: Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-brand-blue-dark);
  color: white;
  padding: 0.875rem 1.5rem;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-xl);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-brand-blue);
}

:focus-visible {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Containers & Section Padding */
.container-main {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-padding {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
}

/* Responsive Grid Utilities */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Header & Navbar Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
  flex-wrap: nowrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-brand-blue-dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 50px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a,
.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 0.35rem 0.2rem;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-blue);
}

.nav-links a.active::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-blue);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta .btn-primary {
  padding: 0.5rem 0.9rem;
  font-size: 0.825rem;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.35rem;
  color: var(--color-brand-blue-dark);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 1180px) and (min-width: 992px) {
  .nav-links {
    gap: 0.7rem;
  }
  .nav-links a,
  .nav-link {
    font-size: 0.8rem;
  }
  .navbar-brand img {
    height: 44px;
  }
  .nav-cta .btn-primary {
    padding: 0.45rem 0.75rem;
    font-size: 0.785rem;
  }
}

@media (max-width: 991px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 84%;
  max-width: 360px;
  height: 100vh;
  background-color: white;
  z-index: 1100;
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 25, 44, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Breadcrumbs Styling (SEO & SXO) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-brand-blue);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-text-muted);
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* GEO / LLMO AI Answer Box Component */
.geo-qa-box {
  background-color: white;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand-blue);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.geo-question {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand-blue-dark);
  margin-bottom: 0.75rem;
}

.geo-answer-direct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  background: var(--color-brand-blue-light);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
}

.geo-explanation {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Typography Hierarchy Scale */
.text-hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.text-section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-brand-blue-dark);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .text-hero-title { font-size: 2rem; }
  .text-section-title { font-size: 1.6rem; }
}

/* Buttons & Touch Targets (Min 48px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  min-width: 48px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-brand-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.35);
}

.btn-primary {
  background-color: var(--color-brand-blue);
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-brand-blue-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-border);
  background-color: white;
  color: var(--color-text-primary);
}

.btn-outline:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  background-color: var(--color-brand-blue-light);
}

.btn-primary {
  background-color: var(--color-brand-blue);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-brand-blue-hover);
  transform: translateY(-2px);
}

/* Hero Actions Side-by-Side Alignment */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.hero-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.875rem 1.25rem;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    white-space: normal;
    width: 100%;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-blue {
  background-color: rgba(30, 136, 229, 0.15);
  color: #1E88E5;
  border: 1px solid rgba(30, 136, 229, 0.25);
}

.badge-teal {
  background-color: rgba(30, 136, 229, 0.15);
  color: #1E88E5;
  border: 1px solid rgba(30, 136, 229, 0.25);
}

section[style*="linear-gradient"] .badge,
section[style*="linear-gradient"] .badge-teal,
section[style*="linear-gradient"] .badge-blue {
  background: rgba(30, 136, 229, 0.2) !important;
  color: #64B5F6 !important;
  border: 1px solid rgba(100, 181, 246, 0.3) !important;
}

.badge-dark {
  background-color: var(--color-brand-blue-dark);
  color: white;
}

/* Architectural Card System */
.card {
  background-color: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 136, 229, 0.3);
}

/* Forms & Input Touches (Min 48px) */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  min-height: 48px;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: white;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

/* Accordion Component */
.accordion-item {
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background-color: white;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-left-color: var(--color-brand-blue);
}

.accordion-header {
  width: 100%;
  padding: 1.1rem 1.25rem;
  min-height: 52px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brand-blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  display: none;
  line-height: 1.65;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-icon {
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Floating WhatsApp Button with Subtle Pulse */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  background-color: var(--color-brand-blue);
  color: white;
  border-radius: var(--radius-full);
  padding: 14px 22px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.35);
  transition: transform var(--transition-fast);
  animation: wa-pulse 3s infinite;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.float-wa:hover {
  transform: scale(1.06);
  animation: none;
}

/* Sticky Mobile Bottom Bar (Conversion CRO P0) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 43, 85, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 1rem;
  z-index: 980;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

/* Process Flow Step Cards */
.process-step-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.process-step-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-brand-blue-light);
  color: var(--color-brand-blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Staggered 4-Step Process Section (Refined from User Reference Image) */
.process-section-bg {
  background-color: #F9F7F2;
  padding: 4.5rem 0 5.5rem;
}

.process-staggered-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.process-staggered-card {
  background: white;
  border-radius: 16px;
  padding: 1.85rem 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.process-staggered-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(13, 43, 85, 0.09);
}

/* Alternating Vertical Offset (Step 1 & 3 higher, Step 2 & 4 lower) */
@media (min-width: 992px) {
  .process-staggered-card:nth-child(even) {
    margin-top: 2.75rem;
  }
}

.step-action-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.step-circle-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-brand-blue-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(13, 43, 85, 0.22);
}

.step-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brand-blue-dark);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.step-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Process Arrow Indicators */
.process-arrow {
  position: absolute;
  width: 42px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 991px) {
  .process-staggered-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .process-staggered-card:nth-child(even) {
    margin-top: 0;
  }
  .process-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-staggered-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Architectural Comparison Table */
.architectural-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.architectural-table th {
  background-color: var(--color-brand-blue-dark);
  color: white;
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-align: left;
}

.architectural-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.architectural-table tr:nth-child(even) td {
  background-color: var(--color-bg-surface);
}

/* Footer Styling */
.site-footer {
  background-color: var(--color-brand-blue-darker);
  color: white;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
