/* ===== CSS VARIABLES ===== */
:root {
  --primary:       #1e3a5f;
  --primary-dark:  #0f1f35;
  --accent:        #f97316;
  --accent-dark:   #c2410c;
  --bg:            #f8fafc;
  --bg-alt:        #f1f5f9;
  --text:          #1e293b;
  --muted:         #64748b;
  --border:        #e2e8f0;
  --white:         #ffffff;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);

  --max-w: 1100px;
  --pad:   1.25rem;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgb(249 115 22 / .3);
}

.btn--outline {
  border: 2px solid rgba(255 255 255 / .55);
  color: var(--white);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--white);
  background: rgba(255 255 255 / .1);
}

.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgb(0 0 0 / .25);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .875rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.logo__icon { width: 2.75rem; flex-shrink: 0; }
.logo strong { color: var(--accent); }

.header__phone {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: .4rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255 255 255 / .25);
  transition: all .2s;
}
.header__phone svg { width: 1rem; height: 1rem; }
.header__phone:hover { border-color: var(--accent); color: var(--accent); }

.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  color: var(--white);
  border-radius: 6px;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255 255 255 / .1); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: #162d4a;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.mobile-nav.is-open {
  max-height: 400px;
  padding-block: .75rem;
}
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  display: block;
  color: #cbd5e1;
  padding: .75rem var(--pad);
  font-weight: 600;
  font-size: 1rem;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }
.nav-link--phone {
  color: var(--accent) !important;
  font-size: 1.1rem;
  border-top: 1px solid rgba(255 255 255 / .08);
  margin-top: .25rem;
  padding-top: 1rem !important;
}

/* ===== HERO ===== */
.hero {
  background: var(--primary-dark);
  background-image: linear-gradient(135deg, #0a1628 0%, #1e3a5f 55%, #1d4976 100%);
  color: var(--white);
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(249 115 22 / .1) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero__badge {
  display: inline-block;
  background: rgba(249 115 22 / .15);
  color: #fdba74;
  border: 1px solid rgba(249 115 22 / .35);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: .01em;
}
.hero__headline {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  font-size: .9rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--primary-dark);
  background-image: linear-gradient(160deg, #0a1628 0%, #1a3050 100%);
}

.section__title {
  text-align: center;
  margin-bottom: .75rem;
  color: var(--primary);
}
.section__title--light { color: var(--white); }

.section__sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.section__sub--light { color: #94a3b8; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  font-size: 2.25rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.service-card h3 {
  color: var(--primary);
  margin-bottom: .5rem;
}
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.feature__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
  margin-top: .1rem;
}
.feature h3 { color: var(--primary); margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ===== SERVICE AREAS ===== */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.area-group h3 {
  color: var(--primary);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.area-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.area-group li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .9rem;
  color: var(--text);
}
.areas-note {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.areas-note a {
  color: var(--accent);
  font-weight: 600;
}
.areas-note a:hover { text-decoration: underline; }

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin-inline: auto;
}

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

.contact-big-phone {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  transition: color .2s;
}
.contact-big-phone svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-big-phone:hover { color: var(--accent); }

.contact-email {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #94a3b8;
  font-size: 1rem;
  transition: color .2s;
  word-break: break-all;
}
.contact-email svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.contact-email:hover { color: var(--white); }

.contact-hours {
  color: #94a3b8;
  font-size: .95rem;
}
.contact-hours strong { color: var(--white); }

.contact-trust {
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.6;
}
.contact-trust p:first-child {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}

/* ===== FORM ===== */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.5' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(249 115 22 / .12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer {
  background: #080f1c;
  color: #94a3b8;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem;
}
.footer__logo {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer__logo strong { color: var(--accent); }
.footer__brand p { font-size: .9rem; line-height: 1.75; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.footer__nav a { font-size: .9rem; transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer__contact a,
.footer__contact span { font-size: .9rem; transition: color .2s; word-break: break-all; }
.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid #1a2740;
  padding-block: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: #475569;
}

/* ===== STICKY CALL BUTTON (mobile) ===== */
.sticky-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: .875rem 2.25rem;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgb(249 115 22 / .45);
  z-index: 50;
  transition: all .2s;
  white-space: nowrap;
}
.sticky-call svg { width: 1.1rem; height: 1.1rem; }
.sticky-call:hover {
  background: var(--accent-dark);
  transform: translateX(-50%) translateY(-2px);
}

/* ===== RESPONSIVE: 480px ===== */
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ===== RESPONSIVE: 640px (tablet) ===== */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features      { grid-template-columns: repeat(2, 1fr); }
  .areas-grid    { grid-template-columns: repeat(2, 1fr); }

  .sticky-call   { display: none; }
  .header__phone { display: flex; }
  .hamburger     { display: none; }
  .mobile-nav    { display: none; }
}

/* ===== RESPONSIVE: 768px ===== */
@media (min-width: 768px) {
  :root { --pad: 2rem; }
  .hero { padding: 6rem 0 8rem; }

  .contact-layout {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===== RESPONSIVE: 960px ===== */
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .features      { grid-template-columns: repeat(4, 1fr); }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
