/* ===== Base ===== */
:root{
  --brand:#0b63d1;
  --brand-dark:#084b9e;
  --text:#111827;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  overflow-x:hidden;
}

/* ===== Navbar ===== */
header{
  position:sticky; top:0; z-index:1000;
  background:#fff; border-bottom:1px solid #e5e7eb;
}
.navbar{
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px;
}
.logo{ font-weight:700; color:var(--brand); }
.nav-links{ list-style:none; display:flex; gap:22px; margin:0; padding:0; }
.nav-links a{
  color:#111; text-decoration:none; padding:6px 0;
}
.nav-links a.active{ color:var(--brand); font-weight:600; }

/* ===== Hero (video full screen) ===== */
.hero{
  position:relative;
  height:calc(100vh - 56px); /* full screen minus header height */
  overflow:hidden;
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
}
.hero .overlay{
  position:absolute; inset:0;
  background:rgba(0,0,0,.30); /* keeps text readable without blur */
}
.hero-content{
  position:relative; z-index:1; height:100%;
  display:grid; place-items:center; text-align:center; color:#fff;
  padding:0 1rem;
}
.hero h2{ font-size:clamp(2rem,4vw,3.2rem); margin:0 0 .5rem; }
.hero p { font-size:clamp(1rem,1.6vw,1.2rem); margin:.25rem 0 1rem; opacity:.95; }

.hero-buttons{ display:inline-flex; gap:.75rem; flex-wrap:wrap; justify-content:center; }
.btn{
  background:var(--brand); color:#fff; text-decoration:none;
  padding:.8rem 1.2rem; border-radius:10px; transition:background .2s ease;
}
.btn:hover{ background:var(--brand-dark); }
.btn.outline{
  background:transparent; border:2px solid #fff;
}
.btn.outline:hover{ background:rgba(255,255,255,.12); }

/* ===== Footer ===== */
footer{
  background:#111; color:#cbd5e1; text-align:center; padding:16px 12px;
  font-size:.95rem;
}

/* ===== Small screens ===== */
@media (max-width:640px){
  .nav-links{ gap:14px; }
}

/* ---------- Mobile polish ---------- */

/* Keep content off the edges on small screens */
:root { --page-pad: 16px; }
@media (max-width: 640px) {
  body { padding-left: var(--page-pad); padding-right: var(--page-pad); }
}

/* Navbar: stack neatly and keep tap targets comfortable */
@media (max-width: 720px) {
  .navbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    height: auto;            /* allow it to grow; avoids overlap with hero */
  }
  .logo {
    font-size: 1.15rem;
    flex: 1 1 100%;
    text-align: left;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 14px;               /* roomy tap targets */
    margin-top: 2px;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}

/* Hero: make video behave and text readable on phones */
.hero,
.hero-full {                /* whichever class your hero uses */
  min-height: 88svh;        /* “small viewport” height = better on iOS */
}
.hero video,
.hero-full video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;  /* center focal point on tall screens */
}

/* Overlay text sizing with fluid clamp values */
.hero-title {
  /* example: adjust if your class name differs */
  font-size: clamp(1.6rem, 5.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  line-height: 1.35;
  margin-top: 8px;
  max-width: 40ch;          /* keep lines readable */
}

/* Buttons: bigger tap targets on phones */
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}
@media (max-width: 560px) {
  .cta-row {                /* your container for the two buttons */
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .btn {
    flex: 1 1 auto;
    min-width: 150px;
    text-align: center;
  }
}

/* Footer: smaller padding on mobile so it doesn’t crowd */
@media (max-width: 560px) {
  footer { padding: 14px 0; font-size: 0.9rem; }
}

/* Optional: if your header is fixed, add safe area offset on iOS */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar { padding-top: calc(10px + env(safe-area-inset-top)); }
}

/* Prevent iOS from showing video controls when tapped (for background videos) */
.hero video::-webkit-media-controls { display: none !important; }
