/* ============================================================
   ADAMS RECRUITMENT — BASE STYLES
   Clean, white, professional. Trinidad & Tobago.
   ============================================================ */

/* ── 1. TOKENS ───────────────────────────────────────────────── */
:root {
  /* Caribbean editorial — warm ivory paper, deep teal-green, spiced terracotta */
  --bg:               #faf7f1;   /* warm ivory paper */
  --bg-soft:          #f1ebdf;   /* sand — alternating light sections */
  --ink:              #103a31;   /* deep teal-green: headings, dark bands */
  --ink-soft:         #1c4f43;
  --text:             #36403b;   /* warm slate-green */
  --muted:            #6d7872;
  --border:           #e3dccc;   /* warm paper border */
  --brand-accent:     #cf5a32;   /* spiced terracotta */
  --brand-accent-dark:#b1481f;
  --brand-accent-soft:#f6e3d7;   /* soft peach */
  --gold:             #c39a45;   /* warm gold — sparing detail accent */

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  --nav-height: 76px;
  --container:  1160px;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 2px rgba(16,58,49,0.06), 0 1px 3px rgba(16,58,49,0.05);
  --shadow-md:  0 10px 30px rgba(16,58,49,0.09);
  --shadow-lg:  0 22px 55px rgba(16,58,49,0.14);
  --ease:       200ms ease;
}

/* ── 2. RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
:where(h1, h2, h3, .section-title, .hero__title, .page-hero__title, .cta-band__title, .panel__title, .card__title) {
  font-optical-sizing: auto;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-height);
  overflow-x: hidden;
  position: relative;
}
/* Subtle paper grain over the whole page for warmth & depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.hidden { display: none !important; }
.show-on-mobile { display: none; }

/* ── 3. LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 880px; }

.section { padding: 5.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--ink  { background: var(--ink); color: #fff; }

/* ── 4. TYPOGRAPHY UTILITIES ─────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  display: block;
}
.eyebrow--light { color: var(--gold); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.12;
  margin-top: 0.75rem;
}
.section-title--light { color: #fff; }

.section-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 62ch;
  margin-top: 1rem;
}
.section-lead--light { color: rgba(255,255,255,0.72); }
.section-lead--center { margin-left: auto; margin-right: auto; }

.center { text-align: center; }

/* ── Page-load reveal: staggered rise-in for hero content ───────── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__copy > *,
.page-hero__content > * {
  animation: reveal-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero__copy > *:nth-child(1), .page-hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2), .page-hero__content > *:nth-child(2) { animation-delay: 0.14s; }
.hero__copy > *:nth-child(3), .page-hero__content > *:nth-child(3) { animation-delay: 0.23s; }
.hero__copy > *:nth-child(4), .page-hero__content > *:nth-child(4) { animation-delay: 0.32s; }
.hero__copy > *:nth-child(5)                                       { animation-delay: 0.41s; }
.hero__media { animation: reveal-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s both; }

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .page-hero__content > *, .hero__media { animation: none; }
}

/* ── Scroll-triggered reveal for below-the-fold content ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.divider {
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-accent);
  margin: 1.25rem 0 1.75rem;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ── 5. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary       { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); box-shadow: 0 6px 18px rgba(207,90,50,0.28); }
.btn-primary:hover { background: var(--brand-accent-dark); border-color: var(--brand-accent-dark); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline       { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-outline-white       { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

.btn-white       { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--brand-accent-soft); border-color: var(--brand-accent-soft); }

.btn-lg { min-height: 54px; padding: 0.95rem 2rem; font-size: 1rem; }

.btn .ext { font-size: 0.85em; opacity: 0.8; }

/* ── 6. NAV (light, brand-left) ──────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__text {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.brand__text .sub { color: var(--brand-accent); font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease);
  padding: 6px 2px;
}
.nav__link:hover,
.nav__link--active { color: var(--brand-accent); }
.nav__cta { margin-left: 0.4rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 100%; left: 0; right: 0;
  padding: 0.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.nav__mobile .btn { margin-top: 1.25rem; align-self: stretch; }

/* ── 7. PAGE HERO (interior pages) ───────────────────────────── */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16,58,49,0.94) 0%, rgba(16,58,49,0.80) 45%, rgba(16,58,49,0.55) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 5.5rem 0 5rem;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 0.75rem;
}
.page-hero__lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 54ch;
  margin-top: 1rem;
}

/* ── 8. SHARED CARDS / GRIDS ─────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
/* Gold accent bar grows in on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8cdb6; }
.card:hover::after { transform: scaleX(1); }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.card__text { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* check list */
.checklist { display: grid; gap: 0.7rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.15rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cf5a32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* pill / tag */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

/* ── 9. CTA BAND (used on most pages) ────────────────────────── */
.cta-band {
  position: relative;
  background: var(--ink);
  padding: 4.5rem 0;
  overflow: hidden;
}
/* Soft terracotta + gold glow for atmospheric depth */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 88% 12%, rgba(207,90,50,0.30) 0%, transparent 55%),
    radial-gradient(50% 100% at 8% 95%, rgba(195,154,69,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.cta-band__sub { font-size: 0.975rem; color: rgba(255,255,255,0.65); max-width: 52ch; line-height: 1.6; }
.cta-band__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ── 10. FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(207,90,50,0.16);
}
.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366727f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1.5rem; }

.banner {
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}
.banner--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.form-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── 11. FOOTER ──────────────────────────────────────────────── */
.footer__wrapper { background: var(--ink); color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.75rem 0 2.75rem;
}
.footer__brand-mark { width: 40px; height: 40px; margin-bottom: 1rem; }
.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}
.footer__brand-name .sub { color: var(--gold); }
.footer__tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 30ch; }

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__link { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color var(--ease); }
.footer__link:hover { color: #fff; }
.footer__contact-line { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 0.55rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer__copy { font-size: 0.825rem; color: rgba(255,255,255,0.4); }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { font-size: 0.825rem; color: rgba(255,255,255,0.4); transition: color var(--ease); }
.footer__legal a:hover { color: rgba(255,255,255,0.75); }

/* ── 12. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 66px; }
  .container { padding: 0 1.5rem; }
  .section { padding: 3.75rem 0; }

  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: block; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .page-hero__content { padding: 3.25rem 0 3rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .cta-band { padding: 3.25rem 0; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; }

  .form-row { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 1.75rem; padding: 2.75rem 0 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .footer__top { grid-template-columns: 1fr; }
  .brand__text { font-size: 1.05rem; }
}
