/* ==========================================================================
   SAIRAMCONNECT — Coming Soon
   Visual system per "SairamConnect.in / Website Redesign Master Package"
   Section 04 (colour, typography, grid) and Section 18 (motion, responsive).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — no colours outside this set */
  --navy:        #081521;  /* Primary dark background, hero, footer */
  --ink:         #111827;  /* Body text on light backgrounds */
  --ivory:       #F6F4EF;  /* Primary light background */
  --cobalt:      #315CF5;  /* Single digital accent */
  --steel:       #66717F;  /* Secondary copy, labels, metadata */
  --mist:        #F1F3F5;  /* Cards, quote fields, quiet separators */
  --white:       #FFFFFF;

  /* Accessible tints of white for use on navy (Steel fails 4.5:1 on navy) */
  --on-navy-muted:  #A9B2BC;
  --on-navy-hair:   rgba(255, 255, 255, 0.14);

  /* 1px editorial hairline on light backgrounds (Mist is too faint on Ivory) */
  --hairline:       rgba(17, 24, 39, 0.13);

  /* Type */
  --font-sans: "Inter", "Neue Haas Grotesk Display Pro", "Helvetica Neue",
               Helvetica, Arial, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Grid & spacing */
  --shell-max: 1280px;   /* within the 1240–1320px band */
  --gutter: 24px;
  --section-y: 148px;    /* 120–160px desktop */
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 19px;              /* 18–20px desktop */
  line-height: 1.6;             /* 1.5–1.65 */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.rule {
  border: 0;
  height: 1px;
  margin: 0;
}

a { color: var(--cobalt); }

/* --------------------------------------------------------------------------
   3. Layout shell
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link — visible on keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}
.hero :focus-visible,
.masthead :focus-visible,
.footer :focus-visible {
  outline-color: var(--white);
}

/* --------------------------------------------------------------------------
   4. Masthead
   -------------------------------------------------------------------------- */
.masthead {
  background-color: var(--navy);
  padding-block: 30px;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.wordmark__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead__status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--navy);
  color: var(--white);
  padding-block: clamp(72px, 11vw, 168px) clamp(84px, 12vw, 176px);
}

.hero__inner {
  max-width: 1280px;
}

.hero__heading {
  max-width: 8.4em;                      /* scales with the type, so the line
                                            break stays after SAIRAMCONNECT */
  font-family: var(--font-display);
  font-size: clamp(34px, 6.6vw, 74px);   /* 64–78px desktop */
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.012em;               /* caps need positive tracking */
  text-transform: uppercase;
}

.rule--accent {
  width: 96px;
  background-color: var(--cobalt);
  margin-top: clamp(40px, 5vw, 64px);
}

.hero__positioning {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: clamp(17px, 2.1vw, 25px);   /* H3 register */
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__capabilities {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.08em;               /* eyebrow tracking */
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

.cap__dot {
  color: var(--cobalt);
  padding-inline: 12px;
}

/* --------------------------------------------------------------------------
   6. Statement (body copy)
   -------------------------------------------------------------------------- */
.statement {
  background-color: var(--white);
  padding-block: var(--section-y);
}

.statement__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 80px;
  align-items: start;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.9vw, 47px);   /* H2: 40–52px */
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

.prose {
  max-width: 68ch;                       /* 65–72 characters */
}

.prose p + p { margin-top: 28px; }

.prose__mark {
  padding-left: 24px;
  border-left: 1px solid var(--cobalt);
  font-weight: 500;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   7. Questions
   -------------------------------------------------------------------------- */
.questions {
  background-color: var(--ivory);
  padding-block: var(--section-y);
  border-top: 1px solid var(--hairline);
}

/* Keep the questions on the same left grid line as the hero and the lede. */
.question--single,
.question-list {
  max-width: 900px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.question {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.05vw, 39px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--ink);
}

.question--single { margin-top: 20px; }

.rule--divider {
  max-width: 900px;
  background-color: var(--hairline);
  margin-block: clamp(48px, 6vw, 76px);
}

.question-list {
  margin-top: 12px;
  border-top: 1px solid var(--hairline);
}

.question-list .question {
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 88px);
}

.footer__inner {
  display: grid;
  gap: 10px;
}

.footer__mark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__line {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

.footer__legal {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--on-navy-hair);
  font-size: 13px;
  color: var(--on-navy-muted);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   9. Motion — restrained entry only (Section 18)
   -------------------------------------------------------------------------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  animation: reveal-up 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.reveal--d1 { animation-delay: 120ms; }
.reveal--d2 { animation-delay: 240ms; }

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }             /* tablet gutter */

  .statement__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 16px;                     /* mobile gutter */
    --section-y: 84px;                  /* 72–96px mobile */
  }

  body { font-size: 17.5px; }           /* never below 17px */

  .masthead { padding-block: 22px; }

  .masthead__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero__heading {
    /* SAIRAMCONNECT is one unbreakable 13-letter word: below 700px the type
       must track the viewport so it never clips. */
    max-width: 8.6em;                    /* keeps the same break on phones */
    font-size: clamp(29px, 8.6vw, 58px);
    letter-spacing: 0.008em;
  }

  .hero__capabilities { letter-spacing: 0.07em; }

  .cap__dot { padding-inline: 8px; }

  .prose__mark { padding-left: 18px; }
}

@media (max-width: 380px) {
  .hero__capabilities .cap__dot:nth-of-type(2) { padding-inline: 6px; }
}

/* --------------------------------------------------------------------------
   11. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media print {
  .hero,
  .footer,
  .masthead {
    background: none !important;
    color: #000 !important;
  }
  .reveal { animation: none; opacity: 1; transform: none; }
}
