/* =========================================================================
   GLOBAL.CSS — Design tokens, reset, base typography, layout primitives
   So Cal Property Enterprises — Navy + Gold "Light Professional" system
   (design system from new-wireframe.html)
   ========================================================================= */

/* ---- Design Tokens ---------------------------------------------------- */
:root {
  /* Brand palette — from new-wireframe.html Color & Typography (do not re-derive) */
  --navy: #1c3d5a; /* Deep Navy — header/nav/CTA bands/hero */
  --navy-mid: #274b68; /* derived — dark gradient depth */
  --gold: #c8922a; /* Heritage Gold — highlights, trust signals, badges, stats */
  --gold-light: #dba94b;
  --gold-dim: rgba(200, 146, 42, 0.12);

  --bg: #ffffff; /* Clean White */
  --surface: #1c3d5a; /* DARK surface role — header/footer/hero/CTA backgrounds */
  --surface-mid: #274b68; /* dark gradient mid */
  --surface-light: #f4f7f9; /* Slate Surface — light section tint / card fills */
  --surface-alt: #eef2f7;

  --accent: #2e8b84; /* California Teal — PRIMARY accent: CTAs, links, active, labels, icons */
  --accent-dark: #256f69; /* darker teal — hover */
  --accent-dim: rgba(46, 139, 132, 0.1);
  --accent-border: rgba(46, 139, 132, 0.22);

  --icon: #2e8b84; /* teal — icon fills */
  --icon-bg: rgba(46, 139, 132, 0.1);
  --steel: #2e8b84; /* legacy alias -> teal */

  --text-head: #1a2f45; /* Charcoal Headline */
  --text-body: #4b5563; /* Professional Gray */
  --text-muted: #6b7a8d;
  --text-sub: #9ca3af;
  --border: #d1dbe8; /* Soft Steel */
  --border-light: #e4ebf3;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --container: 1440px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(26, 46, 74, 0.1);
  --shadow-sm: 0 4px 14px rgba(26, 46, 74, 0.08);
  --section-pad: clamp(56px, 7vw, 104px);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
   overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

/* WordPress/Astra add default margin + padding to lists — force them off. */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* WordPress/browser default button padding — reset it. */
button {
  margin: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Base Typography -------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-head);
  line-height: 1.2;
}

/* Playfair Display for H1/H2 (display) */
h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.25rem); /* 40–52px */
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem); /* 28–36px */
  font-weight: 600;
}

/* Inter for H3 sub-headings (per type spec) */
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.375rem); /* 18–22px */
  color: var(--navy-mid);
}

p {
  font-size: clamp(1rem, 1.15vw, 1.0625rem); /* 16–17px */
}

/* ---- Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- Accessibility ---------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  width: auto;
  height: auto;
  clip: auto;
}
