/* Oak & Stone Home Improvements: fictional website concept by Addspent */
:root {
  --forest: #2E3A30;
  --forest-2: #3B4A3D;
  --oak: #C98A4B;
  --oak-dark: #9A6430;
  --stone: #F6F1E8;
  --stone-2: #ECE4D6;
  --ink: #1F2421;
  --muted: #5E625C;
  --line: #DDD3C2;
  --error: #B42318;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

.ribbon {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px;
  padding: 8px 16px; font-size: 13px; text-align: center;
  background: var(--ink); color: rgba(246, 241, 232, .85);
}
.ribbon a { font-weight: 600; color: #F2C08E; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 232, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; fill: none; stroke: var(--oak); stroke-width: 2.5; stroke-linejoin: round; }
.brand em { font-style: normal; color: var(--oak); }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.header__nav a:hover { color: var(--ink); }
.menu-toggle {
  display: none; margin-left: auto; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600;
  background: none; border: 1px solid var(--ink); border-radius: 6px; cursor: pointer;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: none; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  background: var(--oak); color: #fff;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.button:hover { background: var(--oak-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(154, 100, 48, .7); }
.button--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.button--light { background: var(--stone); color: var(--forest); }
.button--light:hover { background: #fff; }
.text-link { font-weight: 600; color: var(--oak-dark); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--oak-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { margin-top: 16px; font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.hero__lead { margin-top: 20px; max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__card {
  padding: 30px; border-radius: 10px; background: var(--forest); color: var(--stone);
  box-shadow: 0 30px 60px -30px rgba(46, 58, 48, .6);
  animation: rise .9s var(--ease) .15s backwards;
}
.hero__card h2 { font-size: 1.5rem; }
.hero__card ol { list-style: none; display: grid; gap: 18px; margin: 22px 0 24px; }
.hero__card li { display: flex; gap: 14px; }
.hero__card li span {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--oak); color: #fff; font-weight: 600;
}
.hero__card p { font-size: 14px; color: rgba(246, 241, 232, .75); }
.hero__card .text-link { color: #F2C08E; }
.hero__copy > * { animation: rise .8s var(--ease) backwards; }
.hero__copy > *:nth-child(2) { animation-delay: .06s; }
.hero__copy > *:nth-child(3) { animation-delay: .12s; }
.hero__copy > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section h2 { margin-top: 10px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section__lead { margin-top: 12px; max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.section--dark { background: var(--forest); color: var(--stone); }
.section--dark .eyebrow { color: #F2C08E; }
.section--soft { background: var(--stone-2); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.service {
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: var(--oak); box-shadow: 0 18px 40px -26px rgba(31, 36, 33, .5); }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--oak); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.service h3 { margin-top: 6px; font-size: 1.3rem; }
.service p { color: var(--muted); font-size: 15px; }
.service a { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--oak-dark); text-decoration: none; }
.service a:hover { text-decoration: underline; }

.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 40px 0 36px; }
.process li { padding: 26px 22px; border-radius: 10px; background: var(--forest-2); }
.process span { font-family: var(--serif); font-size: 1.6rem; color: #F2C08E; }
.process h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.process p { font-size: 15px; color: rgba(246, 241, 232, .78); }

.trust { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.commitments { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 32px; }
.commitments li { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--oak); }
.commitments span { color: var(--muted); font-size: 15px; }
.placeholder-card {
  padding: 26px; border: 2px dashed var(--line); border-radius: 10px; background: rgba(255, 255, 255, .5);
  display: grid; gap: 10px; color: var(--muted); font-size: 15px;
}
.placeholder-card__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--oak-dark); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Quote form */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote__intro > p { margin-top: 12px; color: var(--muted); }
.demo-note { margin-top: 24px; padding: 16px 18px; border-radius: 8px; background: #FEF3C7; color: #5C3A00; font-size: 14px; }
.quote__form, .quote__done { padding: clamp(22px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; border: none; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 6px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 3px rgba(201, 138, 75, .25); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 14px; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.radios { display: flex; gap: 22px; margin-top: 4px; }
.radios label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.radios input { accent-color: var(--oak-dark); width: 18px; height: 18px; }
.error-summary { padding: 16px 18px; border-left: 4px solid var(--error); background: #FEF3F2; border-radius: 4px; }
.error-summary p { font-weight: 600; }
.error-summary ul { margin: 6px 0 0 18px; }
.error-summary a { color: var(--error); font-weight: 500; }
.quote__done { text-align: left; animation: rise .5s var(--ease); }
.quote__done-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--forest); color: #fff; font-size: 24px;
}
.quote__done h3 { font-size: 1.5rem; }
.quote__done .button { justify-self: start; }

.footer { padding: 40px 0; background: var(--ink); color: rgba(246, 241, 232, .8); font-size: 14px; }
.footer__inner { display: grid; gap: 10px; }
.brand--light { color: var(--stone); }
.footer a { color: #F2C08E; font-weight: 600; text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .trust, .faq-wrap, .quote { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header__inner { gap: 12px; }
  .header__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--stone); border-bottom: 1px solid var(--line);
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-block; }
  .header__cta { display: none; }
  .services, .process, .commitments, .row { grid-template-columns: 1fr; }
  .hero__actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
