/* ==========================================================================
   Pacific Cal Realty — base stylesheet
   Mobile-first, no framework dependency.

   INTERIM BRANDING: this uses the ME base design tokens. The PCR brand palette
   is being developed by the operator and will replace the ACCENTS only. The four
   --accent-* custom properties below are the single swap point — changing their
   values re-skins the app without touching any rule. Do not hard-code hex values
   in rules; always reference a token.
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* ME base palette (interim). Background + text are ME neutrals. */
  --color-background: #F8F6EB;
  --color-text: #2B2B2B;

  /* ---- Swappable brand accents (interim = ME base palette) ----
     Replace these FOUR values when the PCR palette arrives; nothing else changes. */
  --accent-primary: #9C0D10;    /* crimson */
  --accent-secondary: #00CCCC;  /* cyan */
  --accent-success: #39FF14;    /* green */
  --accent-muted: #A6A6A6;      /* gray */

  /* Derived surfaces + support colors */
  --color-surface: #FFFFFF;
  --color-surface-muted: #F1EEDF;
  --color-border: #E4E0CE;
  --color-text-muted: #6B6B63;

  /* Typography */
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Semibold", "Segoe UI", -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  /* Layout */
  --container-max: 1120px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-rest:
    0 1px 2px rgba(43, 43, 43, 0.06),
    0 4px 10px rgba(43, 43, 43, 0.08),
    0 12px 28px rgba(43, 43, 43, 0.08);

  --transition: 180ms ease;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* -------------------------------------------------------- Coming-soon page */
/* Public face: name + "Coming soon." + contact mailto ONLY. No service copy. */
.coming-soon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

.coming-soon__inner {
  max-width: 34rem;
}

.coming-soon__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--color-text);
}

.coming-soon__name::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: var(--space-3) auto 0;
  background: var(--accent-primary);
  border-radius: 2px;
}

.coming-soon__line {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: var(--space-4) 0 var(--space-5);
}

.coming-soon__contact a {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ------------------------------------------------- Shared shell (portal) */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand__accent {
  color: var(--accent-secondary);
}

.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
}

.site-footer {
  margin-top: auto;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
