/* ===============================
   SafePilot – CLEAN CSS (FINAL)
   Home + About + Contact
   Icons: equal size / consistent look
   Hero with background image (more contrast + stronger blue)
   =============================== */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, .10);

  --navy: #0049A1;
  --navy-2: #0e375f;

  --accent: #f97316;
  --accent-2: #fb8c3c;

  --card: #ffffff;
  --shadow: 0 18px 45px rgba(2, 8, 23, .10);
  --shadow-soft: 0 10px 30px rgba(2, 8, 23, .08);

  --radius: 18px;
  --radius-lg: 24px;

  --container: 1120px;
}

/* ================= BASE ================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.brand-logo {
  width: 62px;
  /* was 52 */
  height: 62px;
  /* was 52 */
}

.brand-name {
  font-size: 1.35rem;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-weight: 650;
  padding: 12px;
  border-radius: 12px;
  color: var(--navy);
}

.nav-link:hover {
  background: rgba(15, 23, 42, .04);
}

.nav-cta {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(249, 115, 22, .22);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.hero-compact {
  min-height: 240px;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    /* stronger blue wash */
    radial-gradient(900px 380px at 50% 15%,
      rgba(30, 99, 168, .34),
      rgba(30, 99, 168, 0) 60%),
    linear-gradient(90deg,
      rgba(255, 226, 205, .38),
      rgba(120, 185, 245, .44) 55%,
      rgba(80, 150, 230, .48)),
    /* deeper top/bottom contrast */
    linear-gradient(180deg,
      rgba(11, 43, 75, .22),
      rgba(11, 43, 75, .08) 55%,
      rgba(11, 43, 75, .18)),
    url("../img/hero-mountains.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* “sharper / less flat” without changing the image file */
  filter: contrast(1.16) saturate(1.18);
  transform: translateZ(0);
}

/* subtle crispness layer */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .08));
  mix-blend-mode: multiply;
  opacity: .55;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 42px 0 38px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--navy);
}

.hero-subtitle {
  max-width: 70ch;
  margin: 0 auto;
  color: rgba(15, 23, 42, .78);
}

/* ================= SECTIONS ================= */
.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 38px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid rgba(2, 8, 23, .08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.card-icon-wrap {
  width: 168px;
  height: 168px;
  padding: 18px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .035), rgba(15, 23, 42, .01));
}

.card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-title {
  margin: 0 0 8px;
  color: var(--navy);
}

.card-text {
  margin: 0;
  color: var(--muted);
}

/* ================= LAYOUT SURFACES (UNIFIED) ================= */
.surface {
  background: #fff;
  border: 1px solid rgba(2, 8, 23, .08);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.stack {
  display: grid;
  gap: 22px;
}

.page-h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--navy);
  text-align: left;
}

.page-h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
  text-align: left;
}

.page-text {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.divider {
  height: 1px;
  background: rgba(2, 8, 23, .08);
  margin: 6px 0;
}

/* ================= ABOUT ================= */
.about-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.about-wrap h2.section-title {
  text-align: left;
  margin-bottom: 14px;
}

.about-wrap p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-block {
  margin-top: 42px;
}

.about-bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.about-bullets li {
  margin: 8px 0;
}

/* ================= CONTACT ================= */
.contact {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(2, 8, 23, .08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.contact-title {
  margin: 0 0 8px;
  font-size: 1.65rem;
  color: var(--navy);
}

.contact-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Alerts */
.alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 14px 0 18px;
  border: 1px solid rgba(2, 8, 23, .10);
  background: rgba(2, 8, 23, .03);
  color: var(--text);
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.alert-ok {
  border-color: rgba(34, 197, 94, .30);
  background: rgba(34, 197, 94, .10);
}

.alert-bad {
  border-color: rgba(239, 68, 68, .30);
  background: rgba(239, 68, 68, .10);
}

/* Form */
.form {
  margin-top: 6px;
}

.hp {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 650;
  color: rgba(15, 23, 42, .88);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(2, 8, 23, .14);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(249, 115, 22, .55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
}

.field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(2, 8, 23, .10);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
  background: rgba(15, 23, 42, .04);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 24px rgba(249, 115, 22, .22);
}

.btn-primary:hover {
  filter: brightness(1.02);
}

.btn-secondary {
  background: #fff;
}

.form-hint {
  margin: 12px 0 0;
  color: rgba(71, 85, 105, .95);
  font-size: .95rem;
}

/* Aside */
.contact-aside {
  display: grid;
  gap: 18px;
}

.aside-box {
  background: #fff;
  border: 1px solid rgba(2, 8, 23, .08);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.aside-box h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.aside-box p {
  margin: 0 0 10px;
  color: var(--muted);
}

.aside-box p:last-child {
  margin-bottom: 0;
}

.aside-box code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(2, 8, 23, .06);
  border: 1px solid rgba(2, 8, 23, .10);
}

/* ================= FOOTER ================= */
.site-footer {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #e5eef7;
}

.footer-inner {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
}

.footer-logo {
  width: 60px;
  /* was 34 */
  height: 60px;
  /* was 34 */
}

.footer-nav {
  display: flex;
  gap: 14px;
}

.footer-nav a {
  padding: 6px 10px;
  border-radius: 10px;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, .08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 12px 0;
  text-align: center;
  font-size: .9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {

  .brand-name,
  .nav-cta {
    display: none;
  }

  .brand-logo {
    width: 60px;
    height: 60px;

  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}