/* ============================================================
   Cozy Corner Designs — Website UI Kit styles
   Layout + component styles on top of the design tokens.
   ============================================================ */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-body);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section { padding: var(--space-9) 0; }
.section--alt { background: var(--cream-200); }
.section--sage { background: var(--sage-600); color: #fff; }
.center { text-align: center; }

/* ---- Type helpers ---- */
.eyebrow {
  font-family: var(--font-label); font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--terra-500);
  display: inline-block; margin-bottom: var(--space-3);
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--light { color: var(--gold-300); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg); font-weight: 600; margin: 0; }
.h-display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--fg-body); }
.muted { color: var(--fg-muted); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.measure { max-width: 60ch; }
.measure-narrow { max-width: 46ch; }
.on-sage { color: #fff; }
.on-sage h1, .on-sage h2, .on-sage h3 { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-label); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  padding: 13px 24px; transition: all var(--dur) var(--ease); white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.disabled { opacity: .45; cursor: not-allowed; }
.btn.disabled:active { transform: none; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sage); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:active { background: var(--primary-press); box-shadow: var(--shadow-sm); }
.btn--accent { background: var(--accent); color: var(--fg-on-terra); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { background: var(--accent-press); }
.btn--secondary { background: var(--surface); color: var(--sage-700); border-color: var(--sage-300); }
.btn--secondary:hover { background: var(--sage-50); border-color: var(--sage-400); }
.btn--ghost { background: transparent; color: var(--sage-700); padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { color: var(--sage-900); }
.btn--light { background: #fff; color: var(--sage-700); }
.btn--light:hover { background: var(--cream-100); }
.btn--pill { border-radius: var(--radius-pill); }
.btn--lg { font-size: 16px; padding: 15px 30px; }
.btn .ic { width: 18px; height: 18px; }

/* ---- Chips ---- */
.chip {
  font-family: var(--font-label); font-size: 13.5px; font-weight: 600; letter-spacing: .03em;
  padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--sage-300);
  background: transparent; color: var(--sage-700); transition: all var(--dur) var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: var(--sage-50); }
.chip--active { background: var(--sage-600); color: #fff; border-color: var(--sage-600); }
.chip .ic { width: 15px; height: 15px; }

.badge {
  font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 5px;
}
.badge--terra { background: var(--terra-500); color: #fff; }
.badge--gold { background: var(--gold-100); color: var(--gold-600); }
.badge--sage { background: var(--sage-100); color: var(--sage-700); }
.badge--success { background: var(--success-bg); color: #3f6b4d; }

/* ---- Icons ---- */
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { display: block; }

/* ---- Photo placeholder ---- */
.photo {
  position: relative; overflow: hidden; background: var(--sage-100);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: var(--sage-500);
}
.photo--terra { background: radial-gradient(circle at 32% 28%, var(--terra-100), #ecd2c4); color: var(--terra-600); }
.photo--gold { background: radial-gradient(circle at 32% 28%, var(--gold-100), #ecdcb4); color: var(--gold-600); }
.photo--sage { background: radial-gradient(circle at 32% 28%, var(--sage-100), var(--sage-200)); color: var(--sage-600); }
.photo--wood { background: radial-gradient(circle at 32% 28%, #e9ddc9, var(--wood-300)); color: var(--wood-600); }
.photo__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .7; }
.photo__inner svg { width: 32px; height: 32px; }
.photo__inner span { font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50; transition: all var(--dur) var(--ease);
  background: var(--cream-100);
}
.header--scrolled {
  background: rgba(248,245,236,0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand img { height: 46px; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink-900); letter-spacing: .02em; white-space: nowrap; }
.brand__name small { font-family: var(--font-label); font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-label); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-700); padding: 9px 14px; border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease); position: relative;
}
.nav a:hover { color: var(--sage-700); background: var(--sage-50); }
.nav a.active { color: var(--sage-700); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--terra-500); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: transparent; border: none; color: var(--ink-700); padding: 6px; }
.menu-btn svg { width: 26px; height: 26px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: var(--space-9) 0 var(--space-8); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__photo { aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero__photo .photo-img { border-radius: var(--radius-lg); }
.photo-img { background: var(--sage-100); }
.hero__badge {
  position: absolute; background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.dash {
  height: 0; border-top: 2px dashed var(--sage-400); width: 70px; margin: var(--space-4) 0;
}
.hero__photo-wrap { position: relative; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__photo { height: 264px; position: relative; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: var(--shadow-sm); }
.card__photo .photo { border-radius: 0; height: 100%; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; height: 176px; }
.card__cat { font-family: var(--font-label); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-500); }
.card__title { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--fg); margin: 4px 0 7px; line-height: 1.12; }
.card__desc { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; margin: 0 0 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; }
.card__cta { font-family: var(--font-label); font-size: 13.5px; font-weight: 600; color: var(--sage-700); display: inline-flex; align-items: center; gap: 6px; }
.card--link:hover .card__cta { gap: 9px; }
.stars { color: var(--gold-500); letter-spacing: 2px; font-size: 14px; }

/* category tile */
.cat-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1;
  box-shadow: var(--shadow-md); transition: all var(--dur) var(--ease); cursor: pointer;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-tile__label {
  position: absolute; inset: auto 0 0 0; padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(43,42,37,.62), transparent);
  color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 600;
}

/* ---- Steps (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step__num {
  width: 60px; height: 60px; margin: 0 auto var(--space-4); border-radius: var(--radius-pill);
  background: var(--sage-100); color: var(--sage-700); display: flex; align-items: center; justify-content: center;
}
.step__num svg { width: 26px; height: 26px; }
.step__n { font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--terra-500); text-transform: uppercase; }
.step h4 { font-size: 20px; margin: 6px 0 8px; }
.step p { font-size: 14.5px; color: var(--fg-muted); margin: 0; }

/* ---- Testimonials ---- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 28px 26px; box-shadow: var(--shadow-md); }
.quote-card .stars { font-size: 16px; }
.quote-card p { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--ink-900); margin: 14px 0 18px; }
.quote-card__who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--sage-200); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--sage-700); font-size: 18px; }
.quote-card__who b { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink-900); }
.quote-card__who span { font-size: 13px; color: var(--fg-muted); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink-900);
}
.faq-q svg { width: 22px; height: 22px; color: var(--sage-600); transition: transform var(--dur) var(--ease); flex: none; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--dur-slow) var(--ease); }
.faq-a__inner { padding: 0 4px 22px; color: var(--fg-body); font-size: 16px; line-height: 1.65; max-width: 70ch; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-700); margin-bottom: 7px; }
.field .req { color: var(--terra-500); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 16px; color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 13px 15px;
  outline: none; transition: all var(--dur) var(--ease); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sage-500); box-shadow: 0 0 0 3px var(--ring); }
.opt-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  font-family: var(--font-label); font-size: 14px; font-weight: 600; padding: 10px 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--ink-700); transition: all var(--dur) var(--ease);
}
.opt:hover { border-color: var(--sage-400); }
.opt--on { background: var(--sage-600); color: #fff; border-color: var(--sage-600); }

/* ---- Panel / note ---- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.note {
  display: flex; gap: 12px; align-items: flex-start; background: var(--sage-50);
  border: 1px solid var(--sage-200); border-radius: var(--radius-md); padding: 16px 18px;
  font-size: 14.5px; color: var(--sage-800); line-height: 1.55;
}
.note svg { width: 20px; height: 20px; color: var(--sage-600); flex: none; margin-top: 2px; }

/* ---- Instagram strip ---- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-tile { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; }
.ig-tile .photo { border-radius: 0; height: 100%; }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: rgba(71,96,89,0); transition: background var(--dur) var(--ease); }
.ig-tile:hover::after { background: rgba(71,96,89,.18); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--sage-800); color: #cfe0db; padding: var(--space-8) 0 var(--space-6); }
.footer a { color: #cfe0db; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h5 { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__brand img { height: 56px; }
.footer__lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__wordmark { display: flex; flex-direction: column; line-height: 1; }
.footer__wordmark b { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.footer__wordmark small { font-family: var(--font-label); font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #9fb8b1; margin-top: 4px; }
.footer__brand p { font-size: 14.5px; line-height: 1.6; max-width: 30ch; color: #b8cdc7; }
.footer__bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9fb8b1; }
.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease); }
.social a:hover { background: rgba(255,255,255,.18); }
.social svg { width: 19px; height: 19px; }

/* ---- entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-7) 0 var(--space-6); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .brand__name { display: none; }
  .wrap { padding: 0 20px; }
  .section { padding: var(--space-7) 0; }
  .header__bar { height: 64px; }
  .brand img { height: 40px; }
  .cta-quote { padding: 10px 16px; font-size: 13px; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
}
