/* ==========================================================================
   Carolina Meadows — Brand Tokens
   Source of truth: carolinameadows.org (live CSS, scraped 2026-07-14) + cm-logo.png
   Import this file first in any Carolina Meadows project.
   ========================================================================== */

/* --- Webfonts (Google Fonts) ------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {

  /* ======================================================================
     1. COLOR
     ====================================================================== */

  /* --- Core brand (from the logo) --- */
  --cm-black:            #231F20;  /* logo wordmark black */
  --cm-gold:             #B99C16;  /* brand gold — site value */
  --cm-gold-logo:        #B99C02;  /* logo gold — use only inside logo art */
  --cm-gold-light:       #D9C35E;  /* gradient highlight / hover */
  --cm-gold-pale:        #EFE7C4;  /* tints, backgrounds */

  /* --- Primary UI (from the live site) --- */
  --cm-slate:            #51534A;  /* PRIMARY text + headings. The dominant color. */
  --cm-blue:             #4A78A4;  /* PRIMARY action / button color */
  --cm-blue-dark:        #3A6086;  /* button hover / active */
  --cm-blue-light:       #8FB3D4;  /* accents, secondary panels */
  --cm-green:            #789C4A;  /* accent — nature, wellness, growth */
  --cm-green-dark:       #5F7D39;  /* hover, text-on-white use */

  /* --- Neutrals --- */
  --cm-gray-700:         #51534A;  /* = slate */
  --cm-gray-500:         #919084;
  --cm-gray-400:         #A9A89F;
  --cm-gray-200:         #C1C1C1;
  --cm-gray-100:         #E6E3D2;
  --cm-cream:            #DBD5BD;
  --cm-cream-light:      #F3F0E6;  /* warm section background */
  --cm-off-white:        #F5F5F3;  /* cool section background */
  --cm-white:            #FFFFFF;

  /* --- Semantic aliases (use these in components) --- */
  --cm-text:             var(--cm-slate);
  --cm-text-muted:       var(--cm-gray-500);
  --cm-text-inverse:     var(--cm-white);
  --cm-bg:               var(--cm-white);
  --cm-bg-alt:           var(--cm-cream-light);
  --cm-bg-cool:          var(--cm-off-white);
  --cm-border:           var(--cm-gray-200);
  --cm-link:             var(--cm-blue);
  --cm-link-hover:       var(--cm-blue-dark);
  --cm-accent:           var(--cm-gold);
  --cm-success:          var(--cm-green-dark);
  --cm-warning:          #B9741A;
  --cm-danger:           #A4404A;
  --cm-focus-ring:       var(--cm-blue);

  /* ======================================================================
     2. TYPOGRAPHY
     Montserrat = headings, buttons, labels, eyebrows.
     Lato       = body copy, long-form, tables, forms.
     ====================================================================== */
  --cm-font-heading: 'Montserrat', Helvetica, Arial, sans-serif;
  --cm-font-body:    'Lato', Helvetica, Arial, sans-serif;

  --cm-fw-light:     300;
  --cm-fw-regular:   400;
  --cm-fw-semibold:  600;
  --cm-fw-bold:      700;

  /* Type scale — fluid, capped for large screens */
  --cm-fs-display: clamp(2.75rem, 6vw, 6.25rem); /* 44 → 100px */
  --cm-fs-h1:      clamp(2.25rem, 4.5vw, 3.5rem);/* 36 → 56px  */
  --cm-fs-h2:      clamp(1.75rem, 3vw, 2.5rem);  /* 28 → 40px  */
  --cm-fs-h3:      1.875rem;                     /* 30px       */
  --cm-fs-h4:      1.375rem;                     /* 22px       */
  --cm-fs-h5:      1.125rem;                     /* 18px       */
  --cm-fs-body:    1rem;                         /* 16px       */
  --cm-fs-small:   0.875rem;                     /* 14px       */
  --cm-fs-caption: 0.75rem;                      /* 12px       */

  --cm-lh-tight:   1.22;   /* display / h1 */
  --cm-lh-heading: 1.25;
  --cm-lh-body:    1.625;  /* 26px at 16px — matches the site */

  --cm-ls-display: -0.02em; /* tight tracking on very large Montserrat */
  --cm-ls-heading: 0;
  --cm-ls-body:    0.03em;  /* 0.48px at 16px — matches the site */
  --cm-ls-eyebrow: 0.05em;

  /* ======================================================================
     3. SPACING — 8px base
     ====================================================================== */
  --cm-space-1: 0.25rem;  /*  4px */
  --cm-space-2: 0.5rem;   /*  8px */
  --cm-space-3: 1rem;     /* 16px */
  --cm-space-4: 1.5rem;   /* 24px */
  --cm-space-5: 2rem;     /* 32px */
  --cm-space-6: 3rem;     /* 48px */
  --cm-space-7: 4rem;     /* 64px */
  --cm-space-8: 6rem;     /* 96px */

  /* ======================================================================
     4. SHAPE, SHADOW, MOTION
     The brand is square. Sharp corners are intentional — do not round buttons.
     ====================================================================== */
  --cm-radius-none: 0;
  --cm-radius-sm:   2px;   /* max for inputs/cards if softness is needed */
  --cm-radius-pill: 999px; /* badges only */

  --cm-shadow-sm: 0 1px 3px rgba(35, 31, 32, 0.10);
  --cm-shadow-md: 0 4px 14px rgba(35, 31, 32, 0.12);
  --cm-shadow-lg: 0 12px 32px rgba(35, 31, 32, 0.16);

  --cm-transition: 180ms ease-in-out;

  /* ======================================================================
     5. LAYOUT
     ====================================================================== */
  --cm-container:      1200px;
  --cm-container-text: 720px; /* optimal reading measure */
}

/* ==========================================================================
   BASE
   ========================================================================== */
body {
  font-family: var(--cm-font-body);
  font-weight: var(--cm-fw-regular);
  font-size: var(--cm-fs-body);
  line-height: var(--cm-lh-body);
  letter-spacing: var(--cm-ls-body);
  color: var(--cm-text);
  background: var(--cm-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-bold);
  line-height: var(--cm-lh-heading);
  letter-spacing: var(--cm-ls-heading);
  color: var(--cm-text);
  margin: 0 0 var(--cm-space-3);
}
h1 { font-size: var(--cm-fs-h1); line-height: var(--cm-lh-tight); }
h2 { font-size: var(--cm-fs-h2); }
h3 { font-size: var(--cm-fs-h3); }
h4 { font-size: var(--cm-fs-h4); }
h5 { font-size: var(--cm-fs-h5); font-weight: var(--cm-fw-semibold); }

.cm-display {
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-bold);
  font-size: var(--cm-fs-display);
  line-height: var(--cm-lh-tight);
  letter-spacing: var(--cm-ls-display);
}

/* Eyebrow / section label — the site's signature "More ___" treatment */
.cm-eyebrow {
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-semibold);
  font-size: var(--cm-fs-small);
  text-transform: uppercase;
  letter-spacing: var(--cm-ls-eyebrow);
  color: var(--cm-gold);
}

a { color: var(--cm-link); text-decoration: none; transition: color var(--cm-transition); }
a:hover { color: var(--cm-link-hover); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--cm-focus-ring);
  outline-offset: 2px;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* --- Buttons — square, Montserrat 600, generous padding (matches site) --- */
.cm-btn {
  display: inline-block;
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-semibold);
  font-size: var(--cm-fs-body);
  line-height: 1;
  padding: 16px 35px;
  border: 2px solid transparent;
  border-radius: var(--cm-radius-none);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--cm-transition), color var(--cm-transition), border-color var(--cm-transition);
}
.cm-btn:hover { text-decoration: none; }

.cm-btn--primary   { background: var(--cm-blue); color: var(--cm-white); }
.cm-btn--primary:hover { background: var(--cm-blue-dark); color: var(--cm-white); }

.cm-btn--secondary { background: transparent; color: var(--cm-blue); border-color: var(--cm-blue); }
.cm-btn--secondary:hover { background: var(--cm-blue); color: var(--cm-white); }

.cm-btn--accent    { background: var(--cm-gold); color: var(--cm-black); }
.cm-btn--accent:hover { background: var(--cm-gold-light); color: var(--cm-black); }

.cm-btn--ghost     { background: transparent; color: var(--cm-white); border-color: var(--cm-white); }
.cm-btn--ghost:hover { background: var(--cm-white); color: var(--cm-slate); }

.cm-btn--sm { padding: 10px 22px; font-size: var(--cm-fs-small); }
.cm-btn[disabled], .cm-btn--disabled { opacity: 0.45; pointer-events: none; }

/* --- Card --- */
.cm-card {
  background: var(--cm-white);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-none);
  padding: var(--cm-space-4);
  box-shadow: var(--cm-shadow-sm);
}
.cm-card--accent { border-top: 4px solid var(--cm-gold); }

/* --- Forms --- */
.cm-label {
  display: block;
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-semibold);
  font-size: var(--cm-fs-small);
  color: var(--cm-slate);
  margin-bottom: var(--cm-space-1);
}
.cm-input, .cm-select, .cm-textarea {
  font-family: var(--cm-font-body);
  font-size: var(--cm-fs-body);
  color: var(--cm-text);
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cm-gray-400);
  border-radius: var(--cm-radius-none);
  background: var(--cm-white);
  transition: border-color var(--cm-transition);
}
.cm-input:focus, .cm-select:focus, .cm-textarea:focus {
  border-color: var(--cm-blue);
  outline: 2px solid var(--cm-blue-light);
  outline-offset: 0;
}

/* --- Badge --- */
.cm-badge {
  display: inline-block;
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-semibold);
  font-size: var(--cm-fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--cm-ls-eyebrow);
  padding: 4px 12px;
  border-radius: var(--cm-radius-pill);
  background: var(--cm-gold-pale);
  color: var(--cm-black);
}
.cm-badge--blue  { background: var(--cm-blue);  color: var(--cm-white); }
.cm-badge--green { background: var(--cm-green-dark); color: var(--cm-white); }

/* --- Table --- */
.cm-table { width: 100%; border-collapse: collapse; font-family: var(--cm-font-body); }
.cm-table th {
  font-family: var(--cm-font-heading);
  font-weight: var(--cm-fw-semibold);
  font-size: var(--cm-fs-small);
  text-transform: uppercase;
  letter-spacing: var(--cm-ls-eyebrow);
  text-align: left;
  color: var(--cm-white);
  background: var(--cm-slate);
  padding: 12px 14px;
}
.cm-table td { padding: 12px 14px; border-bottom: 1px solid var(--cm-border); }
.cm-table tbody tr:nth-child(even) { background: var(--cm-off-white); }

/* --- Layout helpers --- */
.cm-container { max-width: var(--cm-container); margin: 0 auto; padding: 0 var(--cm-space-4); }
.cm-prose     { max-width: var(--cm-container-text); }
.cm-section   { padding: var(--cm-space-8) 0; }
.cm-section--alt  { background: var(--cm-bg-alt); }
.cm-section--dark { background: var(--cm-slate); color: var(--cm-white); }
.cm-section--dark h1, .cm-section--dark h2, .cm-section--dark h3, .cm-section--dark h4 { color: var(--cm-white); }

/* --- Gold rule: the brand's signature divider --- */
.cm-rule {
  width: 64px; height: 4px; border: 0;
  background: linear-gradient(90deg, var(--cm-gold) 0%, var(--cm-gold-light) 100%);
  margin: var(--cm-space-3) 0;
}

/* --- Logo sizing --- */
.cm-logo      { display: block; height: auto; }
.cm-logo--sm  { width: 160px; }
.cm-logo--md  { width: 240px; }
.cm-logo--lg  { width: 360px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
