/* ============================================================
   Brandi Rininger — brandirininger.com
   Core Stylesheet
   Performance-first: no imports, no frameworks, minimal resets
   ============================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  --brand: #1B4F72;
  --brand-light: #D6EAF8;
  --brand-mid: #2980B9;
  --accent: #1ABC9C;
  --accent-light: #E8F8F5;
  --dark: #1C1C1C;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --green: #27AE60;
  --orange: #E67E22;
  --red: #E74C3C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-sans);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-mid); }
ul, ol { list-style-position: outside; padding-left: 1.25rem; }

/* --- UTILITIES --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray-500); }
.bg-light { background: var(--gray-100); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

/* --- HEADER / NAV --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: .25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a:hover { color: var(--brand); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #17A589; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero .subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  opacity: .92;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  min-height: 44px;
  min-width: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #17A589; color: var(--white); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--brand); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--brand); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* --- CARDS --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.card-body p { color: var(--gray-500); font-size: .95rem; margin-bottom: .75rem; }
.card-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
}

/* --- SECTIONS --- */
.section { padding: 4rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; }

/* --- GRID --- */
.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); }

/* --- STAT CARDS --- */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
}
.stat-card .num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.stat-card .label {
  font-size: .85rem;
  color: var(--gray-500);
  margin-top: .35rem;
}

/* --- TESTIMONIALS --- */
.testimonial {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: .5rem;
  left: 1rem;
  line-height: 1;
  opacity: .3;
}
.testimonial p { font-style: italic; margin-bottom: .75rem; font-size: 1.05rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--brand); }

/* --- FORMS --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  color: var(--gray-700);
}
.form-control {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  min-height: 44px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,188,156,.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' fill='none' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .85rem center; padding-right: 2.5rem; }

/* --- CALLOUT --- */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin: 1.5rem 0;
}
.callout-blue { background: var(--brand-light); border-color: var(--brand); }
.callout-green { background: var(--accent-light); border-color: var(--accent); }
.callout-orange { background: #FDF2E9; border-color: var(--orange); }

/* --- FOOTER --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.footer-brand span { color: var(--accent); }
.site-footer p { font-size: .9rem; line-height: 1.6; margin-bottom: .75rem; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .4rem; }
.site-footer ul a { color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); }

/* --- BREADCRUMBS --- */
.breadcrumbs {
  padding: .75rem 0;
  font-size: .85rem;
  color: var(--gray-500);
}
.breadcrumbs a { color: var(--brand); }
.breadcrumbs span { margin: 0 .35rem; }

/* --- AREA PAGES --- */
.area-hero {
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5rem 1.5rem;
  position: relative;
  text-align: center;
}
.area-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,79,114,.85), rgba(26,188,156,.6));
}
.area-hero > * { position: relative; z-index: 1; }
.area-hero h1 { color: var(--white); }

/* --- BLOG --- */
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-body { flex: 1; display: flex; flex-direction: column; }
.blog-card .read-more { margin-top: auto; font-weight: 600; color: var(--accent); }
.blog-meta { font-size: .85rem; color: var(--gray-500); margin-bottom: .5rem; }

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { opacity: .9; max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.1rem; }

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.5rem; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* --- PRINT --- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-banner { display: none; }
  body { font-size: 11pt; }
  .hero { padding: 2rem; background: var(--brand) !important; print-color-adjust: exact; }
}
