/* Roei Levin — construction & renovation. Heritage craft: cream paper, oxblood, brass. */
:root {
  --paper: #f3ebda;
  --paper-deep: #e9dcc2;
  --card: #fbf6ec;
  --ink: #231a15;
  --ink-soft: #54463b;
  --oxblood: #6b1e23;
  --oxblood-deep: #4f1519;
  --brass: #b08d4c;
  --brass-text: #7a5b22;
  --rule: #cdbb98;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Alegreya Sans", "Gill Sans", system-ui, sans-serif;
  --caps: "Alegreya Sans SC", "Alegreya Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
h1 em, h2 em { font-style: italic; color: var(--oxblood); }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  font-family: var(--caps);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--brass-text);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: 1.25rem; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.brand small { display: block; font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--brass-text); font-weight: 500; margin-top: 0.25rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.6rem; }
.nav a { font-family: var(--caps); font-weight: 500; letter-spacing: 0.08em; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding-block: 0.6rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--oxblood); color: var(--oxblood); }
.nav a[aria-current="page"] { color: var(--oxblood); border-bottom-color: var(--brass); }
.nav .nav-quote { background: var(--oxblood); color: var(--card); padding: 0.6rem 1.1rem; border: 0; }
.nav .nav-quote:hover, .nav .nav-quote[aria-current="page"] { background: var(--oxblood-deep); color: var(--card); border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  font-family: var(--caps); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em;
  text-decoration: none; border: 1.5px solid var(--oxblood);
  background: var(--oxblood); color: var(--card);
  transition: background-color 180ms ease, transform 180ms ease;
}
.btn:hover { background: var(--oxblood-deep); color: var(--card); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--oxblood); }
.btn.ghost:hover { background: var(--oxblood); color: var(--card); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.ph { font-style: italic; background: rgba(176, 141, 76, 0.18); padding: 0 0.3em; }
.btn .ph { background: rgba(243, 235, 218, 0.16); font-style: italic; }
.btn.ghost .ph { background: rgba(176, 141, 76, 0.2); }

/* Framed panel: double rule like an engraved plate */
.frame { background: var(--card); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -7px; padding: clamp(1.6rem, 4vw, 3rem); position: relative; }

/* Hero — the drawing sheet */
.opening { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.opening .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.opening h1 { margin-bottom: 0.4em; }
.opening-copy { animation: rise 520ms cubic-bezier(.2,.7,.2,1) both; }
.sheet { background: var(--card); border: 1px solid var(--ink); padding: 14px; box-shadow: 10px 10px 0 var(--paper-deep); }
.sheet-inner { border: 1px solid var(--ink); }
.sheet svg { display: block; width: 100%; height: auto; }
.titleblock { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; border-top: 1px solid var(--ink); font-family: var(--caps); font-size: 0.85rem; letter-spacing: 0.06em; }
.titleblock div { padding: 0.5rem 0.75rem; border-left: 1px solid var(--ink); line-height: 1.3; }
.titleblock div:first-child { border-left: 0; }
.titleblock b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
.titleblock span { color: var(--ink-soft); }

/* Home: photo with overlapping plate */
.overlap { padding-block: clamp(2rem, 5vw, 4rem); }
.overlap .wrap { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.overlap figure { margin: 0; grid-column: 1 / 9; grid-row: 1; }
.overlap figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.12); }
.overlap .frame { grid-column: 7 / 13; grid-row: 1; z-index: 1; }
.overlap .frame p:last-child { margin-bottom: 0; }

/* Home: ledger of services */
.ledger-sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.ledger-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ledger-head h2 { margin: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; gap: 0.5rem 2rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.ledger h3 { margin: 0; font-size: 1.65rem; }
.ledger p { margin: 0; color: var(--ink-soft); }
.ledger a { font-family: var(--caps); font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; }

/* Home: oxblood band with two scales of work */
.band { background: var(--oxblood); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem); }
.band h2, .band h3 { color: var(--card); }
.band .eyebrow { color: #e3c88f; }
.band a:not(.btn) { color: #f1dcae; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.band-grid > div { border-top: 1px solid rgba(243, 235, 218, 0.45); padding-top: 1.5rem; }
.band ul { margin: 0; padding-left: 1.1rem; }
.band li { margin-bottom: 0.35rem; }
.band li::marker { color: #e3c88f; }

/* Craft split (home) */
.craft { padding-block: clamp(3.5rem, 7vw, 6rem); }
.craft .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.craft img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--ink); padding: 10px; background: var(--card); }
.craft .pull { margin: 1.5rem 0 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--brass); font-family: var(--display); font-size: 1.6rem; line-height: 1.3; font-style: italic; color: var(--ink); }

/* Closing call panel */
.closing { padding-block: 0 clamp(3.5rem, 7vw, 6rem); }
.closing .frame { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.closing .frame p { margin-inline: auto; }
.closing .btn-row { justify-content: center; }
.closing svg { width: 120px; height: auto; margin: 0 auto 1.2rem; display: block; }

/* Inner page heading */
.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: end; }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-bottom: 0.3em; }
.page-head svg { width: 100%; max-width: 300px; justify-self: end; height: auto; }

/* Services: plates */
.plates { padding-block: clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.plate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.plate:nth-child(even) figure { order: 2; }
.plate figure { margin: 0; }
.plate img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 1px solid var(--ink); padding: 10px; background: var(--card); }
.plate figcaption { font-family: var(--caps); font-size: 0.9rem; letter-spacing: 0.08em; color: var(--brass-text); margin-top: 0.6rem; }
.includes { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.includes li { padding: 0.6rem 0 0.6rem 1.8rem; border-bottom: 1px solid var(--rule); position: relative; }
.includes li::before { content: ""; position: absolute; left: 0.2rem; top: 1.15rem; width: 0.7rem; height: 0.7rem; border: 1.5px solid var(--oxblood); transform: rotate(45deg); }

/* Services: smaller trades as framed cards */
.trades { padding-block: clamp(3rem, 6vw, 5rem); background: var(--paper-deep); }
.trade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.trade-grid .frame { padding: 1.9rem 1.6rem; }
.trade-grid svg { width: 46px; height: 46px; color: var(--oxblood); margin-bottom: 0.8rem; }
.trade-grid p { font-size: 1.05rem; color: var(--ink-soft); }
.trade-grid p:last-child { margin-bottom: 0; }
.aside-note { padding-block: clamp(3rem, 6vw, 4.5rem); }
.aside-note .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem 4rem; align-items: start; }

/* Process: timeline */
.timeline-sec { padding-block: clamp(3rem, 6vw, 5rem); }
.timeline-sec .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.timeline-sec .intro { position: sticky; top: 2rem; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 2.4rem 4.6rem; }
.timeline li::before { content: counter(step, upper-roman); position: absolute; left: 0; top: -0.2rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--oxblood); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -5px; background: var(--card); }
.timeline li::after { content: ""; position: absolute; left: 1.6rem; top: 3.3rem; bottom: 0.3rem; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 0.3em; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* Process: agree-before checklist split with photo */
.agree { background: var(--card); border-block: 1px solid var(--rule); }
.agree .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.agree figure { margin: 0; }
.agree figure img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.agree .agree-copy { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem); }
.agree dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 1.2rem; }
.agree dt { font-family: var(--caps); font-weight: 700; letter-spacing: 0.06em; color: var(--oxblood); }
.agree dd { margin: 0; color: var(--ink-soft); }

/* Process: area served */
.area { padding-block: clamp(3rem, 6vw, 5rem); }
.area .frame { display: grid; grid-template-columns: auto 1fr; gap: 2rem 3rem; align-items: center; }
.area svg { width: 180px; height: auto; }
.area h2 { margin-bottom: 0.3em; }

/* FAQ */
.questions { padding-block: 0 clamp(3.5rem, 7vw, 6rem); }
.questions-list { border-top: 2px solid var(--ink); margin-top: 1.5rem; }
.questions details { border-bottom: 1px solid var(--rule); }
.questions summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.2rem 0; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; min-height: 44px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-family: var(--text); font-size: 1.6rem; color: var(--oxblood); transition: transform 200ms ease; flex: none; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { color: var(--ink-soft); padding-bottom: 0.6rem; }

/* Contact */
.quote { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.quote .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: grid; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--caps); font-weight: 700; letter-spacing: 0.06em; font-size: 1rem; }
.field label i { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink-soft); border-radius: 0; padding: 0.75rem 0.85rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--oxblood); outline-offset: 1px; border-color: var(--oxblood); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-foot p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
[data-sd-status] { font-weight: 700; color: var(--oxblood); margin: 0.8rem 0 0; }
[data-sd-status]:empty { display: none; }
.details-card { background: var(--ink); color: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem); }
.details-card h2 { color: var(--card); font-size: 2rem; }
.details-card dl { margin: 0; }
.details-card dt { font-family: var(--caps); letter-spacing: 0.12em; color: #e3c88f; font-size: 0.95rem; margin-top: 1.2rem; }
.details-card dd { margin: 0.2rem 0 0; font-size: 1.15rem; }
.details-card .ph { background: rgba(227, 200, 143, 0.2); }
.details-card .note { font-size: 0.95rem; color: #d9cdb6; margin: 1.6rem 0 0; border-top: 1px solid rgba(243,235,218,0.3); padding-top: 1rem; }
.helps { margin-top: 1.5rem; }
.helps h3 { font-size: 1.5rem; }
.helps ol { margin: 0; padding-left: 1.3rem; color: var(--ink-soft); }
.helps li { margin-bottom: 0.4rem; }

/* Footer */
.colophon { background: var(--ink); color: #d9cdb6; padding-block: 3.5rem 2rem; font-size: 1rem; }
.colophon a { color: #f1dcae; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.colophon .brand { color: var(--card); }
.colophon .brand small { color: #e3c88f; }
.colophon h2 { font-family: var(--caps); font-size: 0.95rem; letter-spacing: 0.14em; font-weight: 500; color: #e3c88f; margin: 0 0 0.8rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.4rem; }
.colophon .ph { background: rgba(227, 200, 143, 0.18); }
.foot-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(243,235,218,0.2); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.95rem; }
.foot-base nav { display: flex; gap: 1.2rem; }

@keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .opening .wrap, .craft .wrap, .page-head .wrap, .plate, .timeline-sec .wrap, .agree .wrap, .quote .wrap, .aside-note .wrap { grid-template-columns: 1fr; }
  .plate:nth-child(even) figure { order: 0; }
  .timeline-sec .intro { position: static; }
  .page-head svg { justify-self: start; max-width: 220px; }
  .overlap figure { grid-column: 1 / -1; }
  .overlap .frame { grid-column: 2 / -1; grid-row: 2; margin-top: -3.5rem; }
  .trade-grid { grid-template-columns: 1fr 1fr; }
  .agree figure { margin: 0 calc(-1 * var(--gutter)); }
  .agree figure img { min-height: 0; aspect-ratio: 16 / 10; }
  .agree .agree-copy { padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .masthead .wrap { padding-block: 0.8rem 0.4rem; }
  .nav { gap: 0 1.1rem; width: 100%; }
  .nav a { font-size: 1rem; }
  .nav a[href="how-we-work#faq"] { display: none; }
  .sheet { box-shadow: 6px 6px 0 var(--paper-deep); }
  .nav .nav-quote { margin-left: auto; }
  .ledger li { grid-template-columns: 1fr; gap: 0.3rem; }
  .band-grid, .trade-grid, .form-grid { grid-template-columns: 1fr; }
  .overlap .frame { grid-column: 1 / -1; margin: -2.5rem 0.75rem 0; }
  .area .frame { grid-template-columns: 1fr; }
  .area svg { width: 130px; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div:last-child { display: none; }
  .agree dl { grid-template-columns: 1fr; gap: 0.2rem; }
  .agree dd { margin-bottom: 0.8rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}
