/* ═══════════════════════════════════════════════════
   Frankly — Theme CSS (HubSpot CMS)
   Design tokens: DESIGN.md canonical palette only.
   Component styles live in *.module.css files.
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* ── Brand palette ── */
  --teal:        #3f7875;
  --teal-light:  #67bcb7;
  --teal-pale:   #c3e3e1;
  --teal-dark:   #2a5350;

  --terra:       #c97349;
  --terra-dark:  #993e21;
  --terra-pale:  #efdbd3;

  --amber:       #d49b4f;
  --amber-dark:  #c7812a;
  --amber-pale:  #eacdab;

  --sage:        #618f63;
  --sage-dark:   #4f7752;
  --sage-pale:   #dee7df;

  /* ── Neutrals ── */
  --cream:       #faf8f5;
  --cream-mid:   #f0ede8;
  --charcoal:    #2d2d2d;
  --text:        #1a1a1a;
  --text-sub:    #6b6458;
  --text-muted:  #9b8e82;
  --border:      #e8e3dd;
  --white:       #ffffff;

  /* ── Status ── */
  --error:       #dc2626;
  --error-pale:  #fee2e2;

  /* ── Typography ── */
  --font-brand: 'Poppins', sans-serif;
  --font-body:  'Poppins', sans-serif;
  --font-mono:  'Geist Mono', monospace;

  /* ── Radii ── */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  20px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);

  /* ── Layout ── */
  --max-w:  1100px;
  --gutter: clamp(20px, 6vw, 80px);
}


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

html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-brand);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* ── Shared layout helpers ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Shared section helpers ── */
.section            { padding-block: clamp(60px, 8vw, 100px); }
.section--warm      { background: var(--cream-mid); }
.section--teal      { background: var(--teal); color: var(--white); }
.section--teal-pale { background: var(--teal-pale); }
.text-center        { text-align: center; }
.text-center p      { margin-inline: auto; max-width: 62ch; }

/* ── Shared typography ── */
.overline {
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.section--teal .overline { color: var(--teal-light); }

/* ── Shared buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
  letter-spacing: .01em;
  text-decoration: none;
  min-height: 44px;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--green          { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--green:hover    { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--terra          { background: var(--terra); color: var(--white); border-color: var(--terra); }
.btn--terra:hover    { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn--outline-white  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline-teal   { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline-teal:hover  { background: var(--teal); color: var(--white); }
.btn--outline-text   { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline-text:hover  { border-color: var(--text); }
.btn--lg             { font-size: 15px; padding: 14px 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn,
  .cta-row button { width: 100%; justify-content: center; min-height: 52px; }
}

/* ── Shared form elements ── */
.fg { margin-bottom: 16px; }
.fg label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 5px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  font-family: inherit;
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b8e82' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63,120,117,.12);
}
.fg input.err   { border-color: var(--error); }
.fg .err-msg    { font-size: 11.5px; color: var(--error); margin-top: 3px; display: none; }
.fg .show-err   { display: block; }

.form-submit {
  width: 100%;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  margin-top: 4px;
  font-family: inherit;
}
.form-submit:hover    { background: var(--teal-dark); }
.form-submit:disabled { opacity: .65; cursor: not-allowed; }

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.55;
}
.form-success { text-align: center; padding: 28px 12px; }
.form-success__icon { font-size: 52px; margin-bottom: 14px; }
.form-success h3 { color: var(--teal); margin-bottom: 6px; }
.form-success p  { color: var(--text-sub); font-size: 14px; }

/* ── Tag pills ── */
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--cream-mid);
  color: var(--text-sub);
}
.tag--teal { background: rgba(63,120,117,.09); color: var(--teal); border-color: rgba(63,120,117,.2); }
.tag--amber { background: var(--amber-pale); color: var(--amber-dark); border-color: var(--amber); }
.tag--sage  { background: var(--sage-pale); color: var(--sage-dark); border-color: var(--sage); }

/* ── Scroll reveal (triggered by global script) ── */
@media (prefers-reduced-motion: no-preference) {
  [data-anim],
  #main-content .dnd-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .5s ease, transform .5s ease;
  }
  [data-anim].visible,
  #main-content .dnd-section.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-anim],
  #main-content .dnd-section { opacity: 1; transform: none; }
}

/* ── HubSpot drag-and-drop grid ── */
/*
 * Required by HubSpot dnd_area markup, which emits Bootstrap-2-style
 * class names (.row-fluid, .span1–.span12). These rules mirror the
 * pattern from the official CMS Boilerplate _layout.css.
 */
.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* All spans are full-width on mobile */
.row-fluid [class*="span"] {
  min-height: 1px;
  width: 100%;
}

/* Desktop: fixed proportional widths based on a 12-column grid */
@media (min-width: 768px) {
  .row-fluid { flex-wrap: nowrap; justify-content: space-between; }

  .row-fluid .span1  { width: calc(8.333% * 1  - 1.95%); }
  .row-fluid .span2  { width: calc(8.333% * 2  - 1.78%); }
  .row-fluid .span3  { width: calc(8.333% * 3  - 1.60%); }
  .row-fluid .span4  { width: calc(8.333% * 4  - 1.42%); }
  .row-fluid .span5  { width: calc(8.333% * 5  - 1.25%); }
  .row-fluid .span6  { width: calc(8.333% * 6  - 1.07%); }
  .row-fluid .span7  { width: calc(8.333% * 7  - 0.89%); }
  .row-fluid .span8  { width: calc(8.333% * 8  - 0.71%); }
  .row-fluid .span9  { width: calc(8.333% * 9  - 0.53%); }
  .row-fluid .span10 { width: calc(8.333% * 10 - 0.36%); }
  .row-fluid .span11 { width: calc(8.333% * 11 - 0.18%); }
  .row-fluid .span12 { width: 100%; }
}

/* ── Color utilities ── */
.bg-cream       { background: var(--cream); }
.bg-cream-mid   { background: var(--cream-mid); }
.bg-teal-pale   { background: var(--teal-pale); }
.bg-terra-pale  { background: var(--terra-pale); }
.bg-amber-pale  { background: var(--amber-pale); }
.bg-sage-pale   { background: var(--sage-pale); }
.bg-charcoal    { background: var(--charcoal); color: var(--white); }
.bg-teal        { background: var(--teal); color: var(--white); }
.bg-white       { background: var(--white); }

.text-teal      { color: var(--teal); }
.text-teal-dark { color: var(--teal-dark); }
.text-terra     { color: var(--terra); }
.text-amber     { color: var(--amber-dark); }
.text-sage      { color: var(--sage); }
.text-muted     { color: var(--text-muted); }
.text-sub       { color: var(--text-sub); }
.text-white     { color: var(--white); }

/* ── Accessibility utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 12px;
  z-index: 10000;
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: top 0.1s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--terra);
  outline-offset: 2px;
}

/* ── Interior page layout ── */
.interior-page {
  padding-top: 64px;
  padding-bottom: 96px;
}

.interior-page .interior-dnd {
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .interior-page .interior-dnd {
    padding-inline: 48px;
  }
}

/* ── List styles (interior pages / HubSpot rich text) ── */
ul,
ol,
.hs-richtext ul,
.hs-richtext ol {
  padding-left: 1.5rem;
  margin-block: 12px;
}

li,
.hs-richtext li {
  margin-bottom: 6px;
  line-height: 1.65;
}

ul,
.hs-richtext ul {
  list-style-type: disc;
}

ul ul,
.hs-richtext ul ul {
  list-style-type: circle;
  margin-block: 4px;
}

ul ul ul,
.hs-richtext ul ul ul {
  list-style-type: square;
}

ol,
.hs-richtext ol {
  list-style-type: decimal;
}

ol ol,
.hs-richtext ol ol {
  list-style-type: lower-alpha;
}

ul ::marker,
ol ::marker,
.hs-richtext ul ::marker,
.hs-richtext ol ::marker {
  color: var(--teal);
}
