/* ==========================================================
   Shah Construction — sayt stilləri
   Brend rəngləri loqodan götürülüb: tünd göy və narıncı.
   ========================================================== */
:root {
  --navy: #112062;          /* loqodakı tünd göy */
  --navy-deep: #0B1645;     /* hero və footer fonu */
  --navy-soft: #24347E;
  --orange: #FE6D1F;        /* loqodakı narıncı — düymələr, vurğular */
  --orange-ink: #B84A0C;    /* açıq fonda narıncı mətn (oxunaqlı) */
  --ink: #141B3D;           /* əsas mətn */
  --muted: #545D80;         /* ikinci dərəcəli mətn */
  --line: #DCE1EE;
  --mist: #F1F4FA;          /* açıq bölmə fonu */
  --white: #FFFFFF;

  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow: 0 1px 2px rgba(17,32,98,.06), 0 12px 32px -12px rgba(17,32,98,.18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ===== Düymələr ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-s);
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: var(--navy-deep); }
.btn-primary:hover { background: #FF8442; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange-ink); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; width: fit-content; }
.text-link:hover { color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(17,32,98,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
.header-menu { display: flex; align-items: center; gap: 36px; }
.nav { display: flex; gap: 28px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; background: var(--mist); border-radius: 999px; }
.lang a { min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--navy); }
.lang a.is-active { background: var(--navy); color: var(--white); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius-s); background: var(--mist); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--navy-deep);
  /* çertyoj toru */
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(120% 90% at 85% 10%, #1A2C84 0%, var(--navy-deep) 60%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%;
  color: var(--white);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 136px; }
.hero-text { display: flex; flex-direction: column; gap: 26px; max-width: 640px; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 7px 14px 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 14px; font-weight: 500; color: #C9D0EE; }
.hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(254,109,31,.2); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #C9D0EE; max-width: 34em; }
.hero .btn-row { padding-top: 6px; }

/* Video + çertyoj ölçü xətləri */
.hero-media { position: relative; margin: 0; justify-self: center; width: min(100%, 360px); padding: 44px 0 0 40px; }
.video-frame { position: relative; border-radius: var(--radius-m); overflow: hidden; background: #1A2560; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.12); outline-offset: 8px; }
.hero-video { width: 100%; aspect-ratio: 9 / 16; max-height: 620px; object-fit: cover; }
.dim { position: absolute; color: var(--orange); }
.dim span { position: absolute; background: currentColor; }
.dim::before, .dim::after { content: ""; position: absolute; background: currentColor; }
.dim-top { left: 40px; right: 0; top: 14px; height: 14px; }
.dim-top span { left: 0; right: 0; top: 6px; height: 1.5px; transform-origin: left; }
.dim-top::before, .dim-top::after { top: 0; width: 1.5px; height: 14px; }
.dim-top::before { left: 0; } .dim-top::after { right: 0; }
.dim-side { left: 10px; top: 44px; bottom: 0; width: 14px; }
.dim-side span { top: 0; bottom: 0; left: 6px; width: 1.5px; transform-origin: top; }
.dim-side::before, .dim-side::after { left: 0; height: 1.5px; width: 14px; }
.dim-side::before { top: 0; } .dim-side::after { bottom: 0; }
.dim-label {
  position: absolute; left: 40px; right: 0; top: -2px; text-align: center; white-space: nowrap;
  font-size: 13px; font-weight: 500; line-height: 1; color: #E8EBF8;
}
/* Hero açılış animasiyası (yeganə avtomatik hərəkət) */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .video-frame { animation: rise .9s .2s cubic-bezier(.2,.7,.2,1) both; }
  .dim-top span { animation: drawX .8s .6s ease-out both; }
  .dim-side span { animation: drawY .8s .6s ease-out both; }
  .dim-label { animation: fade .5s 1.2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drawX { from { transform: scaleX(0); } }
@keyframes drawY { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; } }

/* ===== Statistika — hero-nun altına daxil olan zolaq ===== */
.stats { position: relative; z-index: 2; margin-top: -72px; }
.stats-bar {
  margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ===== Ümumi bölmə ===== */
.block { padding: 112px 0; }
.block-mist { background: var(--mist); }
.block h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.025em; color: var(--navy); text-wrap: balance; }
.block-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.block-title { margin-bottom: 56px; }
.block-lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 36em; }

/* ===== Xidmətlər ===== */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.services-intro { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.service { display: flex; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.service-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-m); background: #FFF1E8; color: var(--orange-ink); display: flex; align-items: center; justify-content: center; }
.service h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ===== İş prosesi ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: calc((100% - 96px) / 5 - 28px); top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 14px); opacity: .25; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin-bottom: 10px; position: relative; }
.step:last-child .step-num { background: var(--orange); border-color: var(--orange); color: var(--navy-deep); }
.step h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.step p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ===== Paketlər ===== */
.pkg-picker { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 20px; border: 1.5px solid var(--line); border-radius: var(--radius-m);
  background: var(--white); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg:hover { border-color: var(--navy-soft); }
.pkg-name { font-size: 16px; font-weight: 600; color: var(--muted); }
.pkg-price { font-size: 15px; font-weight: 600; color: var(--navy); }
.pkg-price b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; }
.pkg-price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.pkg:has(input:checked) { background: var(--navy); border-color: var(--navy); box-shadow: 0 18px 40px -18px rgba(17,32,98,.6); }
.pkg:has(input:checked) .pkg-name { color: #C9D0EE; }
.pkg:has(input:checked) .pkg-price { color: var(--white); }
.pkg:has(input:checked) .pkg-price b { color: var(--orange); }
.pkg:has(input:checked) .pkg-price small { color: #C9D0EE; }
.pkg:has(input:checked)::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.pkg:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }

.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pkg-details { background: var(--mist); border-radius: var(--radius-l); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.pkg-details h3 { font-size: 22px; font-weight: 700; color: var(--navy); }
.pkg-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pkg-items li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--muted); position: relative; }
.pkg-items li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.pkg-items strong { color: var(--ink); font-weight: 600; }
.pkg-extras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pkg-extras li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--navy); }
.pkg-extras li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.calc-side { position: sticky; top: calc(var(--header-h) + 24px); background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.calc-side .field label { color: #C9D0EE; }
.calc-side .field input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: var(--white); font-size: 20px; font-weight: 600; }
.calc-side .field input::placeholder { color: rgba(255,255,255,.35); }
.calc-total { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.calc-label { font-size: 14px; color: #C9D0EE; }
.calc-value { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.calc-formula { font-size: 14px; color: #A9B2DA; }
.calc-note { font-size: 13px; line-height: 1.5; color: #A9B2DA; }

/* ===== Formalar ===== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; min-height: 52px; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(254,109,31,.18); }

/* ===== Əlaqə ===== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.contact-card { background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; font-size: 17px; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--orange); }
.contact-label { font-size: 13px; font-weight: 500; color: #A9B2DA; }
.contact-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(254,109,31,.14); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.map { flex: 1; min-height: 260px; border-radius: var(--radius-m); overflow: hidden; background: #1A2560; }
.map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.form-note { font-size: 14px; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #C9D0EE; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { height: 56px; width: auto; align-self: flex-start; }
.footer-brand p { max-width: 26em; color: #A9B2DA; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact > a { font-size: 18px; font-weight: 700; color: var(--white); }
.social { display: flex; gap: 18px; padding-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: #8C96C4; }

/* ===== Üzən WhatsApp düyməsi ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ===== Planşet ===== */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .header-menu {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px 0 20px; border-top: 1px solid var(--line);
  }
  .header-menu.is-open { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-actions { justify-content: space-between; flex-wrap: wrap; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .hero-media { width: min(100%, 320px); }
  .stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--navy) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 4px; padding-bottom: 28px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; }
  .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pkg:has(input:checked)::after { display: none; }
  .calc-body { grid-template-columns: 1fr; }
  .calc-side { position: static; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Telefon ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  :root { --header-h: 68px; }
  .logo img { height: 44px; }
  .hero-inner { padding-top: 40px; padding-bottom: 112px; }
  .hero .btn { width: 100%; }
  .hero-media { width: min(100%, 270px); padding: 38px 0 0 34px; }
  .dim-top, .dim-label { left: 34px; }
  .dim-side { left: 6px; top: 38px; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 18px; }
  .stat:nth-child(n) { border-left: 0; border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .block { padding: 72px 0; }
  .block-head { margin-bottom: 32px; }
  .block-title { margin-bottom: 36px; }
  .service-list { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg:last-child { grid-column: 1 / -1; }
  .pkg { padding: 16px; }
  .pkg-price b { font-size: 28px; }
  .pkg-details { padding: 24px 20px; }
  .pkg-items { grid-template-columns: 1fr; }
  .calc-side, .contact-card, .contact-form { padding: 24px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
