/* ===========================================================
   Main Line Benefits — Jon Aloff Landing Page
   Brand: Navy #004785 / Sky Blue #009FDA / Gray #4D4D4D
   =========================================================== */

:root {
  --navy: #004785;
  --navy-deep: #003463;
  --sky: #009FDA;
  --sky-light: #E6F6FD;
  --gray: #4D4D4D;
  --gray-soft: #7A828C;
  --white: #FFFFFF;
  --light: #F5F7FA;
  --border: #E3E8EE;
  --shadow: 0 20px 50px -20px rgba(0, 40, 80, 0.25);
  --shadow-soft: 0 10px 30px -15px rgba(0, 40, 80, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(0, 159, 218, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(0, 159, 218, 0.65); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-nav {
  background: var(--sky);
  color: var(--white);
  padding: 11px 22px;
  font-size: 14px;
}
.btn-nav:hover { background: #0b8fc2; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.nav-brand img { height: 34px; width: 34px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text strong { font-size: 15.5px; font-weight: 700; color: var(--white); }
.nav-brand-text span { font-size: 11.5px; color: #9fc4e6; letter-spacing: 0.4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.btn-nav) {
  color: #cfe1f2;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn-nav):hover { color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-diagonal {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 62%;
  height: 150%;
  background: linear-gradient(135deg, var(--sky) 0%, #00c2ff 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.94;
}
.hero-diagonal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%);
}
.hero-dots {
  position: absolute;
  left: -30px;
  bottom: 40px;
  width: 190px;
  height: 150px;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.5;
  z-index: 1;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-light);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #4be0a1; box-shadow: 0 0 0 3px rgba(75,224,161,0.25); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 22px;
  letter-spacing: -0.5px;
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7fe1ff, #bff2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 18px;
  color: #cfe1f2;
  max-width: 500px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-coverage span {
  font-size: 13.5px;
  color: #b9d2e8;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.hero-coverage svg { flex-shrink: 0; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 30px;
  color: var(--white);
  background: rgba(0, 32, 63, 0.72);
  text-align: center;
}
.hero-card-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--sky);
}
.hero-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-card h3 { margin: 0 0 4px; font-size: 20px; }
.hero-card p.role { margin: 0 0 16px; color: #cfe1f2; font-size: 14px; }
.hero-card-stats { display: flex; justify-content: center; gap: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-card-stats div { text-align: center; }
.hero-card-stats div strong { display: block; font-size: 19px; color: var(--white); }
.hero-card-stats div span { font-size: 12px; color: #cfe1f2; }

/* ---------- Section basics ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 0 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block;
  color: var(--sky);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}
.section-head p { font-size: 16.5px; color: var(--gray-soft); margin: 0; }

/* ---------- Accolades ---------- */
.accolades { padding: 64px 0; background: var(--light); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.accolades .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.accolade-item { display: flex; align-items: center; gap: 22px; }
.accolade-item img { height: 120px; width: auto; }
.accolade-text { display: flex; flex-direction: column; }
.accolade-text strong { color: var(--navy); font-size: 17px; font-weight: 700; }
.accolade-text span { color: var(--gray-soft); font-size: 13.5px; }
.accolade-div { width: 1px; height: 76px; background: var(--border); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sky-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--sky);
}
.service-card h3 { font-size: 16.5px; color: var(--navy); margin: 0 0 8px; font-weight: 700; }
.service-card p { font-size: 14px; color: var(--gray-soft); margin: 0; }

/* ---------- About ---------- */
.about .wrap {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-photo-ring {
  position: absolute;
  top: 22px; left: 22px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed var(--sky);
  opacity: 0.4;
  z-index: 1;
}
.about-dots {
  position: absolute;
  bottom: -30px;
  right: 10px;
  width: 130px;
  height: 100px;
  background-image: radial-gradient(var(--sky) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.25;
  z-index: 0;
}
.about-copy .kicker { margin-bottom: 10px; }
.about-copy h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); margin: 0 0 6px; font-weight: 700; }
.about-copy .role { color: var(--sky); font-weight: 700; font-size: 14.5px; margin-bottom: 20px; }
.about-copy p.bio { font-size: 16.5px; color: var(--gray); margin: 0 0 26px; }
.about-contact {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.about-contact a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.about-contact a svg { color: var(--sky); flex-shrink: 0; }
.about-contact a:hover { color: var(--sky); }

/* ---------- How it works ---------- */
.steps { background: var(--navy); position: relative; overflow: hidden; }
.steps::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.steps .wrap { position: relative; z-index: 1; }
.steps .section-head h2, .steps .section-head p { color: var(--white); }
.steps .section-head p { color: #b9d2e8; }
.steps .kicker { color: #7fe1ff; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.step-card h3 { color: var(--white); font-size: 18px; margin: 0 0 10px; }
.step-card p { color: #b9d2e8; font-size: 14.5px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  font-family: inherit;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--sky);
  color: var(--sky);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--sky);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.faq-q .plus::before { width: 10px; height: 1.6px; }
.faq-q .plus::after { width: 1.6px; height: 10px; }
.faq-item.open .faq-q .plus { background: var(--sky); transform: rotate(180deg); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: var(--white); }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p { margin: 0 4px 22px; color: var(--gray-soft); font-size: 15px; max-width: 660px; }

/* ---------- Booking ---------- */
.booking { background: var(--light); }
.booking-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 8px;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}
.booking-card iframe { display: block; width: 100%; min-height: 780px; border: none; border-radius: 14px; }
.booking-note {
  text-align: center;
  margin-top: 20px;
  color: var(--gray-soft);
  font-size: 13.5px;
}

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); border-top: 3px solid var(--sky); padding: 64px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 30px; width: 30px; }
.footer-brand strong { color: var(--white); font-size: 15.5px; }
footer p.tag { color: #9fc4e6; font-size: 14px; max-width: 300px; margin: 0; }
.footer-col h4 { color: var(--white); font-size: 13.5px; letter-spacing: 0.6px; text-transform: uppercase; margin: 0 0 18px; }
.footer-col a, .footer-col p { display: flex; align-items: center; gap: 10px; color: #b9d2e8; font-size: 14.5px; margin: 0 0 14px; }
.footer-col a:hover { color: var(--white); }
.footer-col svg { color: var(--sky); flex-shrink: 0; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #7ea3c4;
  font-size: 13px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-photo, .about-photo-ring { margin: 0 auto; }
  .about-photo-wrap { text-align: center; margin-bottom: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; padding: 24px 28px 30px; gap: 18px; transform: translateY(-130%); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 80px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .accolades .wrap { gap: 30px; }
  .accolade-div { display: none; }
  .accolade-item img { height: 90px; }
  section { padding: 64px 0; }
  .booking-card iframe { min-height: 900px; }
}
