/* ═══════════════════════════════════════
   שיפוצי אלון — Design Tokens & Styles
   ═══════════════════════════════════════ */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Fonts --- */
  --font-display: 'Cabinet Grotesk', 'Arial', sans-serif;
  --font-body: 'Switzer', 'Arial', sans-serif;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ═══════════════════════════════════════
   Color Palette — Deep Navy + Warm Amber
   ═══════════════════════════════════════ */

:root, [data-theme="light"] {
  --color-bg:          #F4F4F2;
  --color-surface:     #FFFFFF;
  --color-surface-2:   #FAFAF8;
  --color-border:      #D6D6D0;
  --color-divider:     #E0E0DC;

  --color-text:        #2A2A2A;
  --color-text-muted:  #6B6B6B;
  --color-text-faint:  #A0A0A0;
  --color-text-inverse:#FFFFFF;

  --color-primary:       #1B2D4F;
  --color-primary-hover: #14223B;
  --color-primary-light: #2A4270;

  --color-accent:       #D4842A;
  --color-accent-hover: #B8701F;
  --color-accent-light: #F0C78A;

  --color-success:     #437A22;
  --color-error:       #A13544;

  --shadow-sm: 0 1px 3px rgba(27, 45, 79, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 45, 79, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 45, 79, 0.12);
  --shadow-xl: 0 20px 60px rgba(27, 45, 79, 0.16);
}

[data-theme="dark"] {
  --color-bg:          #0f1114;
  --color-surface:     #141920;
  --color-surface-2:   #181c22;
  --color-border:      #2A3B5A;
  --color-divider:     #223050;

  --color-text:        #D8DDE8;
  --color-text-muted:  #8A95AD;
  --color-text-faint:  #556180;
  --color-text-inverse:#0F1521;

  --color-primary:       #4A7CC9;
  --color-primary-hover: #6090D8;
  --color-primary-light: #2A4270;

  --color-accent:       #E67E22;
  --color-accent-hover: #CF6C13;
  --color-accent-light: #3D2E18;

  --color-success:     #6DAA45;
  --color-error:       #DD6974;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:          #0f1114;
    --color-surface:     #141920;
    --color-surface-2:   #181c22;
    --color-border:      #2A3B5A;
    --color-divider:     #223050;
    --color-text:        #D8DDE8;
    --color-text-muted:  #8A95AD;
    --color-text-faint:  #556180;
    --color-text-inverse:#0F1521;
    --color-primary:       #4A7CC9;
    --color-primary-hover: #6090D8;
    --color-primary-light: #2A4270;
    --color-accent:       #E67E22;
    --color-accent-hover: #CF6C13;
    --color-accent-light: #3D2E18;
    --color-success:     #6DAA45;
    --color-error:       #DD6974;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}


/* ═══════════════════════════════════════
   Layout
   ═══════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ═══════════════════════════════════════
   Navigation
   ═══════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out),
              backdrop-filter 0.35s var(--ease-out);
}

.nav.scrolled {
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-text-inverse) !important;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive),
              color var(--transition-interactive);
}

.theme-toggle:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  right: 0;
  transition: transform 0.3s var(--ease-out);
}

.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { bottom: -7px; }

.mobile-toggle.active span { background: transparent; }
.mobile-toggle.active span::before { transform: rotate(45deg) translate(-5px, 5px); }
.mobile-toggle.active span::after { transform: rotate(-45deg) translate(-5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 500;
  border-bottom: 1px solid var(--color-divider);
}

.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .mobile-toggle { display: flex; }
}


/* ═══════════════════════════════════════
   Hero
   ═══════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(15, 21, 33, 0.9) 0%,
    rgba(15, 21, 33, 0.7) 40%,
    rgba(15, 21, 33, 0.3) 100%
  );
  z-index: 1;
}

[data-theme="light"] .hero-overlay,
:root:not([data-theme]) .hero-overlay {
  background: linear-gradient(
    to left,
    rgba(27, 45, 79, 0.92) 0%,
    rgba(27, 45, 79, 0.75) 40%,
    rgba(27, 45, 79, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(212, 132, 42, 0.15);
  border: 1px solid rgba(212, 132, 42, 0.3);
  color: var(--color-accent-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

[data-theme="light"] .hero-badge,
:root:not([data-theme]) .hero-badge {
  color: #F0C78A;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: transform var(--transition-interactive),
              background var(--transition-interactive),
              box-shadow var(--transition-interactive);
  white-space: nowrap;
}

.btn:active { transform: translateY(0) !important; }

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 132, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent);
}

[data-theme="light"] .hero-stat-value,
:root:not([data-theme]) .hero-stat-value {
  color: #F0C78A;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}


/* ═══════════════════════════════════════
   Section Headings
   ═══════════════════════════════════════ */

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 560px;
  margin-inline: auto;
}


/* ═══════════════════════════════════════
   Services — Creative Grid
   ═══════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
}

.service-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: default;
}

.service-card:nth-child(1) { grid-row: 1 / 3; min-height: 520px; }
.service-card:nth-child(2) { min-height: 250px; }
.service-card:nth-child(3) { min-height: 250px; }
.service-card:nth-child(4) { grid-column: 1 / -1; min-height: 300px; }

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 21, 33, 0.85) 0%, rgba(15, 21, 33, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  max-width: 40ch;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(1) { grid-row: auto; min-height: 300px; }
  .service-card:nth-child(4) { grid-column: auto; }
}


/* ═══════════════════════════════════════
   Before & After
   ═══════════════════════════════════════ */

.ba-projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.ba-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ba-image-side {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.ba-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-tag {
  position: absolute;
  top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 2;
}

.ba-tag-before {
  right: var(--space-4);
  background: rgba(161, 53, 68, 0.9);
  color: #FFFFFF;
}

.ba-tag-after {
  right: var(--space-4);
  background: rgba(67, 122, 34, 0.9);
  color: #FFFFFF;
}

.ba-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
}

.ba-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.ba-info p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.ba-details {
  display: flex;
  gap: var(--space-8);
}

.ba-detail-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ba-detail-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary);
}

@media (max-width: 700px) {
  .ba-card {
    grid-template-columns: 1fr;
  }
  .ba-image-side { min-height: 220px; }
}


/* ═══════════════════════════════════════
   Why Choose Us — Horizontal Strip
   ═══════════════════════════════════════ */

.why-section {
  background: var(--color-primary);
  color: #FFFFFF;
  overflow: hidden;
}

[data-theme="dark"] .why-section {
  background: #1A2A4A;
}

.why-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.why-item {
  padding: var(--space-10) var(--space-8);
  position: relative;
  text-align: center;
}

.why-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .why-item:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.12);
}

.why-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

[data-theme="dark"] .why-number {
  color: #E8993E;
}

.why-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.why-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

[data-theme="dark"] .why-desc {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .why-strip { grid-template-columns: repeat(2, 1fr); }
  .why-item:not(:last-child)::after { display: none; }
  .why-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 500px) {
  .why-strip { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   Testimonials
   ═══════════════════════════════════════ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   Gallery — Masonry
   ═══════════════════════════════════════ */

.gallery-grid {
  columns: 3;
  column-gap: var(--space-4);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-label {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
}

@media (max-width: 700px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 400px) {
  .gallery-grid { columns: 1; }
}


/* ═══════════════════════════════════════
   Contact
   ═══════════════════════════════════════ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.contact-info > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.contact-detail-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: #25D366;
  color: #FFFFFF;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  margin-top: var(--space-6);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive);
}

.form-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-12);
}

[data-theme="dark"] .footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-4);
  max-width: 30ch;
}

[data-theme="dark"] .footer-brand p {
  color: var(--color-text-muted);
}

[data-theme="dark"] .why-section .why-title {
  color: #FFFFFF;
}

.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: #FFFFFF;
}

[data-theme="dark"] .footer h4 {
  color: var(--color-text);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .footer li {
  color: var(--color-text-muted);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--color-border);
  color: var(--color-text-faint);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-bottom a {
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}


/* ═══════════════════════════════════════
   Scroll Animations (CSS-only)
   ═══════════════════════════════════════ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback: IntersectionObserver-based animation */
.reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
}
