/* ==========================================================================
   KDC Advisors Inc — shared theme
   Extends the original coming-soon page design: plum & teal palette,
   Cormorant Garamond headings, Poppins body, triangle motifs from the logo.
   ========================================================================== */

:root {
  --plum: #3b1546;
  --plum-dark: #2c0f35;
  --teal: #559095;
  --teal-dark: #437479;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #4b454f;        /* muted body text */
  --ink-strong: #332d38; /* emphasized body text */
  --muted: #8a8490;      /* footer / fine print */
  --line: #e5e2e8;       /* hairline borders */
  --radius-pill: 999px;
  --radius-card: 14px;
  --shadow-card: 0 14px 30px -18px rgba(59, 21, 70, 0.25);
  --shadow-cta: 0 10px 24px -12px rgba(59, 21, 70, 0.55);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--plum);
  margin: 0;
}

p { margin: 0; }

a { color: var(--teal-dark); }

strong { font-weight: 500; color: var(--ink-strong); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --------------------------------------------------------------------------
   Decorative corner triangles (echoing the logo mark)
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.deco { position: absolute; }
.deco--tl {
  top: -90px;
  left: -90px;
  width: clamp(220px, 32vw, 360px);
  aspect-ratio: 1;
  background: var(--teal);
  opacity: 0.07;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.deco--br {
  right: -90px;
  bottom: -90px;
  width: clamp(240px, 36vw, 400px);
  aspect-ratio: 1;
  background: var(--plum);
  opacity: 0.05;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.6rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.brand__logo { width: 52px; height: auto; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.site-nav a:not(.cta) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:not(.cta):hover {
  color: var(--plum);
  border-bottom-color: var(--teal);
}
@media (max-width: 719px) {
  .site-nav a:not(.cta) { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.cta {
  display: inline-block;
  padding: 0.85em 2.2em;
  border-radius: var(--radius-pill);
  background: var(--plum);
  color: #fff;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.02rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  background: var(--plum-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(59, 21, 70, 0.6);
}
.cta--small { padding: 0.6em 1.6em; font-size: 0.9rem; box-shadow: none; white-space: nowrap; }
.cta--ghost {
  background: transparent;
  color: var(--plum);
  box-shadow: inset 0 0 0 2px var(--plum);
}
.cta--ghost:hover {
  background: var(--plum);
  color: #fff;
}
.cta--light,
.contact-band a.cta--light {
  background: #fff;
  color: var(--plum);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}
.cta--light:hover { background: var(--bg); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Shared section layout
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(3.25rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
}
.section--alt { background: var(--surface); }
.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section__inner--narrow { max-width: 780px; }

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}
.divider {
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  margin: 1.1rem 0 1.4rem;
  border: 0;
}
.divider--center { margin-left: auto; margin-right: auto; }
.lead {
  max-width: 62ch;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2rem);
  background: radial-gradient(circle at 50% 20%, #ffffff 0%, var(--bg) 70%);
}
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__logo { width: clamp(120px, 26vw, 170px); height: auto; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: 0.01em;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.6vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  color: var(--teal-dark);
}
.hero__blurb {
  max-width: 52ch;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -18px rgba(59, 21, 70, 0.35);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  aspect-ratio: 1;
  background: var(--teal);
  opacity: 0.14;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transition: opacity 0.2s ease;
}
.card:hover::before { opacity: 0.3; }
.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.96rem; }
.section--alt .card { border-color: var(--line); background: var(--bg); }

/* --------------------------------------------------------------------------
   Who we serve
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.chip {
  padding: 0.6em 1.5em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--plum);
  font-weight: 400;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px -14px rgba(59, 21, 70, 0.4);
}

/* --------------------------------------------------------------------------
   Callout (SMS note, form notices)
   -------------------------------------------------------------------------- */
.callout {
  margin-top: 1.75rem;
  padding: 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   Contact section (plum band)
   -------------------------------------------------------------------------- */
.contact-band {
  background:
    radial-gradient(circle at 85% 15%, rgba(85, 144, 149, 0.28) 0%, transparent 45%),
    linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
  color: #e9e2ee;
}
.contact-band h2, .contact-band h3 { color: #fff; }
.contact-band .kicker { color: #9fd0d4; }
.contact-band a { color: #bfe3e6; }
.contact-band strong { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
}
.contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}
.contact-card p { font-size: 0.97rem; }
.contact-card a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-card a:hover { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   Compliance links
   -------------------------------------------------------------------------- */
.link-list {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.link-list a {
  display: inline-block;
  padding: 0.7em 1.7em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--plum);
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 18px -14px rgba(59, 21, 70, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.link-list a:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--plum-dark);
  color: #cbbfd3;
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.88rem;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: #e9e2ee;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-footer a:hover { border-bottom-color: var(--teal); }
.site-footer__copy { color: #9c8fa5; letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   Inner pages (privacy, terms, opt-in)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, var(--bg) 75%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem); }
.page-hero .lead { margin: 1.4rem auto 0; }

.prose {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 8vw, 5rem);
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.prose h2 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 2.4rem 0 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--teal-dark); }

/* --------------------------------------------------------------------------
   Opt-in form
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 2.5rem;
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-strong);
  margin-bottom: 0.45rem;
}
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 0.8em 1em;
  font: inherit;
  font-weight: 300;
  color: var(--ink-strong);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input[type="text"]:focus,
.field input[type="tel"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(85, 144, 149, 0.22);
}
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.22rem;
  accent-color: var(--teal-dark);
}
.form-note {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-card .cta {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 1.25rem;
}
.form-hint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__inner, .prose { animation: none; }
  .cta, .card, .link-list a { transition: none; }
  .cta:hover, .card:hover, .link-list a:hover { transform: none; }
}
