/* Happy Home Supply public site (happyhomesupply.co).
   Built from the Claude Design handoff "Bright & crisp" direction, Nunito + Nunito Sans.
   Brand source of truth: HappyHomeSupply/Art (color guide + logo package). */

@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/nunito-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
}

/* ---------- tokens: light ---------- */
:root {
  color-scheme: light;
  --font-heading: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --color-bg: #FFFFFF; --color-surface: #F2F7EE; --color-text: #1B2A22; --color-divider: #E4ECDF;
  --color-accent: #0B7A3E; --color-accent-100: #E3F2E8; --color-accent-200: #C5E4D0;
  --color-accent-600: #096634; --color-accent-700: #07552B; --color-accent-800: #054322;
  --color-accent-2: #3E9E48; --color-accent-2-100: #EEF7E3; --color-accent-2-600: #33853C; --color-accent-2-700: #296B30;
  --color-neutral-100: #F2F7EE; --color-neutral-400: #AEBBA8; --color-neutral-700: #4A5748; --color-neutral-800: #333F35;

  --hhs-forest: #0B7A3E; --hhs-leaf: #8DC63F; --hhs-aqua: #00B5D6; --hhs-buttercup: #F5D62A;
  --hhs-ink: #1B2A22; --hhs-night: #16211B;
  --hhs-aqua-100: #E3F6FA; --hhs-aqua-200: #C4EDF5; --hhs-aqua-300: #8FDDEC; --hhs-aqua-800: #00576A; --hhs-aqua-900: #003E4B;
  --hhs-aqua-deep: #00758C;
  --hhs-link: #00758C; --hhs-link-hover: #005A6B;
  --hhs-mark: #8DC63F; --hhs-footer: #16211B;
  --shadow-md: 0 3px 10px rgba(46, 43, 37, .16);
}

/* ---------- tokens: dark (theme.js sets data-theme before first paint) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #16211B; --color-surface: #1E2B23; --color-text: #F2F7EE; --color-divider: #2C3B32;
  --color-accent: #8DC63F; --color-accent-100: #1D301F; --color-accent-200: #264026;
  --color-accent-600: #A3D35F; --color-accent-700: #B5DC7E; --color-accent-800: #CDE8A6;
  --color-accent-2-100: #1B2E1F; --color-accent-2-600: #6DBB74; --color-accent-2-700: #9ED3A3;
  --color-neutral-100: #1E2B23; --color-neutral-400: #56675C; --color-neutral-700: #B4C1B2; --color-neutral-800: #CFD9CD;
  --hhs-aqua-100: #0F2A30; --hhs-aqua-200: #12363E; --hhs-aqua-300: #1A5561; --hhs-aqua-800: #8FDDEC; --hhs-aqua-900: #C4EDF5;
  --hhs-aqua-deep: #00B5D6;
  --hhs-link: #00B5D6; --hhs-link-hover: #8FDDEC;
  --hhs-mark: #0B7A3E; --hhs-footer: #0E1611;
  --shadow-md: 0 0 0 1px #2C3B32, 0 4px 14px rgba(0, 0, 0, .45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  transition: background-color .25s, color .25s;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--hhs-link); text-underline-offset: 3px; }
a:hover { color: var(--hhs-link-hover); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 800; font-size: 15px; line-height: 1.2;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--color-text); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-lg { font-size: 17px; padding: 14px 26px; }
.btn-primary, .btn-primary:hover { color: var(--color-bg); }
.btn-primary { background: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-outline { border: 2px solid var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-outline:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { font-size: 16px; color: var(--color-accent-700); padding-inline: 4.4px; }
.btn-ghost:hover { color: var(--color-accent-700); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--color-bg); box-shadow: 0 1px 0 var(--color-divider);
  transition: background-color .25s;
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.brand {
  margin-right: auto; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(22px, 3vw, 30px);
  line-height: 1; letter-spacing: -0.01em; color: var(--color-accent); white-space: nowrap; text-decoration: none;
}
.brand:hover { color: var(--color-accent); }
.brand img { height: 64px; width: auto; margin: -10px 0; }
.nav-links a { color: var(--color-text); text-decoration: none; }
.nav-links a:hover { color: var(--color-accent); }
.nav-links-inline { flex: 1; display: flex; gap: 24px; align-items: center; justify-content: center; font-size: 14px; }
.nav-links-below {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 12px;
  display: none; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; font-weight: 600;
}
@media (max-width: 1099.98px) {
  .nav-links-inline { display: none; }
  .nav-links-below { display: flex; }
}
.nav-phone {
  display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap;
  color: var(--color-accent); text-decoration: none;
}
.nav-phone:hover { color: var(--color-accent-600); }
@media (max-width: 639.98px) { .nav-phone span { display: none; } }
.btn-nav { flex: none; }
/* Phones: the header wraps to three rows here, so let it scroll away instead
   of pinning ~200px over the content, and shrink the brand so it fits. */
@media (max-width: 639.98px) {
  .site-header { position: static; }
  .partner, .categories, .contact { scroll-margin-top: 0; }
  .what-we-do { scroll-margin-top: 16px; }
}
@media (max-width: 479.98px) {
  .brand { font-size: 20px; gap: 10px; }
  .brand img { height: 48px; margin: -6px 0; }
  .btn-lg { white-space: normal; text-align: center; }
  /* The joined segmented pill can't fit three options here; split it into separate pills. */
  .field .seg { border: 0; overflow: visible; gap: 8px; }
  .field .seg-opt, .field .seg-opt + .seg-opt { border: 1px solid var(--color-divider); border-radius: 999px; }
  /* Keep the aqua circle clear of the white heading (white on Aqua fails contrast). */
  .contact-card .circle-aqua { width: 130px; height: 130px; right: -60px; top: -60px; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 24px 32px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hhs-aqua-deep); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; max-width: 980px; text-wrap: balance; }
.mark {
  color: var(--color-accent);
  background: linear-gradient(transparent 72%, var(--hhs-mark) 72%, var(--hhs-mark) 90%, transparent 90%);
}
.lead { font-size: 20px; line-height: 1.55; max-width: 640px; color: var(--color-neutral-800); text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- photos + what we do ---------- */
.about { padding: 24px 24px 72px; display: grid; gap: 20px; }
.collage { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); border-radius: 32px; overflow: hidden; }
:root[data-theme="dark"] .washed img { filter: brightness(.88); }
.washed img { width: 100%; height: 100%; object-fit: cover; }
.photo-top { height: clamp(220px, 32vw, 380px); }
.photo-top img { object-position: center 55%; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 8px; }
.photo-small { height: clamp(220px, 26vw, 320px); }
.pos-cabinets { object-position: center 75%; }
.pos-living { object-position: center 70%; }
.pos-homework { object-position: center 40%; }
.collage figcaption { font-size: 13px; color: var(--color-neutral-700); padding-left: 8px; }

.what-we-do {
  scroll-margin-top: 130px; border-radius: 32px; background: var(--hhs-aqua-200); padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px 32px; align-items: start;
}
.what-we-do h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: var(--hhs-aqua-900); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent-2-700); color: var(--color-accent-2-100); font-weight: 700; font-size: 14px;
}

/* ---------- categories ---------- */
.categories { padding: 48px 24px 80px; scroll-margin-top: 60px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head > div { max-width: 560px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 10px; }
.section-head p { font-size: 17px; color: var(--color-neutral-800); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.tile { border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile.green { background: var(--color-accent-100); }
.tile.aqua { background: var(--hhs-aqua-100); }
.tile-title { font-family: var(--font-heading); font-weight: 800; font-size: 21px; }
.tile-sub { font-size: 14px; color: var(--color-neutral-700); }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.dot.square { border-radius: 4px; }
.dot.forest { background: var(--color-accent); }
.dot.fern { background: var(--color-accent-2); }
.dot.aqua-dot { background: var(--hhs-aqua); }
.dot.buttercup { background: var(--hhs-buttercup); }

/* ---------- supplier inquiry ---------- */
.partner { background: var(--color-surface); padding: 88px 24px; scroll-margin-top: 60px; transition: background-color .25s; }
/* 1152 = the 1200px column minus its 24px gutters, so this lines up with the
   other sections (the design file had it 24px wider, which looked unintended). */
.partner-grid {
  max-width: 1152px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: start;
}
.partner-intro { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
@media (min-width: 720px) { .partner-intro { position: sticky; top: 110px; } }
.tag {
  align-self: flex-start; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  background: var(--hhs-buttercup); color: var(--hhs-ink); letter-spacing: 0.02em;
}
.partner-intro h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.05; text-wrap: balance; }
.partner-intro p { font-size: 17px; color: var(--color-neutral-800); text-wrap: pretty; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--color-neutral-800); }
.bullets li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bullets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-2-600); flex: none; }

.form-card { background: var(--color-bg); border-radius: 32px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); transition: background-color .25s; }
form { display: flex; flex-direction: column; gap: 30px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
legend { font-family: var(--font-heading); font-weight: 800; font-size: 22px; margin-bottom: 14px; padding: 0; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 46px; padding: 6px 14px; font: inherit; font-size: 15px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 120px; border-radius: 22px; padding: 12px 16px; resize: vertical; display: block; }
select.input { cursor: pointer; }
.input::placeholder { color: color-mix(in srgb, var(--color-text) 50%, transparent); }

.seg { display: inline-flex; flex-wrap: wrap; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 999px; }
.seg-opt { position: relative; display: inline-flex; align-items: center; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.drop {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer;
  border: 1.5px dashed var(--color-neutral-400); border-radius: 22px; background: var(--color-neutral-100);
}
.drop:hover { border-color: var(--color-accent); }
.drop:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.drop input { position: absolute; opacity: 0; width: 0; height: 0; }
.drop-icon { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--color-accent-200); color: var(--color-accent-800); }
.drop-text { display: flex; flex-direction: column; min-width: 0; }
.drop-text strong { font-size: 15px; overflow-wrap: anywhere; }
.drop-text span { font-size: 13px; color: var(--color-neutral-700); }

.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-lg#send { padding: 14px 30px; }
.note { font-size: 13px; color: var(--color-neutral-700); }
.form-error { margin: -14px 0 0; padding: 12px 16px; border-radius: 18px; font-size: 15px; background: #FEE4E2; color: #912018; }
:root[data-theme="dark"] .form-error { background: #3B1714; color: #FDA29B; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 40px 0; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--hhs-aqua-200); color: var(--hhs-aqua-800); }
.success h3 { font-size: 32px; }
.success p { font-size: 17px; color: var(--color-neutral-800); max-width: 440px; }
.success .btn { font-size: 15px; padding: 10px 20px; }

/* ---------- contact ---------- */
.contact { padding: 88px 24px; scroll-margin-top: 60px; }
.contact-card {
  position: relative; overflow: hidden; border-radius: 40px; background: var(--hhs-forest); color: #FFFFFF;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 36px; align-items: center;
}
.circle { position: absolute; border-radius: 50%; }
.circle-aqua { right: -80px; top: -80px; width: 260px; height: 260px; background: var(--hhs-aqua); }
.circle-leaf { right: 120px; bottom: -40px; width: 90px; height: 90px; background: var(--hhs-leaf); opacity: .9; }
.contact-copy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.contact-copy h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; color: #FFFFFF; }
.contact-copy p { font-size: 18px; max-width: 420px; color: #FFFFFF; }
.contact-links { position: relative; display: flex; flex-direction: column; gap: 12px; }
.pill-link {
  display: flex; align-items: center; gap: 16px; border-radius: 999px; padding: 14px 24px 14px 14px;
  background: var(--color-bg); color: var(--color-text); text-decoration: none; transition: background-color .25s;
}
.pill-link:hover { background: var(--color-neutral-100); color: var(--color-text); }
.pill-icon { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.pill-icon.green { background: var(--color-accent-200); color: var(--color-accent-800); }
.pill-icon.aqua { background: var(--hhs-aqua-200); color: var(--hhs-aqua-800); }
.pill-text { display: flex; flex-direction: column; min-width: 0; }
.pill-small { font-size: 13px; color: var(--color-neutral-700); }
.pill-big { font-family: var(--font-heading); font-weight: 800; font-size: 22px; }
.pill-big.email { font-size: clamp(17px, 2vw, 22px); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--hhs-footer); box-shadow: 0 -1px 0 var(--color-divider); color: #FFFFFF; padding: 48px 24px 72px; }
.footer-inner { max-width: 1152px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
/* The dark logo file is 452x512: keep its proportions on a Night tile instead of stretching it square. */
.footer-brand img { width: 64px; height: 64px; object-fit: contain; background: var(--hhs-night); border-radius: 14px; }
.footer-brand > div { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--hhs-leaf); }
.footer-tag, .footer-copy { font-size: 14px; color: #C9D6CC; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px; font-size: 15px; align-items: center; }
.footer-links a { color: var(--hhs-aqua); text-decoration: none; }
.footer-links a:hover { color: #8FDDEC; text-decoration: underline; }
.footer-copy { font-size: 15px; }
.theme-toggle {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 2px solid #2C3B32; background: transparent; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--hhs-leaf); color: var(--hhs-leaf); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- thanks page (no-JavaScript form fallback) ---------- */
.thanks { max-width: 640px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.thanks h1 { font-size: clamp(34px, 5vw, 52px); }
.thanks p { font-size: 18px; color: var(--color-neutral-800); }
