/* ============================================================
   FIRE BUILDING SOLUTION — Main Stylesheet
   Author: Generated for Fire Building Solution
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --color-primary:       #1a2744;   /* dark navy */
  --color-primary-dark:  #111b33;
  --color-primary-light: #243257;
  --color-accent:        #e63946;   /* fire red */
  --color-accent-dark:   #c1121f;
  --color-accent-light:  #ff6b6b;
  --color-gold:          #f4a261;
  --color-white:         #ffffff;
  --color-off-white:     #f8f9fc;
  --color-text:          #1e2536;
  --color-text-muted:    #6b7a99;
  --color-border:        #e2e8f0;
  --color-card-bg:       #ffffff;
  --color-section-alt:   #f0f4ff;

  /* Typography */
  --font-family:         'Poppins', sans-serif;
  --font-size-base:      1rem;
  --line-height-base:    1.7;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;

  /* Border radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(26,39,68,.10);
  --shadow-lg:  0 10px 30px rgba(26,39,68,.15);
  --shadow-xl:  0 20px 50px rgba(26,39,68,.20);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Utility: Accent Color ──────────────────────────────────── */
.accent {
  color: var(--color-accent);
}

/* ── Section Shared ─────────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.section-tag {
  display: inline-block;
  background: rgba(230, 57, 70, .10);
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(230, 57, 70, .35);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 6px 20px rgba(230, 57, 70, .45);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.5);
}

.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,.1);
}

.btn--lg {
  padding: .9rem 2rem;
  font-size: 1rem;
}

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

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--navbar-height);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: var(--color-primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand-fire {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-text {
  color: var(--color-white);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.25;
}

.brand-text strong {
  font-weight: 700;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.nav-link {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  background: rgba(255,255,255,.1);
}

.nav-cta {
  margin-left: var(--space-sm);
  font-size: .875rem;
  padding: .55rem 1.25rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
  z-index: 1100;
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.hamburger.open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(17,27,51,.82) 0%, rgba(26,39,68,.75) 50%, rgba(30,48,96,.80) 100%),
    url('../assets/hero-van.jpg') center center / cover no-repeat;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

/* Animated background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(230,57,70,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230,57,70,.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.02) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,39,68,.4));
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(230, 57, 70, .2);
  border: 1px solid rgba(230, 57, 70, .35);
  color: var(--color-accent-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero__logo {
  height: 90px;
  width: auto;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 0;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,.75);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  letter-spacing: .02em;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.stat__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1;
}

.stat__label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── SERVICES ───────────────────────────────────────────────── */
.services {
  background: var(--color-off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-slow);
}

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

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card--featured {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.service-card--featured .service-card__icon {
  background: rgba(255,255,255,.15);
  color: var(--color-accent-light);
}

.service-card--featured .service-card__title {
  color: var(--color-white);
}

.service-card--featured .service-card__desc {
  color: rgba(255,255,255,.75);
}

.service-card--featured .service-card__tag {
  background: rgba(230, 57, 70, .3);
  color: var(--color-accent-light);
}

.service-card--featured::before {
  background: var(--color-accent-light);
  transform: scaleY(1);
  opacity: .5;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(230, 57, 70, .1);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

.service-card--featured:hover .service-card__icon {
  background: rgba(255,255,255,.25);
  color: var(--color-white);
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.service-card__desc {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__tag {
  display: inline-block;
  background: rgba(26,39,68,.06);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
}

/* ── TEAM SECTION ───────────────────────────────────────────── */
.team-section {
  background: var(--color-off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.team-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.team-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-image:hover img {
  transform: scale(1.03);
}

.team-image__badge {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.team-text__desc {
  color: var(--color-text-muted);
  margin: var(--space-lg) 0 var(--space-xl);
  line-height: 1.8;
}

.team-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.team-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text);
}

.team-features li i {
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .team-image img {
    height: 280px;
  }
}

/* ── WHY US ─────────────────────────────────────────────────── */
.why-us {
  background: var(--color-white);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-us__intro {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.why-us__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.why-us__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.why-us__list li > i {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: .2rem;
  flex-shrink: 0;
}

.why-us__list li > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.why-us__list li strong {
  font-weight: 600;
  color: var(--color-primary);
  font-size: .95rem;
}

.why-us__list li span {
  color: var(--color-text-muted);
  font-size: .875rem;
  line-height: 1.6;
}

/* Highlight Cards */
.why-us__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.highlight-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  transition: all var(--transition-base);
}

.highlight-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.highlight-card > i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.highlight-card__num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.highlight-card__label {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── RÉFÉRENCES ─────────────────────────────────────────────── */
.references {
  background: var(--color-section-alt);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.ref-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.ref-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ref-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 57, 70, .08);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ref-card__body h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: .2rem;
}

.ref-card__type {
  font-size: .75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact {
  background: var(--color-white);
}

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

/* Info Column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.info-block > i {
  width: 40px;
  height: 40px;
  background: rgba(230, 57, 70, .1);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.info-block > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.info-block strong {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.info-block span,
.info-block a {
  color: var(--color-primary);
  font-size: .95rem;
  font-weight: 500;
}

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

/* Contact Persons */
.contact-persons {
  margin-top: var(--space-sm);
}

.contact-persons h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.person-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.person-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.person-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.person-card__info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.person-card__info strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.person-card__role {
  font-size: .78rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.person-card__phone {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.person-card__phone:hover {
  color: var(--color-accent);
}

.person-card__phone i {
  font-size: .75rem;
}

/* ── FORM ───────────────────────────────────────────────────── */
.contact-form-wrapper {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  font-size: .95rem;
  font-weight: 400;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0bec5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, .12);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-accent);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7a99'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: .78rem;
  color: var(--color-accent);
  font-weight: 500;
  min-height: 1em;
}

.recaptcha-note {
  font-size: .78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.recaptcha-note i {
  color: var(--color-accent);
}

/* Submit Button — spinner state */
#submitBtn .btn-spinner { display: none; }
#submitBtn.loading .btn-label { display: none; }
#submitBtn.loading .btn-spinner { display: inline-flex; align-items: center; gap: .4rem; }
#submitBtn:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none !important;
}

/* Feedback */
.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: .9rem;
}

.form-feedback[hidden] { display: none; }

.form-feedback > i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.form-feedback > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.form-feedback > div strong {
  font-weight: 700;
}

.form-feedback > div span {
  font-size: .85rem;
}

.form-feedback--success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  color: #166534;
}

.form-feedback--success > i {
  color: #22c55e;
}

.form-feedback--error {
  background: rgba(230, 57, 70, .08);
  border: 1px solid rgba(230, 57, 70, .25);
  color: var(--color-accent-dark);
}

.form-feedback--error > i {
  color: var(--color-accent);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.75);
  padding: var(--space-3xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo {
  margin-bottom: var(--space-md);
  display: inline-flex;
}

.footer__tagline {
  color: var(--color-accent-light);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
}

.footer__col h4 {
  color: var(--color-white);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color var(--transition-fast);
}

.footer__col ul li a:hover {
  color: var(--color-accent-light);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
}

.footer__contact-list li i {
  color: var(--color-accent-light);
  margin-top: .2rem;
  flex-shrink: 0;
}

.footer__contact-list li a {
  color: rgba(255,255,255,.6);
}

.footer__contact-list li a:hover {
  color: var(--color-accent-light);
}

/* Legal bar */
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
}

.footer__legal-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

.footer__legal-info span strong {
  color: rgba(255,255,255,.6);
}

.footer__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ── Responsive — Tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-us__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ── Responsive — Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --space-3xl: 3.5rem;
  }

  /* Navbar mobile */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: -8px 0 30px rgba(0,0,0,.4);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--space-xs);
  }

  .nav-link {
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    border-radius: var(--radius-md);
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: var(--space-sm);
  }

  /* Overlay for mobile menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero__stats {
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
  }

  .stat__divider {
    height: 28px;
  }

  .stat__number {
    font-size: 1.4rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

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

  /* Why us */
  .why-us__cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Refs */
  .references-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal-info {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 400px) {
  .hero__stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .stat__divider {
    width: 60px;
    height: 1px;
  }

  .why-us__cards {
    grid-template-columns: 1fr;
  }
}

/* ── Google reCAPTCHA badge repositioning ───────────────────── */
.grecaptcha-badge {
  visibility: hidden;
}
