/* =========================================================
   Sweet Ice — homepage styles
   ========================================================= */

:root {
  --blue: #155EEF;
  --blue-600: #0F4FD1;
  --blue-700: #0B3FA8;
  --white: #FFFFFF;
  --navy: #102A43;
  --navy-70: #3E5468;
  --sky: #EFF6FF;
  --sky-2: #DCE8FF;
  --line: #E2EAF5;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 2px 8px rgba(16, 42, 67, .04);
  --shadow: 0 2px 4px rgba(16, 42, 67, .04), 0 18px 40px -12px rgba(16, 42, 67, .14);
  --shadow-blue: 0 10px 28px -8px rgba(21, 94, 239, .55);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 6vw, 80px);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 10px;
}

.text-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .2s, color .2s, border-color .2s;
}
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.btn-icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }

.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.btn-white:focus-visible { outline-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 42, 67, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--navy);
}
.wordmark-mark { width: 32px; height: 32px; }

.primary-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--sky);
}
.nav-menu a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-70);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-menu a:hover { color: var(--navy); background: var(--white); }
.nav-menu a.is-active { color: var(--blue); background: var(--white); box-shadow: var(--shadow-sm); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 18px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(820px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(21, 94, 239, .12), rgba(21, 94, 239, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--sky-2);
  border-radius: 999px;
  background: var(--sky);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .18);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.045em;
}

.hero-lede {
  margin-top: 20px;
  max-width: 40ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--navy-70);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual { position: relative; }
.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 80% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--sky) 0%, var(--sky-2) 100%);
  padding: clamp(16px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(21, 94, 239, .08);
}
.hero-art { width: 100%; height: auto; }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}
.chip-icon svg { width: 16px; height: 16px; }
.chip-top { top: 28px; left: -18px; animation: float 7s var(--ease) infinite; }
.chip-bottom { bottom: 32px; right: -14px; animation: float 8s var(--ease) infinite reverse; }

/* ---------- Generic section ---------- */
.section { padding: var(--section-y) 0; }

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-label-light { color: rgba(255, 255, 255, .8); }

.section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
}

.section-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--navy-70);
}

/* ---------- About ---------- */
.about { background: var(--sky); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.about-lede {
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.about-body p:not(.about-lede) { color: var(--navy-70); font-size: 17px; }


/* ---------- Our Approach ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-art {
  margin: 10px 10px 0;
  border-radius: calc(var(--radius-lg) - 10px);
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-2) 100%);
  padding: 12px 12px 2px;
}
.card-art svg { width: 100%; height: auto; max-height: 128px; margin-inline: auto; }
.card-body { padding: 16px 24px 22px; }
.card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card h3 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 6px; }
.card p { color: var(--navy-70); font-size: 15px; line-height: 1.55; }

/* ---------- Partner ---------- */
.partner { padding-top: 0; }
.partner-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.partner-panel::before,
.partner-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.partner-panel::before {
  width: 520px; height: 520px;
  right: -160px; top: -220px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
}
.partner-panel::after {
  width: 420px; height: 420px;
  left: -140px; bottom: -220px;
  background: radial-gradient(closest-side, rgba(11, 63, 168, .7), rgba(11, 63, 168, 0));
}
.partner .section-title { color: var(--white); }
.partner-lede {
  margin: 16px 0 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 17px);
  color: rgba(255, 255, 255, .88);
}

.partner-list-wrap {
  align-self: center;
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.partner-list-title { font-weight: 600; font-size: 15px; margin-bottom: 12px; color: rgba(255, 255, 255, .85); }
.partner-list { display: grid; gap: 8px; }
.partner-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
  transition: transform .3s var(--ease);
}
.partner-list li:hover { transform: translateX(4px); }
.step {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}
.partner-list h3 { font-size: 16px; letter-spacing: -.01em; }
.partner-list p { font-size: 14px; color: var(--navy-70); line-height: 1.45; margin-top: 1px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--sky);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.contact-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  margin-bottom: 16px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }

.contact-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-address { font-style: normal; line-height: 1.5; }
.contact-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding: 72px 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.wordmark-footer { color: var(--white); }
.footer-brand p { margin-top: 14px; max-width: 36ch; font-size: 15px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Motion ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.float-a, .float-b, .float-c { transform-box: fill-box; transform-origin: center; }
.float-a { animation: float 6s var(--ease) infinite; }
.float-b { animation: float 7.5s var(--ease) infinite .6s; }
.float-c { animation: float 6.8s var(--ease) infinite 1.2s; }
.float-slow { transform-box: fill-box; animation: float 9s var(--ease) infinite; }
.twinkle { animation: twinkle 3.5s ease-in-out infinite; }

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .chip-top { left: 8px; }
  .chip-bottom { right: 8px; }
  .partner-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 76px; left: var(--gutter); right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow), 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { padding: 14px 16px; font-size: 16px; }
  .nav-cta-mobile { display: block; margin-top: 6px; }
  .nav-cta-mobile .btn { width: 100%; color: var(--white); }
  .nav-cta-mobile .btn:hover { background: var(--blue-600); color: var(--white); }

  .about-grid { grid-template-columns: 1fr; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .cards { max-width: 560px; }
}

@media (min-width: 640px) and (max-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-chip { font-size: 12.5px; padding: 8px 12px 8px 8px; }
  .chip-icon { width: 24px; height: 24px; }
  .chip-top { top: 12px; }
  .chip-bottom { bottom: 12px; }
  .contact-card { padding: 26px; }
  .card-body { padding: 22px 24px 28px; }
  .partner-panel { border-radius: 28px; }
  .partner-list li { padding: 12px 14px; gap: 12px; }
  .footer-legal { flex-direction: column; }
}

/* Compact phone layout: keep each section within roughly one screen */
@media (max-width: 640px) {
  .section-head { margin-bottom: 22px; }
  .section-sub { margin-top: 10px; font-size: 15px; }
  .about-lede { margin-bottom: 14px; }
  .about-body p:not(.about-lede) { font-size: 15.5px; line-height: 1.6; }

  /* Approach: horizontal cards with small art */
  .cards { gap: 12px; }
  .card { flex-direction: row; align-items: center; border-radius: 22px; }
  .card:hover { transform: none; }
  .card-art {
    flex: none;
    width: 104px;
    margin: 8px 0 8px 8px;
    padding: 6px 4px;
    border-radius: 16px;
  }
  .card-art svg { max-height: 72px; }
  .card-body { padding: 12px 16px 12px 14px; }
  .card-tag { display: none; }
  .card h3 { font-size: 17px; margin-bottom: 2px; }
  .card p { font-size: 14px; line-height: 1.45; }

  /* Partnership: the paragraph already names all four items, so the list is hidden on phones */
  .partner-panel { padding: 28px 22px; gap: 0; border-radius: 24px; }
  .partner-lede { margin: 12px 0 22px; font-size: 15px; line-height: 1.55; }
  .partner .btn-lg { min-height: 50px; padding: 13px 24px; font-size: 15px; }
  .partner-list-wrap { display: none; }

  /* Contact: icon beside text */
  .contact-grid { gap: 10px; }
  .contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
  }
  .contact-icon { grid-row: span 2; width: 42px; height: 42px; margin-bottom: 0; }
  .contact-card h3 { font-size: 16px; margin-bottom: 4px; }
}
