/* Salik Calculator — Fineuaeroad
   Redesigned UI · modern light theme with indigo→cyan gradient accents. */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  /* New palette */
  --ink: #0f1729;
  --ink-2: #1e293b;
  --muted: #64748b;
  --bg: #eef2fb;
  --bg-soft: #f7f9ff;
  --card: #ffffff;
  --line: #e6eaf4;
  --line-2: #d8def0;

  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --accent: #f59e0b;
  --green: #10b981;

  --grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%);
  --dark: radial-gradient(120% 140% at 0% 0%, #1e293b 0%, #0f1729 55%, #0b1220 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(31, 41, 92, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(31, 41, 92, 0.35);
  --ring: 0 0 0 4px rgba(79, 70, 229, 0.16);
  --maxw: 1140px;

  /* Back-compat aliases (legacy class refs / inline styles) */
  --navy: #0f1729;
  --navy-2: #1e293b;
  --blue: #4f46e5;
  --text: #0f1729;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% -8%, rgba(6, 182, 212, 0.10), transparent 60%),
    radial-gradient(900px 600px at -8% 0%, rgba(79, 70, 229, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: rgba(79, 70, 229, 0.18); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 42px; height: 42px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.6);
}
.brand .brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; display: block; line-height: 1.1; }
.brand .brand-sub { font-size: 12px; color: var(--muted); display: block; line-height: 1; font-weight: 500; }

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: #eaeefc; color: var(--brand); }
.nav-links a.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.7);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0.05) 100%);
}
.hero-overlay .container { width: 100%; }
.hero h1 {
  font-size: 50px;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 760px;
  font-weight: 800;
  letter-spacing: -1px;
  animation: fadeUp .7s ease both;
}
.hero p {
  font-size: 19px;
  max-width: 640px;
  color: #cbd5e1;
  animation: fadeUp .7s ease .12s both;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.page-head {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 64px 0 56px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(6, 182, 212, 0.35), transparent 60%),
    radial-gradient(500px 280px at 0% 120%, rgba(79, 70, 229, 0.35), transparent 60%);
}
.page-head .container { position: relative; }
.page-head h1 { margin: 0 0 10px; font-size: 38px; font-weight: 800; letter-spacing: -0.8px; animation: fadeUp .6s ease both; }
.page-head p { margin: 0; color: #cbd5e1; max-width: 720px; font-size: 17px; animation: fadeUp .6s ease .1s both; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 15.5px;
  font-family: inherit;
  box-shadow: 0 12px 26px -12px rgba(79, 70, 229, 0.75);
  transition: transform .18s ease, box-shadow .18s ease, background-position .4s ease;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 18px 34px -12px rgba(79, 70, 229, 0.8);
}
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- Layout sections ---------- */
.section { padding: 60px 0; }
.section h2 { font-size: 32px; margin: 0 0 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.6px; }
.section .lead { color: var(--muted); max-width: 760px; margin: 0 0 32px; font-size: 17px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.card h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card .icon {
  width: 50px; height: 50px;
  background: var(--grad);
  color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.6);
}

.feature-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Calculator ---------- */
.calc-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.calc-wrap::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: var(--grad);
  border-radius: 22px 22px 0 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.field select, .field input, .field textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--ring);
}
.calc-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.result {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  animation: fadeUp .4s ease both;
}
.result-total {
  background: var(--dark);
  color: #fff;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.result-total::after {
  content: "";
  position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 70%);
}
.result-total > * { position: relative; }
.result-total .amount { font-size: 40px; font-weight: 800; color: #fbbf24; letter-spacing: -1px; }
.result-total .label { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; }

.gate-list { list-style: none; margin: 20px 0 0; padding: 0; }
.gate-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg-soft);
  transition: border-color .18s ease, transform .18s ease;
}
.gate-list li:hover { border-color: var(--brand); transform: translateX(3px); }
.gate-list li .gname { font-weight: 600; color: var(--ink); }
.gate-list li .gprice { color: var(--green); font-weight: 700; }
.no-gates {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
  padding: 16px 18px;
  border-radius: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
  color: var(--muted);
}
.summary-row strong { color: var(--ink); }
.hidden { display: none; }

/* ---------- Tables ---------- */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rate-table th, .rate-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.rate-table th { background: var(--dark); color: #fff; font-weight: 600; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tbody tr:hover { background: var(--bg-soft); }

/* ---------- Content / legal ---------- */
.content { background: transparent; }
.content-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.content-body h2 { color: var(--ink); margin-top: 32px; font-weight: 800; letter-spacing: -0.4px; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { color: var(--ink-2); }
.content-body ul { padding-left: 22px; }
.content-body li { margin-bottom: 8px; }

.callout {
  background: var(--grad-soft);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.faq-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.faq-item h3 { margin: 0 0 8px; color: var(--ink); font-size: 17.5px; font-weight: 700; }
.faq-item p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-box .row { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-box .row .k { font-weight: 700; color: var(--ink); min-width: 96px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  margin-top: 60px;
  padding: 56px 0 22px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  position: relative;
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  position: relative;
}
.keywords-note { font-size: 13px; color: #94a3b8; margin-top: 8px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: rgba(15, 23, 41, 0.96);
  backdrop-filter: blur(10px);
  color: #e7eef6;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 22px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .4s ease both;
}
.cookie-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 14px; max-width: 760px; }
.cookie-inner a { color: #67e8f9; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 14px; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: #e7eef6;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background .18s ease, border-color .18s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .card:hover, .btn:hover, .faq-item:hover, .gate-list li:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .hero-img { height: 380px; }
  .page-head h1 { font-size: 30px; }
  .section h2 { font-size: 26px; }
}

@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav-links { width: 100%; justify-content: flex-start; }
  .calc-wrap, .content-body { padding: 22px; }
  .result-total .amount { font-size: 32px; }
}
