/* ============================================================
   All In Good Company Experiences Ltd — site styles
   Mobile-first. Vertical stacking on phones,
   horizontal layout on tablet/desktop via media queries.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (drawn from the logo) */
  --ink:    #0a1730;   /* deep navy, near-black text */
  --royal:  #14387f;   /* royal blue */
  --azure:  #356bc9;   /* brighter accent blue */
  --frost:  #e7eefb;   /* very light blue */
  --mist:   #f4f7fd;   /* cool off-white section background */
  --paper:  #ffffff;
  --muted:  #5a6680;   /* muted body text */
  --line:   rgba(10, 23, 48, 0.12);

  /* Metallic blue gradient — echoes the chrome logo */
  --chrome: linear-gradient(135deg, #cfe0ff 0%, #5b8ae0 32%, #1c4794 68%, #0c224f 100%);

  /* Fonts */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

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

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Small uppercase label used throughout */
.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--azure);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(10, 23, 48, 0.06);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(10, 23, 48, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand-logo { height: 40px; width: auto; }
.header-link {
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.55em 0;
  position: relative;
  transition: color 0.25s ease;
}
.header-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--azure);
  transition: width 0.3s ease;
}
.header-link:hover { color: var(--azure); }
.header-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;       /* fallback */
  min-height: 100svh;      /* modern mobile, accounts for browser chrome */
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
  color: #fff;
  background-image:
    linear-gradient(to bottom,
      rgba(7, 16, 34, 0.62) 0%,
      rgba(7, 16, 34, 0.18) 32%,
      rgba(7, 16, 34, 0.30) 58%,
      rgba(7, 16, 34, 0.86) 100%),
    url("background.jpg");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}
.hero-inner {
  padding-top: clamp(48px, 12vh, 120px);
  padding-bottom: clamp(48px, 10vh, 110px);
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  display: inline-block;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.28);
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #ffffff 0%, #cfe0ff 55%, #8fb6f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #cfe0ff; /* fallback */
}

/* REAL CONNECTION · REAL PROGRESS · REAL IMPACT */
.triad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  font-weight: 500;
  font-size: clamp(0.76rem, 2.4vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.triad span { white-space: nowrap; }
.triad .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--azure);
  flex: 0 0 auto;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.scroll-cue .bar {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ---------- Intro / positioning ---------- */
.intro {
  background: var(--mist);
  padding: clamp(64px, 12vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}
.intro-grid { max-width: 960px; }
.intro .lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.2vw, 2.55rem);
  line-height: 1.32;
  color: var(--ink);
  margin-top: 1.4rem;
}
.intro .lead em {
  font-style: italic;
  color: var(--royal);
}

/* ---------- Services ---------- */
.services {
  background: var(--paper);
  padding: clamp(64px, 12vw, 140px) 0;
}
.services-head {
  max-width: 820px;
  margin-bottom: clamp(40px, 7vw, 72px);
}
.services-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 1rem;
}

/* The grid: 1 column (phone) -> 2 (tablet) -> 4 (desktop) */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);          /* hairline gaps between cards */
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.4s ease, transform 0.4s ease;
  position: relative;
}
.service-card:hover { background: var(--mist); }
.service-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: 1;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--royal); /* fallback */
}
.service-num::after {
  content: "";
  display: block;
  width: 38px; height: 2px;
  margin-top: 16px;
  background: var(--azure);
  opacity: 0.55;
}
.service-card h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.service-card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.62;
}

/* ---------- Contact band (atmospheric) ---------- */
.contact-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(72px, 14vw, 150px) 0;
  background-image:
    linear-gradient(rgba(7, 16, 34, 0.82), rgba(7, 16, 34, 0.9)),
    url("background.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.contact-band .eyebrow { color: rgba(255,255,255,0.78); }
.contact-band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin: 1.1rem auto 0.4rem;
  max-width: 18ch;
}
.contact-band .subline {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: rgba(255,255,255,0.86);
  font-weight: 300;
  margin-bottom: 2.2rem;
}
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 400;
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  background: #fff;
  padding: 1.05em 1.8em;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  word-break: break-word;
}
.btn-email:hover {
  transform: translateY(-3px);
  background: var(--frost);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}
.btn-email .arrow { color: var(--azure); font-weight: 500; }
.contact-loc {
  margin-top: 1.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  padding: clamp(56px, 9vw, 88px) 0 40px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: #fff;
  letter-spacing: 0.01em;
}
.footer-tag {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--azure);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2.2rem 0 1.6rem;
  align-items: center;
}
.footer-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
  font-size: 0.92rem;
}
.footer-links a:hover { color: #fff; }
.footer-links a.has-underline::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--azure);
  transition: width 0.3s ease;
}
.footer-links a.has-underline:hover::after { width: 100%; }
.footer-sep { color: rgba(255, 255, 255, 0.28); }

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal strong { color: rgba(255, 255, 255, 0.78); font-weight: 400; }

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — horizontal layouts kick in here
   ============================================================ */

/* Tablet: cards go 2 across */
@media (min-width: 620px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { height: 76px; }
  .brand-logo { height: 46px; }
}

/* Desktop: cards go 4 across (horizontal row) */
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-logo { height: 50px; }
  .hero { background-position: center 25%; }
}

/* Wide screens: a touch more breathing room */
@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
}

/* ============================================================
   LEGAL / CONTENT PAGES (privacy.html, terms.html)
   Shares the same stylesheet as the home page.
   ============================================================ */

/* Compact page header band */
.page-hero {
  position: relative;
  color: #fff;
  padding: calc(68px + clamp(56px, 12vw, 110px)) 0 clamp(40px, 8vw, 70px);
  background-image:
    linear-gradient(135deg, rgba(10, 23, 48, 0.92) 0%, rgba(20, 56, 127, 0.92) 100%),
    url("background.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--azure);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 0.8rem;
}
.page-hero .updated {
  margin-top: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.82); }

/* Readable long-form content column */
.legal {
  background: var(--paper);
  padding: clamp(48px, 9vw, 90px) 0 clamp(56px, 10vw, 100px);
}
.legal-inner { max-width: 760px; }

.legal .intro-note {
  background: var(--mist);
  border-left: 3px solid var(--azure);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 2.6rem;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 2.6rem 0 0.5rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .n {
  color: var(--azure);
  font-weight: 400;
  margin-right: 0.4em;
}
.legal h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink);
  margin: 1.6rem 0 0.4rem;
}
.legal p {
  font-size: 1rem;
  color: #34405a;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal ul {
  margin: 0 0 1.2rem 1.1rem;
  padding: 0;
}
.legal li {
  font-size: 1rem;
  color: #34405a;
  line-height: 1.7;
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
}
.legal a {
  color: var(--royal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(20, 56, 127, 0.35);
  transition: text-decoration-color 0.25s ease;
  overflow-wrap: anywhere;
}
.legal a:hover { text-decoration-color: var(--royal); }

.legal hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.8rem;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
}
.back-home:hover { color: var(--azure); }

/* ============================================================
   BRAND BAND — a larger logo moment between hero and intro
   ============================================================ */
.brand-band {
  background: #ffffff;
  text-align: center;
  padding: clamp(50px, 8vw, 92px) 0;
  border-bottom: 1px solid var(--line);
}
.brand-band .brand-rule {
  display: block;
  width: 54px;
  height: 2px;
  margin: 0 auto clamp(22px, 3.5vw, 34px);
  background: var(--azure);
  opacity: 0.6;
}
.brand-band img {
  display: block;
  margin: 0 auto;
  width: clamp(240px, 48vw, 480px);
  height: auto;
}
