/* ==========================================================
   Nalapad Group – Base
   Loaded on every page, first. Holds the design tokens and the few
   rules every section relies on. Nothing component-specific lives here.
   ========================================================== */

/* ---------------- Design tokens ---------------- */
:root {
  /* Brand blues */
  --color-primary:       #104893;
  --color-primary-dark:  #0B3570;   /* button hover */
  --color-primary-deep:  #0A2F63;   /* footer gradient, dark end */
  --color-primary-light: #2B7BC9;   /* footer gradient, light end */
  --color-accent:        #BFD3FF;   /* light blue on dark backgrounds */
  --color-teal:          #0B7D76;

  /* Neutrals */
  --color-ink:       #0E2238;       /* headings, dark sections */
  --color-body:      #101820;       /* default body text */
  --color-text:      #4A5560;       /* paragraph grey */
  --color-text-alt:  #3B4652;       /* slightly darker paragraph grey */
  --color-muted:     #5C6773;       /* small labels */
  --color-line:      #D5DBE3;       /* dividers, input borders */
  --color-mist:      #F1F3F6;       /* icon circles, faint marks */
  --color-soft:      #F5F7FA;       /* light section background */
  --color-tint:      #EAF0F8;       /* very light primary */
  --color-white:     #FFFFFF;

  /* Feedback */
  --color-error:     #B42318;

  /* Type */
  --font-sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Layout */
  --container: 1280px;
  --gutter: 45px;
  --header-h: 100px;
  --header-h-scrolled: 100px;
  --section-y: clamp(96px, 11vw, 150px);   /* standard section top/bottom padding */

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

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

/* Sections reached from menu links (#vision, #mission…) stop below the fixed header */
section[id] { scroll-margin-top: var(--header-h-scrolled); }

/* Photo that fills its section, behind the overlay (the section needs isolation: isolate) */
.bg-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Typography ---------------- */
/* Small uppercase label above a heading */
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow--light { color: var(--color-accent); }

/* Serif section heading; components override size or margin only */
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.1;
  color: var(--color-ink);
}

/* ---------------- Accessibility ---------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--color-white);
  color: var(--color-body);
  padding: 12px 18px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------------- Scroll reveal ----------------
   The page script adds .reveal-ready to <html>/<body>; elements with .reveal
   fade up once they get .is-visible. Without JS everything stays visible. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Reduced motion ----------------
   One global rule, so components don't need their own "transition: none" blocks. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}
