/* ============================================
   SUSAN Sense — main.css
   Global reset, CSS variables, typography
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Brand colors */
  --navy:         #0f2240;
  --navy-mid:     #1a3356;
  --teal:         #2b8070;
  --teal-dark:    #1a5f52;
  --teal-light:   #e6f4f1;
  --teal-mid:     #c2e8e0;

  /* Neutral / UI */
  --bg:           #f7f9f8;
  --white:        #ffffff;
  --muted:        #5a7a88;
  --muted-light:  #9ab5be;
  --border:       #dceae7;
  --card-bg:      #ffffff;

  /* Spacing */
  --section-pad:  80px;
  --wrap-pad:     28px;

  /* Border radius */
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    20px;
  --radius-pill:  100px;

  /* Typography scale */
  --text-xs:      11px;
  --text-sm:      13px;
  --text-base:    15px;
  --text-md:      17px;
  --text-lg:      22px;
  --text-xl:      34px;
  --text-2xl:     44px;
  --text-hero:    58px;

  /* Transitions */
  --transition:   all 0.22s ease;
  --transition-slow: all 0.35s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
}

/* ---------- LAYOUT WRAPPER ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

/* ---------- SECTION SPACING ---------- */
.section {
  padding: var(--section-pad) 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: 26px; }
h4 { font-size: 18px; }
h5 { font-size: var(--text-sm); font-weight: 900; letter-spacing: 0.1em; }

p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 700px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
}

@media (max-width: 480px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(43, 128, 112, 0.35);
}

.btn-primary:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 128, 112, 0.45);
}

.btn-outline {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.btn-white {
  background-color: #fff;
  color: var(--teal-dark);
  border-color: #fff;
  font-weight: 800;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* ---------- EYEBROW LABEL ---------- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ---------- SECTION HEADER (centered) ---------- */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  font-size: var(--text-md);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- CARDS (base) ---------- */
.card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

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

/* ---------- PILL / BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1.5px solid var(--teal-mid);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
}

/* ---------- GRID HELPERS ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- ACCESSIBILITY ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
