/* ============================================================
   GUARDIAN GROUP — site.css
   Marketing site (Home, About, Services, Contact).
   Self-contained — does not depend on survey.css/admin.css/etc,
   so the marketing site and the app can evolve independently.
   Brand: #16435B (dark), #2A5C76 (mid), #52829C (steel),
          #77A4BC (light), #C8DCE9 (pale), #F6F6F6 (off-white)
   Font: Barlow + Barlow Condensed
   ============================================================ */

:root {
  --gg-dark:    #16435B;
  --gg-mid:     #2A5C76;
  --gg-steel:   #52829C;
  --gg-light:   #77A4BC;
  --gg-pale:    #C8DCE9;
  --gg-off:     #F6F6F6;
  --gg-white:   #FFFFFF;
  --gg-black:   #0D1B24;
  --gg-text:    #1C3444;
  --gg-muted:   #6B8FA3;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(22,67,91,0.10);
  --shadow-lg:  0 8px 48px rgba(22,67,91,0.16);

  --font-body: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;

  --transition: 0.2s ease;
  --nav-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  background: var(--gg-white);
  color: var(--gg-text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--gg-mid);
  color: var(--gg-white);
  box-shadow: 0 4px 16px rgba(42,92,118,0.3);
}
.btn-primary:hover {
  background: var(--gg-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,92,118,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gg-mid);
  border: 2px solid var(--gg-mid);
  padding: 11px 28px;
}
.btn-outline:hover {
  background: var(--gg-mid);
  color: var(--gg-white);
}
.btn-outline-light {
  background: transparent;
  color: var(--gg-white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 11px 28px;
}
.btn-outline-light:hover {
  background: var(--gg-white);
  color: var(--gg-dark);
  border-color: var(--gg-white);
}
.btn:focus-visible,
.nav-link:focus-visible,
.nav-login:focus-visible,
.nav-logo:focus-visible,
.nav-dropdown-toggle:focus-visible,
.nav-toggle:focus-visible,
.info-card:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--gg-light);
  outline-offset: 3px;
}
.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  background: var(--gg-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.nav-inner {
  position: relative;
  margin: 0;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img { height: 60px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gg-white);
  letter-spacing: 0.08em;
  line-height: 1.0;
}
.nav-logo-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gg-pale);
  opacity: 0.75;
  margin-top: 0px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
/* Above this width there's guaranteed clearance past the logo for the
   links to align with the hero text's left edge instead of centering. */
@media (min-width: 1320px) {
  .nav-links {
    flex: none;
    position: absolute;
    left: max(24px, calc(100vw - 972px));
    top: 50%;
    transform: translateY(-50%);
  }
}
.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gg-pale);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gg-white);
  background: rgba(255,255,255,0.08);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gg-pale);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.current .nav-dropdown-toggle {
  color: var(--gg-white);
  background: rgba(255,255,255,0.08);
}
.nav-caret {
  font-size: 12px;
  transition: transform var(--transition);
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gg-text);
  padding: 10px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-dropdown-menu a:hover {
  background: var(--gg-off);
  color: var(--gg-mid);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-login {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gg-white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-login:hover {
  border-color: var(--gg-white);
  background: rgba(255,255,255,0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gg-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-link-mobile-only { display: none; }

/* ── MOBILE NAV ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--gg-dark);
    padding: 12px 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .site-nav.mobile-open .nav-link-mobile-only {
    display: block;
    margin-top: 8px;
    text-align: center;
    border: 1.5px solid rgba(255,255,255,0.4);
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    display: none;
    min-width: 0;
    margin-top: 4px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { color: var(--gg-pale); }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--gg-white); }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--gg-dark) 0%, var(--gg-mid) 100%);
  padding: 100px 18px 92px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.hero::before {
  content: '';
  position: absolute;
  top: 56%;
  left: -280px;
  width: 800px; height: 800px;
  transform: translateY(-52%);
  background: url('../assets/gg-shield.png') no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gg-pale);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  color: var(--gg-white);
  line-height: 1.08;
  margin-bottom: 25px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-rotator {
  display: inline-block;
  color: var(--gg-light);
}
.hero-rotator-word {
  display: inline-block;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.hero-rotator-word.is-swapping {
  opacity: 0;
  transform: translateX(20px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.hero-subtitle {
  max-width: 800px;
  font-size: 16px;
  color: var(--gg-pale);
  opacity: 0.92;
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Smaller hero for interior pages */
.page-hero {
  padding: 64px 18px 56px;
  text-align: left;
}
.page-hero .hero-inner { max-width: 1160px; }
.page-hero .hero-title {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: 0.015em;
}
.page-hero .hero-subtitle { font-size: 17px; margin-bottom: 0; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section {padding: 88px 18px;}
.section-alt { background: var(--gg-off); padding-top: 48px; padding-bottom: 120px; }
.section-alt .section-title { font-size: clamp(32px, 5vw, 48px); }
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.section-inner.narrow { max-width: 780px; }

.story-layout {
  display: flex;
  gap: 56px;
  align-items: center;
}
.story-photo {
  width: 44%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  object-fit: cover;
  object-position: 25% 50%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-left: -80px;
}
.story-content { flex: 1; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gg-steel);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--gg-dark);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: 18px;
  color: var(--gg-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 12px;
}
.section-body p {
  font-size: 16px;
  color: var(--gg-text);
  line-height: 1.6;
  margin-bottom: 18px;
}
.section-body p:last-child { margin-bottom: 0; }

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

/* ── CARD GRID ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.info-card {
  background: var(--gg-white);
  border: 1.5px solid var(--gg-pale);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all var(--transition);
}
.info-card:hover {
  border-color: var(--gg-steel);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.info-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(42,92,118,0.08);
  color: var(--gg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.info-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.info-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--gg-dark);
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.info-card-desc {
  font-size: 14.5px;
  color: var(--gg-muted);
  line-height: 1.65;
  flex: 1;
}
.info-card-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gg-mid);
  margin-top: 4px;
}
.info-card:hover .info-card-link { color: var(--gg-dark); }

/* ── GUARDIAN GROUP WAY ──────────────────────────────────── */
.way-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}
.way-item {
  display: flex;
  gap: 48px;
  padding: 40px 0;
  border-top: 1.5px solid var(--gg-pale);
}
.way-item:first-child { border-top: none; padding-top: 0; }
.way-item:last-child { padding-bottom: 0; }
.way-title {
  flex: 0 0 240px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gg-dark);
  line-height: 1.2;
}
.way-body { flex: 1; }
.way-body p {
  font-size: 15.5px;
  color: var(--gg-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.way-body p:last-child { margin-bottom: 0; }
.values-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}
.values-list li {
  font-size: 15.5px;
  color: var(--gg-text);
  line-height: 1.6;
}
.values-list li strong { color: var(--gg-dark); }

/* ── TEAM ────────────────────────────────────────────────── */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
}
.team-member {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.team-member.reverse { flex-direction: row-reverse; }
.team-photo {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.team-content { flex: 1; }
.team-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gg-dark);
  line-height: 1.2;
}
.team-role {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gg-steel);
  margin-top: 4px;
  margin-bottom: 16px;
}
.team-content p {
  font-size: 15.5px;
  color: var(--gg-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.team-certs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px solid var(--gg-pale);
}
.team-certs-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-mid);
  margin-bottom: 10px;
}
.team-certs ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
}
.team-certs li {
  font-size: 14px;
  color: var(--gg-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.team-certs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gg-steel);
}

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--gg-dark) 0%, var(--gg-mid) 100%);
  padding: 72px 24px;
  text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .section-title { color: var(--gg-white); }
.cta-band .section-lead { color: var(--gg-pale); opacity: 0.9; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gg-steel);
}
.contact-info-value {
  font-size: 16px;
  color: var(--gg-text);
}
.contact-info-value a { color: var(--gg-mid); }
.contact-info-value a:hover { text-decoration: underline; }

.contact-form {
  background: var(--gg-white);
  border: 1.5px solid var(--gg-pale);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gg-dark);
}
.field-input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--gg-pale);
  border-radius: var(--radius);
  background: var(--gg-off);
  color: var(--gg-text);
  transition: border-color var(--transition);
}
.field-input:focus {
  outline: none;
  border-color: var(--gg-mid);
  background: var(--gg-white);
}
textarea.field-input { resize: vertical; min-height: 110px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--gg-black);
  color: var(--gg-pale);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-logo { height: 64px; margin-bottom: 14px; }
.footer-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--gg-white);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--gg-light);
  line-height: 1.4;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gg-white);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 16px;
  color: var(--gg-light);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gg-white); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gg-steel);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .team-member,
  .team-member.reverse { flex-direction: column; }
  .team-photo { margin: 0 auto; }
  .team-name,
  .team-role { text-align: center; }
  .team-certs ul { grid-template-columns: 1fr; }
  .story-layout { flex-direction: column; }
  .story-photo { width: 100%; max-width: 100%; aspect-ratio: auto; margin-left: 0; }
  .way-item { flex-direction: column; gap: 16px; }
  .way-title { flex: none; }
  .values-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid,
  .card-grid.cols-2,
  .card-grid.cols-3 { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 64px; }
  .hero-inner { margin: 0; }
  .hero-title { white-space: normal; }
  .hero::before { width: 320px; height: 320px; left: -80px; }
  .section { padding: 64px 20px; }
  .cta-band { padding: 56px 20px; }
  .team-photo { width: 200px; height: 200px; }
}
