/* styles.css (FULL FILE)
   CHANGES (MINIMAL + SAFE):
   1) brand__mark uses logo.png (same directory) — unchanged
   2) logo is bigger (desktop + mobile) — ONLY size change
   3) Mobile optimization for the "Delivery approach" section WITHOUT removing sticky feature
      - keeps scroll-story behavior
      - prevents text overlap by letting the sticky area size naturally on small screens
*/

:root{
  --max:1120px;
  --topbar-h: 64px;

  --bg:#f6f8fb;
  --bg2:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line: rgba(15, 23, 42, .12);

  --accent:#1d4ed8;
  --accent2:#0ea5e9;

  --card:#ffffff;
  --shadow: 0 14px 34px rgba(15,23,42,.10);
  --shadow-soft: 0 8px 22px rgba(15,23,42,.08);

  --radius:16px;
  --radius2:22px;

  --pad: clamp(16px, 3vw, 28px);
  --s-1: clamp(8px, 1.2vw, 12px);
  --s-2: clamp(12px, 1.8vw, 18px);
  --s-3: clamp(16px, 2.6vw, 26px);
  --s-4: clamp(22px, 3.6vw, 38px);
  --s-5: clamp(30px, 5vw, 56px);

  --fs-hero: clamp(34px, 4.3vw, 50px);
  --fs-h2: clamp(22px, 2.4vw, 30px);
  --fs-h3: clamp(16px, 1.6vw, 18px);
  --fs-body: clamp(14px, 1.2vw, 16px);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }

.container{
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin:0 auto;
}

::selection{
  background: rgba(29,78,216,.18);
}

/* =========================
   Topbar
   ========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand__mark{
  /* ✅ ONLY CHANGE: bigger logo size (still same look) */
  width:44px;
  height:44px;
  border-radius:10px;

  /* ✅ LOGO FROM SAME DIRECTORY */
  background-image: url("logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  /* nice shadow stays */
  box-shadow: 0 10px 18px rgba(29,78,216,.18);
}

.brand__name{
  font-weight:900;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  gap:8px;
}

.nav a{
  font-size:14px;
  color: var(--muted);
  padding:8px 10px;
  border-radius:10px;
  transition: background .18s ease, color .18s ease;
}

.nav a:hover{
  background: rgba(15,23,42,.04);
  color: var(--text);
}

.navbtn{
  display:none;
  width:44px;
  height:40px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
}

.navbtn span{
  width:18px;
  height:2px;
  background: rgba(15,23,42,.70);
  border-radius:999px;
}

.mobileNav{
  border-top:1px solid var(--line);
  background:#fff;
}

.mobileNav__inner{
  padding:10px 0 16px;
  display:grid;
  gap:8px;
}

.mobileNav__link{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  color: var(--muted);
  background:#fff;
  transition: background .18s ease, color .18s ease;
}

.mobileNav__link:hover{
  color:var(--text);
  background: rgba(15,23,42,.03);
}

/* =========================
   Buttons / Chips
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  font-weight:800;
  font-size:14px;
  transition: transform .12s ease, filter .18s ease, background .18s ease;
}

.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--accent);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(29,78,216,.16);
}

.btn--primary:hover{ filter: brightness(.96); }

.btn--ghost{
  background:#fff;
  color: var(--text);
}

.btn--ghost:hover{ background: rgba(15,23,42,.03); }

.btn--full{ width:100%; }

.chip{
  font-size:12px;
  color: var(--muted);
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  background:#fff;
}

/* =========================
   Typography helpers
   ========================= */
.kicker{
  display:inline-block;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--muted);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
}

.h2{
  font-size: var(--fs-h2);
  margin:0 0 var(--s-1);
  letter-spacing:-.01em;
  font-weight:900;
}

.h3{
  font-size: var(--fs-h3);
  margin:0;
  font-weight:900;
}

.lead{
  font-size: clamp(14px, 1.35vw, 16px);
  line-height:1.75;
  margin:0 0 var(--s-1);
}

.muted{
  color: var(--muted);
  line-height:1.75;
  margin:0;
}

.fineprint{
  color: rgba(71,85,105,.92);
  font-size:12px;
  line-height:1.55;
}

/* =========================
   Cards
   ========================= */
.card{
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius2);
  box-shadow: var(--shadow-soft);
}

/* =========================
   Hero
   ========================= */
.hero{ padding: var(--s-5) 0 var(--s-3); }

.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-3);
  align-items:start;
}

.hero__title{
  margin: var(--s-2) 0 var(--s-1);
  font-size: var(--fs-hero);
  line-height:1.06;
  letter-spacing:-.02em;
}

.hero__desc{
  margin:0 0 var(--s-2);
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height:1.7;
  max-width:60ch;
}

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: var(--s-2) 0 var(--s-1);
}

.hero__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: var(--s-1);
}

.mediaCard{
  position:relative;
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow);
}

.mediaCard img{
  width:100%;
  height:auto;
  aspect-ratio: 16 / 10;
  object-fit:cover;
  display:block;
}

.mediaCard__overlay{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  padding:12px 14px;
  border-radius:16px;
  background: rgba(255,255,255,.90);
  border:1px solid var(--line);
  backdrop-filter: blur(8px);
}

.mediaCard__label{ font-weight:900; }
.mediaCard__sub{ color: var(--muted); font-size:13px; margin-top:2px; }

/* =========================
   Sections / Layout
   ========================= */
.section{ padding: var(--s-5) 0; }

.section--alt{
  background: rgba(15,23,42,.02);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.sectionHead{ margin-bottom: var(--s-2); max-width: 72ch; }

.twoCol{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-3);
  align-items:start;
}

.photoCard{ overflow:hidden; }
.photoCard img{
  width:100%;
  height:auto;
  aspect-ratio: 16 / 10;
  object-fit:cover;
  display:block;
}
.photoCard__caption{
  padding:14px 16px;
  border-top:1px solid var(--line);
}
.photoCard__title{ font-weight:900; }
.photoCard__sub{ color: var(--muted); font-size:13px; margin-top:2px; }

.bullets{ display:grid; gap:10px; margin-top: var(--s-2); }
.bullet{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.bullet__icon{
  width:28px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(29,78,216,.10);
  border:1px solid rgba(29,78,216,.20);
  color: var(--accent);
  font-weight:900;
}
.bullet__text{ color: var(--muted); line-height:1.6; }
.bullet__text strong{ color: var(--text); }

.grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.service{ padding:18px; }
.service__top{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.service__icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.18);
  font-weight:900;
  color:#0369a1;
}

.why{ padding:18px; }
.why__title{ font-weight:900; margin-bottom:8px; }

/* =========================
   Contact
   ========================= */
.contactGrid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-2);
  align-items:start;
}

.contactCards{
  display:grid;
  gap:10px;
  margin-top: var(--s-2);
}

.contactCard{ padding:14px 16px; }
.contactCard__label{ color: var(--muted); font-size:12px; }
.contactCard__value{ margin-top:6px; display:inline-block; font-weight:900; }

/* =========================
   Footer
   ========================= */
.footer{ padding: 26px 0 34px; }

.footer__inner{
  border-top:1px solid var(--line);
  padding-top:16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.footer__brand{ font-weight:900; }
.footer__muted{ color: var(--muted); font-size:13px; margin-top:4px; }

.footer__right a{
  color: var(--muted);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  transition: background .18s ease, color .18s ease;
}
.footer__right a:hover{
  color: var(--text);
  background: rgba(15,23,42,.03);
}

/* =========================
   Scroll Story (Sticky + Zoom)
   ========================= */
.story{ padding: var(--s-4) 0 0; }

.story__header{
  max-width: 72ch;
  margin-bottom: var(--s-2);
}

.story__track{
  height: 220vh;
  position: relative;
}

.story__sticky{
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15,23,42,.02);
}

.story__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-2);
  align-items: center;
}

.story__copy{
  position: relative;
  padding: 18px 0;
}

.story__step{
  opacity: .28;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.story__step:last-child{ border-bottom: none; }

.story__step.is-active{
  opacity: 1;
  transform: translateY(0);
}

.story__progress{
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  position: relative;
  overflow: hidden;
}

.story__progress span{
  position:absolute;
  top:0; left:0;
  height:100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width .1s linear;
}

.story__visual{
  display:flex;
  flex-direction: column;
  justify-content:center;
}

.storyCard{
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
  transform: translateZ(0);
}

.storyCard img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display:block;
  transform: scale(1) translateY(0);
  will-change: transform;
}

.storyOverlay{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
}

.storyOverlay__label{ font-weight: 900; }
.storyOverlay__sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.story__note{
  margin-top: 10px;
  max-width: 520px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  :root{ --topbar-h: 62px; }

  .hero__grid,
  .twoCol,
  .contactGrid,
  .story__grid{
    grid-template-columns: 1fr;
  }

  .nav{ display:none; }
  .navbtn{ display:flex; }

  .storyCard{ max-width: 680px; }
  .story__note{ max-width: 680px; }
}

/* ✅ MOBILE OPTIMIZATION (keeps sticky feature, prevents overlap) */
@media (max-width: 680px){
  .hero{ padding: var(--s-4) 0 var(--s-3); }

  /* Slightly smaller header logo on phones (still bigger than original) */
  .brand__mark{
    width:40px;
    height:40px;
  }

  /*
    Key fix:
    On small screens, stacking copy + visual inside a fixed sticky height can cause
    text to collide visually. We keep sticky, but allow the sticky area to grow.
  */
  .story__sticky{
    height: auto;                 /* was calc(100vh - var(--topbar-h)) */
    min-height: calc(100vh - var(--topbar-h));
    align-items: flex-start;      /* gives content breathing room */
    padding: var(--s-2) 0;
  }

  /* Give more spacing between stacked items */
  .story__grid{
    gap: var(--s-3);
  }

  /* Ensure steps never visually collide */
  .story__copy{
    padding: 0;
  }

  /* Mobile readability (no behavior removal) */
  .story__step{
    transform: none;
  }
}
/* =========================================================
   RESPONSIVE SAFETY PATCH (paste at VERY BOTTOM)
   - Keeps your current look + features
   - Fixes: overlay box looking wrong, text clipping on small screens/heights
   ========================================================= */

/* Make all images behave responsively */
img{
  max-width: 100%;
  height: auto;
}

/* Ensure overlays always sit above images (prevents “blank white box” issues) */
.mediaCard{ position: relative; }
.mediaCard img{ position: relative; z-index: 0; }
.mediaCard__overlay{
  position: absolute;
  z-index: 2;
}

.storyCard{ position: relative; }
.storyCard img{ position: relative; z-index: 0; }
.storyOverlay{
  position: absolute;
  z-index: 2;
}

/* Extra small phones: tighten overlay spacing + font so it doesn’t break */
@media (max-width: 520px){
  .mediaCard__overlay{
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .mediaCard__label{ font-size: 14px; }
  .mediaCard__sub{ font-size: 12px; }
}

/* Small screen HEIGHTS (common on phones / small browser windows):
   prevents sections from “cutting off” text while keeping sticky feature */
@media (max-height: 720px){
  .story__sticky{
    height: auto; /* allow content to fit */
    min-height: calc(100vh - var(--topbar-h));
    align-items: flex-start;
    padding: var(--s-2) 0;
  }

  .section{
    padding: var(--s-4) 0; /* slightly less padding so content fits */
  }
}

/* =========================================================
   FIX: Prevent overlap when window height is small (resized)
   Keeps your current look + sticky feature for normal screens
   ========================================================= */

@media (max-height: 760px){
  /* Let the section size naturally instead of forcing sticky full height */
  .story__track{
    height: auto;
  }

  /* Turn off sticky ONLY for short viewports to stop overlap */
  .story__sticky{
    position: static;
    height: auto;
    top: auto;
    align-items: flex-start;
    padding: var(--s-2) 0;
  }
}
