/* Casa cu Sens. One stylesheet for the page and the privacy page. No inline styles anywhere (the CSP forbids them). */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --sand: #E8D3AE;
  --sand-soft: #F5EDDF;
  --euc: #C9D7CF;
  --euc-soft: #EAF0EC;
  --sage: #A5B89E;
  --teal: #6D8F8A;
  --teal-deep: #44615B;
  --teal-ink: #2F4A45;
  --terra: #D99A7D;
  --terra-deep: #A85F43;
  --ink: #2F2F2F;
  --ink-soft: #57544F;
  --line: #E6E0D4;
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 40px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; padding-bottom: 78px; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 560; line-height: 1.1; letter-spacing: -0.012em; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-ink); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--terra-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 12px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 10px; }
.skip:focus { left: 12px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.95em 1.5em; border: 0; border-radius: 999px; font: 650 1.02rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease; }
.btn svg { flex: none; width: 1.3em; height: 1.3em; fill: currentColor; }
.btn--wa { background: var(--teal-deep); color: var(--white); }
.btn--wa:hover { background: var(--teal-ink); }
.btn--light { background: var(--paper); color: var(--teal-ink); }
.btn--light:hover { background: var(--white); }
.btn--small { padding: 0.72em 1.15em; font-size: 0.95rem; }
.link-more { font-weight: 600; color: var(--ink); text-decoration-color: var(--terra); text-decoration-thickness: 2px; }
.link-more:hover { text-decoration-color: var(--terra-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, 0.93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 40px; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--ink); font-weight: 550; font-size: 0.98rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 2px; }
.site-header .btn { display: none; }

/* Phone: one button fixed to the bottom of the screen */
.sticky-wa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 250, 247, 0.96); border-top: 1px solid var(--line); }
.sticky-wa .btn { flex: 1; justify-content: center; }

/* Hero */
.hero { padding: clamp(30px, 5vw, 72px) 0 clamp(52px, 7vw, 104px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.eyebrow { margin: 0; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
h1 { margin: 0.38em 0 0.48em; font-size: clamp(2.5rem, 6.2vw, 4.3rem); }
.nb { white-space: nowrap; }
.lead { max-width: 34em; font-size: clamp(1.12rem, 1.55vw, 1.28rem); color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 1.7em; }
.hero__note { margin-top: 1.1em; font-size: 0.96rem; color: var(--ink-soft); }
.hero__visual { position: relative; margin: 0; }
.hero__visual::before, .hero__visual::after { content: ""; position: absolute; z-index: 0; aspect-ratio: 1; }
.hero__visual::before { right: -18px; bottom: 34px; width: 44%; background: var(--sand); border-radius: 28px; }
.hero__visual::after { left: -16px; top: -14px; width: 26%; background: var(--euc); border-radius: 22px; }
.hero__pair { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__pair .shot:first-child { margin-top: 34px; }
.hero__pair .shot:last-child { margin-bottom: 34px; }
.hero__visual figcaption { position: relative; z-index: 1; margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }

/* Photos */
.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; padding: 0.3em 0.75em; border-radius: 999px; background: rgba(47, 47, 47, 0.84); color: var(--white); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; }
.tag--after { background: var(--teal-deep); }

/* Sections */
.section { padding: clamp(60px, 8vw, 116px) 0; }
.section--sand { background: var(--sand-soft); }
.section--euc { background: var(--euc-soft); }
.section__head { max-width: 44rem; margin-bottom: clamp(30px, 4vw, 52px); }
h2 { margin-bottom: 0.45em; font-size: clamp(2rem, 4.2vw, 3rem); }
.section__intro { font-size: 1.15rem; color: var(--ink-soft); }

/* Sounds familiar */
.problem { display: grid; gap: clamp(30px, 5vw, 76px); }
.problem__text p { max-width: 36em; font-size: 1.12rem; }
.problem__text .strong { font-weight: 600; color: var(--ink); }
.stats { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.stat { display: grid; grid-template-columns: 7.6rem 1fr; align-items: center; gap: 14px; padding: 18px 22px; background: var(--paper); border-radius: var(--radius); }
.stat b { font: 600 1.85rem/1 var(--serif); color: var(--terra-deep); white-space: nowrap; }
.stats__src { margin: 0 0 14px; font-weight: 600; }

/* What I help with */
.cards { display: grid; gap: 16px; }
.card { padding: 26px 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 14px; }
.card__icon svg { width: 27px; height: 27px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card--toys .card__icon { background: #F3DDD1; }
.card--clothes .card__icon { background: #DCE6D8; }
.card--hall .card__icon { background: #F1E4CB; }
.card--kitchen .card__icon { background: #D5E1DE; }
.card--other .card__icon { background: #E3E7DB; }
.card h3 { margin-bottom: 0.42em; font-size: 1.36rem; }
.card p { color: var(--ink-soft); }
.card .link-more { display: inline-block; margin-top: 0.9em; }
.limits { margin-top: 30px; font-size: 1.1rem; font-weight: 550; }

/* Before and after */
.project { display: grid; gap: 26px; padding: clamp(34px, 5vw, 60px) 0; border-top: 1px solid rgba(47, 47, 47, 0.14); }
.project:first-of-type { padding-top: 0; border-top: 0; }
.project:last-of-type { padding-bottom: 0; }
.kicker { margin: 0 0 0.65em; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal-ink); }
.project h3 { margin-bottom: 0.5em; font-size: clamp(1.6rem, 2.7vw, 2.05rem); }
.project__desc { color: var(--ink-soft); font-size: 1.08rem; }
.pairs { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.pair { margin: 0; scroll-snap-align: start; }
.pair__btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.pair--stack .pair__btn { grid-template-columns: 1fr; }
.pair figcaption { margin-top: 9px; font-size: 0.94rem; color: var(--ink-soft); }
.swipe { margin: 2px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.review { margin: 0; padding: 24px 26px 22px; background: var(--paper); border-radius: var(--radius); }
.review::before { content: "\201D"; display: block; height: 0.42em; margin-bottom: 14px; font: 600 3.6rem/1 var(--serif); color: var(--terra); }
.review p { margin-bottom: 0.75em; font-size: 1.02rem; }
.review footer { margin-top: 1em; font-weight: 650; }
.review footer span { font-weight: 400; color: var(--ink-soft); }

/* Larger view of a pair (HTML popover, no script) */
.zoom { max-width: min(1120px, 94vw); max-height: 92vh; padding: 18px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.zoom::backdrop { background: rgba(30, 36, 34, 0.74); }
.zoom__imgs { display: grid; gap: 10px; }
.zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.zoom__bar p { margin: 0; font-weight: 600; }
.zoom__close { padding: 0.6em 1.1em; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: 600 0.95rem/1 var(--sans); cursor: pointer; }

/* How we work */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step { padding: 24px 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.step::before { content: counter(step); display: block; margin-bottom: 14px; font: 600 2.7rem/1 var(--serif); color: var(--terra-deep); }
.step h3 { margin-bottom: 0.45em; font-size: 1.27rem; }
.step p { color: var(--ink-soft); }

/* About */
.about { display: grid; gap: clamp(34px, 5vw, 72px); align-items: center; }
.about__photo { position: relative; max-width: 340px; margin: 0; }
.about__photo img { position: relative; z-index: 1; border-radius: 26px; }
.about__photo::before { content: ""; position: absolute; right: -16px; bottom: -16px; width: 56%; aspect-ratio: 1; border-radius: 26px; background: var(--terra); opacity: 0.55; }
.about__text p { max-width: 36em; font-size: 1.1rem; }
.about__text .btn { margin-top: 0.6em; }

/* Questions */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary h3 { font: 650 1.12rem/1.35 var(--sans); letter-spacing: 0; }
.faq .answer { max-width: 44rem; padding: 0 28px 22px 0; color: var(--ink-soft); }

/* Write to me */
#contact { padding-top: 0; }
.contact { padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 64px); border-radius: 28px; background: var(--teal-deep); color: var(--white); text-align: center; }
.contact h2 { color: var(--white); }
.contact p { max-width: 34rem; margin-inline: auto; font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); }
.contact .btn { margin-top: 1.5em; }
.contact .mail { margin-top: 1.3em; font-size: 1.02rem; }
.contact .mail a { color: var(--white); font-weight: 600; }

/* Footer */
.site-footer { padding: clamp(40px, 6vw, 64px) 0 36px; border-top: 1px solid var(--line); }
.site-footer__in { display: grid; gap: 28px; }
.site-footer__brand img { width: min(330px, 78vw); height: auto; }
.site-footer__brand p { margin-top: 16px; max-width: 26em; color: var(--ink-soft); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer h2 { margin-bottom: 12px; font: 650 0.8rem/1.2 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal-ink); }
.site-footer a { color: var(--ink); }
.legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }

/* Privacy page */
.doc { max-width: 46rem; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.doc h2 { margin: 1.6em 0 0.4em; font-size: 1.45rem; }
.doc .back { display: inline-block; margin-bottom: 1.6em; font-weight: 600; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-wa { display: none; }
  .site-header .btn { display: inline-flex; }
  .site-header__in { min-height: 76px; }
  .brand img { height: 46px; }
  .pairs { grid-auto-flow: row; grid-auto-columns: auto; margin-inline: 0; padding: 0; overflow: visible; gap: 22px; }
  .pair--stack .pair__btn { grid-template-columns: 1fr 1fr; }
  .swipe { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:last-child { grid-column: 1 / -1; }
  .zoom__imgs { grid-template-columns: 1fr 1fr; }
  .site-footer__in { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .problem { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .project { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text pairs" "review pairs"; grid-template-rows: auto 1fr; column-gap: 60px; align-items: start; }
  .project__text { grid-area: text; }
  .project__pairs { grid-area: pairs; }
  .project__review { grid-area: review; position: sticky; top: 100px; }
  .project:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "pairs text" "pairs review"; }
}

@media (min-width: 1040px) {
  .nav { display: flex; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(n+4) { grid-column: span 3; }
  .card:last-child { grid-column: span 3; }
}

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
