/* =========================================================
   universal.css
   honeyway base tokens + typography + spacing
   ========================================================= */

/* =========================
   font import
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

/* =========================
   root variables
   ========================= */
:root {
  /* -------------------------
     brand colors
     ------------------------- */
  --color-navy: #0b1f3a;
  --color-navy-soft: #163154;
  --color-gold: #d6a73b;
  --color-gold-soft: #e4bf67;

  /* -------------------------
     neutral colors
     ------------------------- */
  --color-text: #2b2b2b;
  --color-text-soft: #5f6670;
  --color-bg: #f5f5f3;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f1ee;
  --color-border: #e4e4df;
  --color-border-strong: #cfd4da;

  /* -------------------------
     service accent colors
     ------------------------- */
  --color-residential: #6b8ca3;
  --color-commercial: #4a4a4a;
  --color-management: #6e7f5e;

  /* -------------------------
     utility colors
     ------------------------- */
  --color-success: #2f6b45;
  --color-warning: #a06a00;
  --color-danger: #8a2f2f;

  /* -------------------------
     typography
     ------------------------- */
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  /* -------------------------
     font sizes
     ------------------------- */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-4xl: 4rem;

  /* -------------------------
     font weights
     ------------------------- */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* -------------------------
     line heights
     ------------------------- */
  --line-height-tight: 1.08;
  --line-height-heading: 1.15;
  --line-height-body: 1.65;

  /* -------------------------
     letter spacing
     ------------------------- */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.12em;

  /* -------------------------
     widths
     ------------------------- */
  --site-max-width: 1240px;
  --content-max-width: 860px;

  /* -------------------------
     spacing scale
     ------------------------- */
  --space-0: 0;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --space-88: 88px;
  --space-96: 96px;
  --space-112: 112px;
  --space-128: 128px;

  /* -------------------------
     section rhythm
     ------------------------- */
  --section-padding-sm: 64px;
  --section-padding: 88px;
  --section-padding-lg: 112px;

  /* -------------------------
     corners
     ------------------------- */
  --radius-none: 0;

  /* -------------------------
     transitions
     ------------------------- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* =========================
   reset
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

/* =========================
   base
   ========================= */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(214, 167, 59, 0.18);
  color: var(--color-navy);
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* =========================
   typography
   ========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: clamp(2rem, 4vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-2xl));
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

h5,
h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

p {
  color: var(--color-text);
}

small,
.text-small {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.lead {
  font-size: var(--font-size-md);
  color: var(--color-text-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-gold);
}

/* =========================
   layout helpers
   ========================= */
.container {
  width: min(100% - 40px, var(--site-max-width));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, var(--content-max-width));
  margin-inline: auto;
}

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

.section-sm {
  padding: var(--section-padding-sm) 0;
}

.section-lg {
  padding: var(--section-padding-lg) 0;
}

/* =========================
   color utility classes
   ========================= */
.text-navy { color: var(--color-navy); }
.text-gold { color: var(--color-gold); }
.text-body { color: var(--color-text); }
.text-soft { color: var(--color-text-soft); }

.bg-page { background: var(--color-bg); }
.bg-surface { background: var(--color-surface); }
.bg-surface-alt { background: var(--color-surface-alt); }
.bg-navy { background: var(--color-navy); }

.accent-residential { color: var(--color-residential); }
.accent-commercial { color: var(--color-commercial); }
.accent-management { color: var(--color-management); }

/* =========================
   text alignment utilities
   ========================= */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* =========================
   width utilities
   ========================= */
.max-text {
  max-width: 68ch;
}

.mx-auto {
  margin-inline: auto;
}

/* =========================
   margin utilities
   ========================= */
.m-0 { margin: 0; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.mt-40 { margin-top: var(--space-40); }
.mt-48 { margin-top: var(--space-48); }
.mt-64 { margin-top: var(--space-64); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }
.mb-40 { margin-bottom: var(--space-40); }
.mb-48 { margin-bottom: var(--space-48); }
.mb-64 { margin-bottom: var(--space-64); }

/* =========================
   padding utilities
   ========================= */
.p-0 { padding: 0; }

.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }
.pt-32 { padding-top: var(--space-32); }
.pt-40 { padding-top: var(--space-40); }
.pt-48 { padding-top: var(--space-48); }
.pt-64 { padding-top: var(--space-64); }

.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }
.pb-24 { padding-bottom: var(--space-24); }
.pb-32 { padding-bottom: var(--space-32); }
.pb-40 { padding-bottom: var(--space-40); }
.pb-48 { padding-bottom: var(--space-48); }
.pb-64 { padding-bottom: var(--space-64); }

/* =========================
   accessibility helpers
   ========================= */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}