/* ============================================================
   SKYMARK BUSINESS PLC — Coming Soon
   styles.css — Fully Responsive (Mobile + Tablet + Desktop)
============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
html, body { height: 100%; }

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --navy  : #07102a;
  --blue  : #1a3a9f;
  --vivid : #2563eb;
  --sky   : #3b82f6;
  --pale  : #dbeafe;
  --cyan  : #67e8f9;
  --white : #ffffff;
  --muted : rgba(147,197,253,0.5);
  --border: rgba(96,165,250,0.2);
  --glass : rgba(255,255,255,0.045);
}

/* ── BODY ───────────────────────────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(ellipse 90% 60% at 20% 10%, rgba(37,99,235,0.22) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 82% 88%, rgba(6,182,212,0.14) 0%, transparent 58%),
    linear-gradient(170deg, #06101f 0%, #091845 45%, #0b2460 75%, #0c2e72 100%);
  background-attachment: fixed;
  min-height: 100%;
  color: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Prevent overflow on small screens */
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── AMBIENT GLOW ───────────────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 55vw at 50% 42%, rgba(37,99,235,0.13) 0%, transparent 70%);
  animation: breathe 7s ease-in-out infinite;
  z-index: 0;
}

/* ── MAIN CONTAINER ─────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Responsive max-width — works on all screens */
  max-width: min(500px, 94vw);
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Responsive gap between sections */
  gap: clamp(1.4rem, 3.5vw, 2.2rem);
  text-align: center;
  /* Let page scroll on very small/short screens */
  min-height: 100vh;
  justify-content: center;
}

/* ── BRAND ──────────────────────────────────────────────────── */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* Logo: "Skymark" — letters animated in by JS */
h1 {
  font-family: 'Playfair Display', serif;
  /* Fluid font: scales from 2.4rem (mobile) to 5rem (desktop) */
  font-size: clamp(2.4rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 0 50px rgba(96,165,250,0.3);
  min-height: 1.2em; /* reserve space before letters animate in */
}

/* Each letter span injected by JS */
h1 .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
h1 .letter.show {
  opacity: 1;
  transform: translateY(0);
}
/* "mark" letters use cyan colour */
h1 .letter.cyan { color: var(--cyan); text-shadow: 0 0 28px rgba(103,232,249,0.4); }

.brand-sub {
  font-size: clamp(0.48rem, 1.5vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
  /* Starts hidden, JS reveals after brand animates */
  opacity: 0;
  transition: opacity 0.5s ease;
}
.brand-sub.show { opacity: 1; }

/* ── TYPEWRITER HEADLINE ────────────────────────────────────── */
.type-wrap {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: var(--pale);
  line-height: 1.1;
  /* Fixed height prevents layout shift as text changes */
  min-height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

/* Highlighted words in the typewriter (wrapped by JS) */
#typeText .hl {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(103,232,249,0.45);
}

/* Blinking cursor */
.cursor {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(103,232,249,0.55);
  margin-left: 1px;
  animation: blink 1s step-end infinite;
  /* Prevent cursor from wrapping onto new line */
  flex-shrink: 0;
}

/* ── LOCATION ───────────────────────────────────────────────── */
.location {
  font-size: clamp(0.6rem, 1.8vw, 0.68rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
/* All .reveal elements start hidden and fade up via JS        */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── COUNTDOWN ──────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  /* Responsive gap */
  gap: clamp(0.5rem, 2vw, 1rem);
  flex-wrap: nowrap; /* keep on one line */
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  /* Fluid width */
  min-width: clamp(58px, 14vw, 76px);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  /* Fluid padding */
  padding: clamp(0.8rem, 2.5vw, 1.3rem) clamp(0.6rem, 2vw, 1rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); /* Safari support */
  transition: transform 0.3s, border-color 0.3s;
}
.cd-unit:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.42);
}

.cd-num {
  font-family: 'Playfair Display', serif;
  /* Fluid number size */
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  text-shadow: 0 0 18px rgba(96,165,250,0.5);
  /* Prevent number jumping width on change */
  font-variant-numeric: tabular-nums;
}

.cd-lbl {
  font-size: clamp(0.42rem, 1.2vw, 0.52rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-sep {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--border);
  /* Align with numbers, offset by label height */
  padding-bottom: clamp(1rem, 3vw, 1.6rem);
  flex-shrink: 0;
}

/* ── NOTIFY FORM ────────────────────────────────────────────── */
.notify-form {
  display: flex;
  gap: 0.6rem;
  /* Stack vertically on very small screens */
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.notify-form input {
  /* Grow to fill space but not overflow */
  flex: 1 1 180px;
  max-width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 2.5vw, 0.84rem);
  color: var(--white);
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, box-shadow 0.25s;
  /* Prevent iOS zoom on focus (font-size >= 16px) */
  -webkit-appearance: none;
}
.notify-form input::placeholder { color: var(--muted); }
.notify-form input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}

.notify-form button {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--vivid), var(--blue));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.75rem, 2.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.38);
  white-space: nowrap;
  /* Proper touch target on mobile */
  min-height: 44px;
  -webkit-appearance: none;
}
.notify-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37,99,235,0.52);
}
.notify-form button:active { transform: translateY(0); }

.notify-ok {
  display: none;
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

/* ── CONTACT LINKS ──────────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.links a {
  font-size: clamp(0.72rem, 2.2vw, 0.8rem);
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  /* Proper touch target on mobile */
  display: inline-block;
  padding: 2px 0;
}
.links a:hover { color: var(--cyan); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(0.54rem, 1.5vw, 0.62rem);
  color: rgba(96,165,250,0.28);
  letter-spacing: 0.12em;
}
footer .dot  { opacity: 0.4; }
footer em    { font-style: normal; color: rgba(103,232,249,0.4); font-weight: 600; }

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}

/* ── RESPONSIVE OVERRIDES ───────────────────────────────────── */

/* Tablet — landscape phones and small tablets (576px – 768px) */
@media (min-width: 576px) {
  .notify-form { flex-wrap: nowrap; }
  .notify-form input { flex: 1; }
}

/* Short screens — very short viewport (e.g. landscape mobile) */
@media (max-height: 600px) {
  main { justify-content: flex-start; padding-top: 1.5rem; gap: 1.2rem; }
  .cd-unit { padding: 0.6rem 0.7rem; }
}


/* ============================================================
   COMPANY LOGO
   Single Skymark logo PNG centred above the page content.
   Place your logo at: logos/skymark-logo.png
============================================================ */

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The actual PNG logo */
.company-logo-img {
  width: clamp(140px, 38vw, 220px);
  height: auto;
  object-fit: contain;
  /* Make white/light logos pop on dark background */
  filter: drop-shadow(0 0 18px rgba(103,232,249,0.25));
  transition: filter 0.3s, transform 0.3s;
  display: block;
}
.company-logo-img:hover {
  filter: drop-shadow(0 0 28px rgba(103,232,249,0.45));
  transform: scale(1.04);
}

/* Text fallback — shown only when PNG is missing */
.logo-text-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.ltf-sky  { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 700; color: var(--white); line-height: 1; }
.ltf-mark { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 700; color: var(--cyan);  line-height: 1; }
.logo-text-fallback small { font-size: 0.52rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
