/* =========================================================
   Total-Gaz - Premium white & blue theme
   Fonts: Playfair Display (headings) + Inter (body)
   ========================================================= */

:root {
  --blue-900: #0a2a5e;
  --blue-700: #0f4fb6;
  --blue-600: #1563e0;
  --blue-500: #2a7bff;
  --blue-100: #e8f0ff;
  --blue-050: #f4f8ff;
  --white:    #ffffff;
  --ink:      #0e1b2e;
  --ink-soft: #4a5a74;
  --line:     #e3ebf7;
  --shadow-sm: 0 2px 8px rgba(15, 79, 182, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 79, 182, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 79, 182, 0.14);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--blue-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: var(--blue-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-500); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #cfe0f7;
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #b7cdee;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  /* Always reserve space on the right for the fixed phone pill so the nav
     or hamburger never sits under it at any width where it's top-right. */
  padding-right: 240px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--blue-900);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: grid; place-items: center;
  color: var(--white); font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  position: relative;
  z-index: 70;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-toggle:hover { background: var(--blue-050); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 8px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* =========================================================
   Fixed phone button (top-right)
   ========================================================= */
.phone-fab {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  font-weight: 600;
  font-size: .98rem;
  border-radius: 25px;
  box-shadow: 0 10px 24px rgba(15, 79, 182, .35);
  text-decoration: none;
  animation: phonePulse 2s infinite;
}
.phone-fab svg { width: 18px; height: 18px; fill: currentColor; }
.phone-fab:hover { color: var(--white); transform: translateY(-1px); }

@keyframes phonePulse {
  0%   { box-shadow: 0 10px 24px rgba(15,79,182,.35), 0 0 0 0 rgba(42,123,255,.55); }
  70%  { box-shadow: 0 10px 24px rgba(15,79,182,.35), 0 0 0 14px rgba(42,123,255,0); }
  100% { box-shadow: 0 10px 24px rgba(15,79,182,.35), 0 0 0 0 rgba(42,123,255,0); }
}

/* =========================================================
   Top background wrapper (hero + autorizatii)
   ========================================================= */
.top-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.top-bg::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: -2;
  background-image: url('../assets/bg-instalatii.png');
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(0.9);
}
.top-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10, 42, 94, .60) 0%,
      rgba(15, 79, 182, .38) 55%,
      rgba(244, 248, 255, .96) 100%);
}

/* Hero text contrast on top-bg */
.top-bg .hero h1 { color: #ffffff; }
.top-bg .hero .lead { color: rgba(255, 255, 255, .92); }
.top-bg .hero .eyebrow {
  background: rgba(255, 255, 255, .92);
  color: var(--blue-700);
}
.top-bg .hero .btn-ghost {
  background: rgba(255, 255, 255, .95);
  color: var(--blue-700);
  border-color: transparent;
}
.top-bg .section-head h2 { color: #ffffff; }
.top-bg .section-head p { color: #ffffff; }
.top-bg > .section { background: transparent; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background: transparent;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 18px; }
.hero p.lead { font-size: 1.1rem; max-width: 52ch; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 79, 182, .25);
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 79, 182, .3); }
.btn-ghost {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--blue-050); }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(15, 79, 182, .55), var(--shadow-lg);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 60% at 50% 45%, #ffffff 0%, #eaf1ff 55%, #cfddf5 100%);
}
.hero-art::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(15,79,182,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 75%, rgba(15,79,182,.08) 0 2px, transparent 3px);
  background-size: 40px 40px;
  opacity: .7;
}
.wrench-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  display: block;
  background: radial-gradient(60% 60% at 50% 50%, #ffffff 0%, #eaf1ff 55%, #cfddf5 100%);
}

/* =========================================================
   Section base
   ========================================================= */
.section { padding: 80px 0; }
.section-light { background: var(--blue-050); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { font-size: 1.05rem; }

/* =========================================================
   Authorization cards (home)
   ========================================================= */
.authorizations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.auth-card {
  background: var(--white);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.auth-card .badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.auth-card h3 { color: var(--blue-900); margin-bottom: 8px; }
.auth-card p { margin: 0; }

/* =========================================================
   Services grid (2x3) - servicii.html
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card .image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card .image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,94,0) 60%, rgba(10,42,94,.18));
}
.service-card .body {
  padding: 24px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 16px; flex: 1; }
.service-card .more {
  align-self: flex-start;
  font-weight: 600;
  color: var(--blue-700);
}

/* =========================================================
   Service section highlights (anchored details)
   ========================================================= */
.service-section {
  position: relative;
  border-top: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 36px 32px 44px;
  margin-bottom: 24px;
  border-left: 6px solid var(--blue-700);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-section:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.hl-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 6px 14px rgba(15, 79, 182, .25);
}

.hl-gaze       { border-left-color: #0f4fb6; }
.hl-gaze       .hl-tag { background: linear-gradient(135deg, #0f4fb6, #2a7bff); box-shadow: 0 6px 14px rgba(15,79,182,.3); }

.hl-sanitare   { border-left-color: #0077b6; }
.hl-sanitare   .hl-tag { background: linear-gradient(135deg, #0077b6, #00b4d8); box-shadow: 0 6px 14px rgba(0,119,182,.3); }

.hl-termice    { border-left-color: #c1121f; }
.hl-termice    .hl-tag { background: linear-gradient(135deg, #c1121f, #f75c03); box-shadow: 0 6px 14px rgba(193,18,31,.3); }

.hl-detector   { border-left-color: #1f3a6b; }
.hl-detector   .hl-tag { background: linear-gradient(135deg, #1f3a6b, #3a86ff); box-shadow: 0 6px 14px rgba(31,58,107,.3); }

.hl-apometre   { border-left-color: #006d77; }
.hl-apometre   .hl-tag { background: linear-gradient(135deg, #006d77, #38b6ff); box-shadow: 0 6px 14px rgba(0,109,119,.3); }

.hl-verificari { border-left-color: #2a6f4e; }
.hl-verificari .hl-tag { background: linear-gradient(135deg, #2a6f4e, #06a77d); box-shadow: 0 6px 14px rgba(42,111,78,.3); }

.service-section h2 { color: var(--blue-900); }
.service-section .lead { max-width: 68ch; }

/* =========================================================
   Pricing tables
   ========================================================= */
.price-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}
.price-group h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue-100);
}
.price-group h2::before {
  content: '';
  width: 8px; height: 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-700), var(--blue-500));
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table tr {
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.price-table tr:last-child { border-bottom: 0; }
.price-table tr:hover { background: var(--blue-050); }
.price-table td {
  padding: 14px 8px;
  vertical-align: middle;
}
.price-table td.label {
  color: var(--ink);
  font-weight: 500;
}
.price-table td.price {
  text-align: right;
  font-weight: 700;
  color: var(--blue-700);
  white-space: nowrap;
  font-size: 1.02rem;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  border: 1px solid var(--line);
}
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
}
.contact-list .ico svg { width: 20px; height: 20px; fill: currentColor; }
.contact-list .meta { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.contact-list .value { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.contact-list a.value { color: var(--blue-700); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--blue-050);
}

/* =========================================================
   Page title banner (servicii/preturi/contact)
   ========================================================= */
.page-banner {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 320px at 90% 0%, #dbe8f9, transparent 60%),
    #cfe0f7;
  text-align: center;
}
.page-banner h1 { margin: 0 0 10px; }
.page-banner p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.crumbs { color: var(--ink-soft); font-size: .9rem; }
.crumbs a { color: var(--blue-700); }

/* =========================================================
   Notice card (info/warning)
   ========================================================= */
.notice {
  max-width: 800px;
  margin: 24px auto;
  padding: 14px 18px;
  background: #fff8e1;
  border-left: 4px solid #eab308;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #713f12;
  font-size: 0.95rem;
  line-height: 1.5;
}
.notice-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}
@media (max-width: 600px) {
  .notice {
    margin: 16px 16px;
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* =========================================================
   Callout
   ========================================================= */
.callout {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 40px auto;
}
.callout h2 { color: var(--white); }
.callout p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.callout .cta-row { justify-content: center; }
.callout .btn-ghost { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.25); }
.callout .btn-ghost:hover { background: rgba(255,255,255,.2); }
.callout .btn-primary { background: var(--white); color: var(--blue-700); }
.callout .btn-primary:hover { background: var(--blue-050); color: var(--blue-700); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.85);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid--2col { grid-template-columns: 1fr 1fr; }
.site-footer h4 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}

/* =========================================================
   Scroll-triggered animations
   ========================================================= */
.reveal-up, .reveal-left {
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: transform, opacity;
}
.reveal-up    { transform: translateY(24px); }
.reveal-left  { transform: translateX(-28px); }

.reveal-up.is-visible,
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
    text-align: center;
  }
  .hero-grid > div:first-child {
    max-width: 640px;
  }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-art {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .authorizations { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile / tablet: nav becomes a smooth dropdown that slides down directly
   below the header. Full container width, anchored to the sticky header,
   animated via max-height so no content is ever trapped behind it. */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(10, 42, 94, .15);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease);
    z-index: 45;
  }
  .main-nav.open {
    max-height: 480px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 20px;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    text-align: center;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: var(--blue-050);
    color: var(--blue-700);
  }
}

@media (max-width: 768px) {
  .phone-fab {
    top: auto;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    font-size: .9rem;
  }
  .phone-fab .label-full { display: none; }

  /* Phone pill is no longer in the header corner, so release the space. */
  .site-header .container { padding-right: 24px; }

  .page-banner { padding: 56px 0 40px; }
  .service-section { padding: 24px 22px 24px 28px; margin-bottom: 18px; }
  .service-section:hover { transform: none; }
  .section-head { margin-bottom: 32px; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 60px; }
  .services-grid,
  .authorizations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-group { padding: 20px 18px; }
  .price-table td { padding: 12px 6px; }
  .price-table td.label { padding-right: 10px; line-height: 1.4; }
  .phone-fab {
    bottom: 16px;
    right: 16px;
    padding: 11px 14px;
    font-size: .85rem;
    border-radius: 24px;
  }
  .phone-fab svg { width: 16px; height: 16px; }
  .callout { padding: 36px 22px; }
  .contact-card { padding: 24px; }
  .site-header .container { padding-right: 24px; gap: 12px; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .hero { padding: 56px 0 48px; }
  .hero-art { max-width: 100%; }
  .page-banner { padding: 44px 0 32px; }
  .service-section { padding: 22px 18px 22px 22px; }
  .price-group h2 { font-size: 1.4rem; }
  .price-table td { font-size: .95rem; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up, .reveal-left { opacity: 1; transform: none; }
  .phone-fab { animation: none; }
}

/* =========================================================
   Contact modal + form
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 27, 46, .62);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  padding: 40px 40px 32px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal h2 {
  margin: 0 0 8px;
  padding-right: 40px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal-close:hover { background: var(--blue-050); color: var(--blue-900); }
.modal-close:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-group { margin-top: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: .92rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(42, 123, 255, .18);
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}
.form-error {
  color: #d92d20;
  font-size: .85rem;
  margin-top: 6px;
  min-height: 0;
}

.form-status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #e8f7ed;
  color: #116b35;
  border: 1px solid #b7e2c6;
}
.form-status.error {
  display: block;
  background: #fdecec;
  color: #9a1b1b;
  border: 1px solid #f4c2c2;
}

.form-actions { margin-top: 22px; }
.form-actions .btn {
  width: 100%;
  justify-content: center;
}
.form-actions .btn[disabled] {
  opacity: .7;
  cursor: wait;
  transform: none;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 12px; }
  .modal { padding: 30px 22px 24px; }
  .modal h2 { padding-right: 36px; }
}
