/* ICC Worcester – landing page
   Palette taken from the logo (ocean blue) + launch flyer (deep navy, gold). */
:root {
  --navy: #07162f;
  --navy-2: #0b2a55;
  --blue: #008bba;
  --cyan: #2bc3e6;
  --gold: #f5b82e;
  --cream: #fff8e6;
  --white: #ffffff;
  --muted: #b9c8e0;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--white);
  background: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / top banner ---------- */
.site-header {
  position: relative; /* scrolls away with the page (not sticky) */
  top: 0;
  z-index: 20;
  background: rgba(7, 22, 47, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 195, 230, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.06) rotate(-4deg); }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffd36b);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245, 184, 46, 0.35);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--navy-2) 0%, transparent 70%),
    var(--navy);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
.hero-glow-1 {
  width: 420px; height: 420px;
  top: -120px; left: -120px;
  background: var(--blue);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 360px; height: 360px;
  bottom: -100px; right: -100px;
  background: var(--gold);
  opacity: 0.22;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #ffe08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .dot { color: var(--cyan); }

.hero-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--muted);
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 32px auto 8px;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 6px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(0, 139, 186, 0.35), rgba(11, 42, 85, 0.75));
  border: 1px solid rgba(43, 195, 230, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.count-num {
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.count-label {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.launch-live {
  margin: 28px 0 8px;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #ffd36b);
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}
.launch-live[hidden], .countdown[hidden] { display: none; }

.connect-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffd36b);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(245, 184, 46, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.connect-cta:hover,
.connect-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 184, 46, 0.5);
  outline: none;
}

/* ---------- Launch invitation image ---------- */
.invite {
  width: 100%;
  max-width: 460px;
  margin: 36px auto 0;
}

.invite-frame {
  position: relative;
  display: block;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(43, 195, 230, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: float 6s ease-in-out infinite;
}
.invite-frame:hover,
.invite-frame:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(245, 184, 46, 0.3);
  outline: none;
}

.invite-frame img {
  border-radius: 17px;
  width: 100%;
}

.invite figcaption {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.sister-link {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffd36b);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(245, 184, 46, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sister-link:hover,
.sister-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 184, 46, 0.5);
  outline: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #040d1c;
  border-top: 1px solid rgba(43, 195, 230, 0.2);
  padding: 28px 0;
  text-align: center;
}
.footer-line { font-size: 0.95rem; color: var(--muted); }
.footer-line + .footer-line { margin-top: 6px; }
.footer-line a { text-decoration: none; color: var(--white); }
.footer-line a:hover { color: var(--gold); }
.footer-line strong { color: var(--white); }
.footer-sep { margin: 0 8px; color: var(--cyan); }
.footer-small { font-size: 0.8rem; }

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, 40px); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .brand { justify-content: center; }
  .brand-text { text-align: left; align-items: flex-start; }
  .launch-pill { font-size: 0.78rem; padding: 6px 14px; }
  .hero { padding: 32px 0 48px; }
  .countdown { gap: 8px; }
  .count-box { padding: 12px 4px 10px; border-radius: 14px; }
  .count-label { font-size: 0.6rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ================= Connect page ================= */
.page-hero {
  position: relative;
  padding: 56px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--navy-2) 0%, transparent 70%),
    var(--navy);
}
.page-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #ffe08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-sub { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

.connect-section { flex: 1; padding: 8px 0 64px; background: var(--navy); }
.connect-container { max-width: 760px; }
.connect-intro { text-align: center; color: var(--muted); margin-bottom: 24px; }

.connect-form {
  background: var(--white);
  color: var(--navy);
  border-radius: 24px;
  padding: 28px 24px 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(43, 195, 230, 0.25);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-section { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form-section legend {
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }

.connect-form input[type="text"],
.connect-form input[type="email"],
.connect-form select,
.connect-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--navy);
  background: #f3f7fb;
  border: 2px solid #d3deeb;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.connect-form textarea { resize: vertical; min-height: 100px; }
.connect-form input:focus,
.connect-form select:focus,
.connect-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 139, 186, 0.18);
}

.form-hint { margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; }
.check-list { display: grid; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }

.form-actions { text-align: center; }
.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  padding: 15px 32px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #ffd36b);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(245, 184, 46, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-submit:hover:not(:disabled),
.btn-submit:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 184, 46, 0.5); outline: none; }
.btn-submit:disabled { cursor: progress; opacity: 0.85; }

.btn-spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(7, 22, 47, 0.25); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }

.form-note { margin-top: 16px; font-size: 0.8rem; color: #5b6b85; }
.form-note a { color: var(--blue); }

.alert { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; font-size: 0.95rem; }
.alert[hidden] { display: none; }
.alert-error { background: #fdecea; color: #8a1c13; border: 1px solid #f5b5af; }

/* busy overlay */
.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 13, 28, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.busy-overlay[hidden], .modal[hidden] { display: none; }
.busy-box { text-align: center; padding: 28px 36px; border-radius: 20px; background: var(--navy-2); border: 1px solid rgba(43, 195, 230, 0.35); }
.busy-box p { margin-top: 16px; font-weight: 600; }
.busy-ring { display: block; width: 52px; height: 52px; margin: 0 auto; border: 5px solid rgba(43, 195, 230, 0.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }

/* success popup */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 13, 28, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 28px 30px;
  text-align: center;
  color: var(--navy);
  background: var(--white);
  border-radius: 24px;
  border-top: 6px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.modal-logo { width: 72px; height: 72px; margin: 0 auto 14px; object-fit: contain; }
.modal-card h2 { font-size: 1.5rem; line-height: 1.25; }
.modal-card p { margin-top: 10px; color: #4a5a73; font-size: 1.05rem; }
.modal-card .modal-sign { font-weight: 700; color: var(--blue); }
.modal-card .modal-phone { margin-top: 6px; font-size: 1rem; }
.modal-card .modal-phone a { color: var(--navy); font-weight: 600; text-decoration: none; }
.modal-card .modal-phone a:hover { color: var(--blue); }
.modal-close { margin-top: 22px; min-width: 160px; }

.no-scroll { overflow: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 640px) {
  .page-hero { padding: 36px 0 28px; }
  .connect-form { padding: 22px 16px 26px; border-radius: 18px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .btn-submit { width: 100%; }
}
