/* ==========================================================================
   sd.insure — Global Styles
   ========================================================================== */

/* Custom Properties
   ========================================================================== */
:root {
  --navy: #1a2744;
  --navy-light: #22304d;
  --navy-mid: #2a3d5e;
  --gold: #c9a84c;
  --gold-dark: #b5953f;
  --gold-light: #dcc36f;
  --gold-glow: rgba(201, 168, 76, 0.10);
  --sage: #4a8c6f;
  --sage-dark: #3d7560;
  --cream: #f7f8fa;
  --charcoal: #1a2744;
  --rust: #c45c3e;
  --warm-gray: #e2e6ed;
  --text-muted: #5b6578;

  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Outfit', sans-serif;

  --max-width: 1200px;
  --section-pad: 6rem 1.5rem;
  --section-pad-sm: 3.5rem 1rem;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 39, 68, 0.03), 0 4px 16px rgba(26, 39, 68, 0.06);
  --shadow-lg: 0 4px 8px rgba(26, 39, 68, 0.04), 0 16px 48px rgba(26, 39, 68, 0.08);
  --shadow-xl: 0 8px 16px rgba(26, 39, 68, 0.05), 0 24px 64px rgba(26, 39, 68, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

p:last-child {
  margin-bottom: 0;
}

/* Layout Utilities
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-header p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: #fff; }
.bg-charcoal { background-color: var(--charcoal); color: #fff; }

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: var(--section-pad-sm);
  }

  .container {
    padding: 0 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0.75rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}
