/* ============================================================
   True North Sales & Marketing Inc. — Global Stylesheet
   Primary: #29398F | Accent: #3A75BB
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #29398F;
  --blue:   #3A75BB;
  --light:  #EEF3FB;
  --white:  #FFFFFF;
  --dark:   #111827;
  --gray:   #6B7280;
  --border: #D1D5DB;
  --success:#16A34A;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(41,57,143,.12);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { max-width: 72ch; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }
.section    { padding-block: 5rem; }
.section--alt { background: var(--light); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58,117,187,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-weight: 600;
  color: var(--dark);
  font-size: .95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-color: var(--navy);
}
.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding-block: 7rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,.25);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p  { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Section Headers ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub   { color: var(--gray); font-size: 1.05rem; max-width: 60ch; }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin-inline: auto; }

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(41,57,143,.18);
  line-height: 0;
}
.about-team-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .45s ease;
}
.about-photo-wrap:hover .about-team-photo {
  transform: scale(1.02);
}

/* ── Core Values ──────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(var(--navy), var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card:hover::before { transform: scaleY(1); }
.value-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--light);
  line-height: 1;
  margin-bottom: .75rem;
}
.value-card h3 { font-size: 1rem; margin-bottom: .6rem; }
.value-card p  { font-size: .9rem; color: var(--gray); max-width: none; }

/* ── Why Join ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.why-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.why-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.why-card p  { font-size: .9rem; color: var(--gray); max-width: none; }

/* ── Careers photo strip ──────────────────────────────────── */
.careers-photo-wrap {
  margin-top: 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(41,57,143,.15);
  line-height: 0;
}
.careers-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: 16px;
}
.careers-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(41,57,143,.75) 0%, transparent 100%);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 2rem 1.75rem 1.25rem;
  border-radius: 0 0 16px 16px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  overflow: hidden;
}
.cta-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: stretch;
  min-height: 440px;
}
.cta-photo-side {
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}
.cta-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: .88;
  transform: rotate(-90deg);
}
.cta-content {
  padding: 4.5rem 4rem 4.5rem 3.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 52ch; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: auto; max-height: 52px; width: auto; max-width: 200px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p   { font-size: .9rem; line-height: 1.7; }
.footer-col h4    { color: var(--white); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul    { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a  { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom    { padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.footer-legal     { display: flex; gap: 1.5rem; }
.footer-legal a   { color: rgba(255,255,255,.5); }
.footer-legal a:hover { color: var(--white); }

/* ── Application Form Page ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding-block: 4.5rem 3.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.85); margin-inline: auto; font-size: 1.05rem; }

.form-section { padding-block: 4rem; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 780px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group label span { color: #DC2626; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,117,187,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select   { appearance: none; 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 fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-hint { font-size: .8rem; color: var(--gray); }

.form-submit { margin-top: 1.75rem; text-align: center; }
.form-submit .btn { padding: 1rem 3rem; font-size: 1rem; }

/* Alert / Toast */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.alert-success { background: #DCFCE7; color: var(--success); border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.alert-icon    { font-size: 1.25rem; flex-shrink: 0; }

/* ── Legal Pages ──────────────────────────────────────────── */
.legal-body { padding-block: 4rem; }
.legal-content {
  max-width: 820px;
  margin-inline: auto;
  font-size: .975rem;
  line-height: 1.8;
}
.legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.legal-content p  { margin-bottom: 1rem; max-width: none; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: .4rem; }
.legal-updated {
  display: inline-block;
  background: var(--light);
  color: var(--gray);
  font-size: .8rem;
  padding: .3rem .75rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    gap: 1.25rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-cta.open { display: block; padding: 0 1.5rem 1.5rem; position: fixed; top: calc(76px + 200px); left: 0; right: 0; background: var(--white); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 2rem 1.5rem; }
  .hero { padding-block: 5rem 4rem; }
  .careers-photo { height: 260px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-photo-side { height: 260px; }
  .cta-photo { height: 260px; }
  .cta-content { padding: 3rem 1.5rem; text-align: center; }
  .cta-banner p { margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Scroll animations ────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
