/* ==========================================================================
   KBNO Steuerberatungsgesellschaft mbH - Clean Stylesheet
   Modern, responsive, accessible vanilla CSS
   ========================================================================== */

:root {
  --primary: #5072a5;
  --primary-hover: #0046b8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(0, 94, 233, 0.15);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --text-main: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #005ee9;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --error: #ef4444;
  --error-bg: #fef2f2;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  list-style: none;
}

.text-nowrap {
  white-space: nowrap;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top bar */
.top-bar {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

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

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
}

.top-bar-info a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.top-bar-info a:hover {
  color: var(--primary);
}

.top-bar-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
/*  transition: box-shadow var(--transition-normal);*/
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.85rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background-color: var(--primary-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background-color: transparent;
  border: 1px solid var(--border-light);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  line-height: 0;
}

.mobile-toggle:hover,
.mobile-toggle[aria-expanded="true"] {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-glow);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 94, 233, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 94, 233, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--border-hover);
  color: var(--text-dark);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #f8fafc;
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

.section {
  padding-block: 5rem;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;

}

.section-title {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  /* padding-top: 2rem; */
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-banner {
  border-bottom-right-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-light);
  position: relative;
}

.hero-banner img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.045) translate(-1%, -0.6%);
  }
  100% {
    transform: scale(1.03) translate(0.8%, 0.4%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner img {
    animation: none;
    transform: none;
  }
}

.hero-content {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-glow);
}

.service-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-alt);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.service-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Feature Two-Column Blocks */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.feature-text .section-tag {
  margin-bottom: 0.75rem;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.feature-text p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-cta {
  margin-top: 1.5rem;
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(135deg, #005ee9 0%, #0040a8 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* Partners / Badges Section */
.partners-section {
  padding-block: 3.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.partners-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.partners-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-item {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  max-height: 52px;
  width: auto;
  filter: grayscale(10%);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.partner-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ==========================================================================
   Page Specific: Über uns
   ========================================================================== */

.page-hero {
  background-color: var(--bg-alt);
  padding-block: 3.5rem 3rem;
  border-bottom: 1px solid var(--border-light);
}

.page-hero-title {
  font-size: 2.75rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.highlight-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: 1.5rem;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--secondary-light);
}

/* Values Grid (Über uns: Unsere Grundsätze) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.value-card p {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Page Specific: Kontakt & Contact Form
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.contact-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-panel-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-panel-divider {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.contact-card-body p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contact-card-body a {
  font-weight: 600;
}

/* Contact Form */
.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-label .required-mark {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Modern Validation States */
.form-control.is-invalid {
  border-color: var(--error);
  background-color: #fffbfa;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.is-valid {
  border-color: var(--success);
}

.form-error-feedback {
  display: none;
  font-size: 0.825rem;
  color: var(--error);
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-control.is-invalid + .form-error-feedback {
  display: block;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--primary);
  margin-top: 0.2rem;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-label a {
  text-decoration: underline;
}

/* Submit container & spinner */
.form-submit-wrapper {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.spinner {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Notification Panel */
.form-success-alert {
  display: none;
  background-color: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-success-alert.show {
  display: block;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--success);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.form-success-alert h3 {
  color: #065f46;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success-alert p {
  color: #047857;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Page Specific: Text/Legal Content (Impressum & Datenschutz)
   ========================================================================== */

.legal-content {
  max-width: 860px;
  margin-inline: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.45rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-section h3 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  color: var(--text-main);
  line-height: 1.75;
}

.legal-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--secondary);
  color: #e2e8f0;
  border-top: 1px solid var(--secondary-light);
}

.footer-top {
  padding-block: 4rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  background-color: #ffffff;
  padding: 4px 8px;
  /* border-radius: var(--radius-sm); */
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-legal-sublinks {
  margin-top: 1.25rem;
}

.footer-legal-sublinks a {
  color: #ffffff;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Dropdown Menu for Mobile / Tablet */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 99;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
    align-items: stretch;
    padding: 0;
    margin: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
  }

  .nav-cta {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    white-space: normal;
  }

  /* Stacked Columns */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5vw, 2.25rem);
    word-break: normal;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 3.5rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 1.85rem);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .hero-banner img {
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.6rem, 6.5vw, 1.95rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .partners-list {
    gap: 2rem;
  }

  .partner-item img {
    max-height: 44px;
  }

  .footer-bottom-content {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
  background-color: var(--bg-alt);
}

.error-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.error-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.error-code {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: clamp(1.8rem, 4.5vw, 2.3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .error-page {
    padding: 3rem 1rem;
  }

  .error-card {
    padding: 2.5rem 1.25rem;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}

