/* ============================================
   SAFE SOLUTIONS INSTITUTE — GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --green: #1B4332;
  --green-mid: #2D6A4F;
  --green-light: #40916C;
  --gold: #C9A84C;
  --gold-light: #E9C46A;
  --charcoal: #1C1C1C;
  --slate: #4A5568;
  --muted: #718096;
  --off-white: #F8F7F4;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --nav-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1.05rem; color: var(--slate); }

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: box-shadow 0.3s ease;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}

.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--green-mid) !important; color: var(--white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  transition: all 0.3s;
}

/* ============ MOBILE NAV ============ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ============ PAGE WRAPPER ============ */
.page-content { padding-top: var(--nav-height); }

/* ============ SECTION STYLES ============ */
.section { padding: 5rem 2rem; }
.section-white { background: var(--white); }
.section-off { background: var(--off-white); }
.section-green { background: var(--green); color: var(--white); }
.section-dark { background: var(--charcoal); color: var(--white); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
}

/* ============ SECTION HEADERS ============ */
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-title-light {
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.section-intro {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 3rem;
}

.section-intro-light {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,67,50,0.3);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
}

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-gold-top {
  border-top: 4px solid var(--gold);
}

.card-green-top {
  border-top: 4px solid var(--green);
}

/* ============ GRID LAYOUTS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============ DIVIDER ============ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ============ FLOATING CALL BUTTON ============ */
.float-call {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--green);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(27,67,50,0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.float-call:hover {
  background: var(--green-mid);
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(27,67,50,0.5);
}

.float-call svg { width: 26px; height: 26px; fill: white; }

/* ============ FOOTER ============ */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 115px; margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ ACTIVE NAV ============ */
.nav-links a.active { color: var(--green) !important; font-weight: 700 !important; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.mobile-nav a.active { color: var(--green) !important; font-weight: 700 !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
