/* Innerspace Solutions — shared styles */
:root {
  --bg: #f6f0e4;          /* cream */
  --surface: #fbf8f1;     /* light cream */
  --surface-2: #ede3cf;   /* deeper cream */
  --border: #dfd2b8;
  --text: #2b2d2f;
  --muted: #62625c;
  --sage: #7f9677;
  --sage-dark: #56704f;
  --sage-soft: #e3eadc;
  --blue: #3f5f7a;
  --blue-dark: #2c4559;
  --blue-soft: #dfe7ee;
  --orange: #b85a26;      /* burnt orange */
  --orange-dark: #97481c;
  --orange-soft: #f5e1d2;
  --accent: var(--sage);
  --accent-strong: var(--blue);
  --accent-soft: var(--sage-soft);
  --radius: 12px;
  --max: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Karla', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }
h1, h2, h3 {
  color: var(--blue-dark);
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 500;
  font-variation-settings: "WONK" 0;   /* keep Fraunces headings upright */
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* Placeholder text you still need to fill in — search the files for class="fill" */
.fill { background: #fff3c4; color: #5a4700; padding: 0 0.25em; border-radius: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); position: relative; }
/* Wood-grain strip under the header and above the footer */
.site-header::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 28px;
  background: #cf953d url("wood.svg") left center / 1200px 100% repeat-x;
}
.site-header::after { bottom: -28px; z-index: 1; box-shadow: 0 2px 4px rgba(80, 50, 25, 0.18); }
.site-footer::before { top: 0; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.logo {
  display: flex; align-items: flex-end; gap: 0.6rem; line-height: 1;
  font-family: 'Fraunces', serif; font-size: 1.3rem;
  color: var(--blue-dark); text-decoration: none;
}
.logo img { width: 44px; height: 44px; margin-bottom: -3px; }  /* nudges the name up so it centers on the house's side walls */
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-strong); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 8px; padding: 0.8rem 1.4rem; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.nav .btn { color: #fff; padding: 0.55rem 1rem; font-size: 0.95rem; }
.nav .btn:hover { color: #fff; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sage-dark); font-weight: 700; margin-bottom: 0.8rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.hero { padding: 5.5rem 0 4.5rem; }
/* Home hero: text on the left, illustration on the right (stacks on phones) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }
.hero-art { width: 100%; max-width: 440px; height: auto; justify-self: end; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; max-width: 300px; justify-self: center; }
}
.hero .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-2x2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--sage);   /* must come after "border" or it gets overwritten */
  border-radius: var(--radius); padding: 1.6rem;
}
.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
/* Any button inside a card is centered in the card */
.card .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; text-align: center; }
/* Cards with a button at the bottom: buttons line up across a row */
.cards-with-buttons .card { display: flex; flex-direction: column; }
.cards-with-buttons .card .btn { margin-top: auto; }
.card .price {
  font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--orange-dark);
  margin: 0.2rem 0 0.8rem;
}
.card .price small { font-family: 'Karla', sans-serif; font-size: 0.9rem; color: var(--muted); }

/* Services: hourly rate line */
.rate {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.6rem;
  margin: 1.2rem 0 1.4rem;
}
.rate span { color: var(--muted); }
.rate strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.6rem; color: var(--orange-dark); }

/* Services: crossed-out old rate (an "X" drawn over the number) */
.rate .was { position: relative; display: inline-block; color: var(--muted); margin-right: 0.35rem; }
.rate .was::before, .rate .was::after {
  content: ""; position: absolute; left: -8%; top: 50%; width: 116%; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.rate .was::before { transform: rotate(24deg); }
.rate .was::after  { transform: rotate(-24deg); }

/* Services: introductory-rate badge */
.promo-badge {
  display: inline-block; margin: 0.4rem 0 0;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 0.45rem 1rem; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(184, 90, 38, 0.3);
  transform: rotate(-2deg);
}

/* Services: sample project times */
.times { list-style: none; padding: 0; margin: 0; }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: 0; line-height: 1.5; }
.times li span:last-child { color: var(--muted); white-space: nowrap; }

.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 0; margin: 0; }
.steps li { list-style: none; counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; margin-bottom: 0.8rem;
}

.trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; color: var(--muted); font-size: 0.95rem; margin-top: 2rem; }
.trust span::before { content: "✓ "; color: var(--orange); font-weight: 700; }

.note {
  background: var(--sage-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; color: var(--sage-dark); font-size: 0.95rem;
}

.cta-band { text-align: center; }
.cta-band .lede { margin: 0 auto 1.8rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 18rem) 1fr; align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%;
  border-radius: var(--radius);
}
.about-badge { margin-top: 1.5rem; display: flex; justify-content: center; }
.about-badge a { display: block; }
.about-badge img { max-width: 10rem; height: auto; margin: 0 auto; }

/* ---------- Forms ---------- */
form { display: grid; gap: 1.1rem; }
label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.85rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
details + details { margin-top: 0.7rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.7rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); padding: calc(2.5rem + 28px) 0 2.5rem; position: relative; font-size: 0.92rem; color: #e9e2d3; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.site-footer a { color: #f6f0e4; }
.site-footer .fill { color: #5a4700; }
.footer-badge { order: -1; }   /* ASPO badge sits in the footer's left corner */
.footer-badge a { display: block; background: var(--surface); border-radius: 8px; padding: 0.4rem; }
.footer-badge img { height: 62px; width: auto; }

@media (max-width: 720px) {
  section { padding: 3.2rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 18rem; }
}

/* Card top accents alternate sage / blue / orange */
.grid-3 .card:nth-child(3n+2) { border-top-color: var(--blue); }
.grid-3 .card:nth-child(3n+3) { border-top-color: var(--orange); }

/* ---------- Wood-panel sections (version 2) ----------
   Light oak plank background behind the "alt" sections.
   Cream cards sit on top; a soft cream wash keeps text easy to read. */
.alt {
  background:
    linear-gradient(rgba(251, 248, 241, 0.18), rgba(251, 248, 241, 0.18)),
    #d6b086 url("wood-planks.svg") left top / 1200px 192px repeat;
  border-top: 0; border-bottom: 0;
}
.alt .card { background: var(--surface); box-shadow: 0 2px 10px rgba(80, 50, 25, 0.16); }
.alt .eyebrow { color: #3f4f36; }
.alt .lede { color: #3a3a35; }
.alt .note { box-shadow: 0 2px 10px rgba(80, 50, 25, 0.12); }
.alt > .wrap > p > a { color: var(--blue-dark); font-weight: 600; }

/* ---------- Teal pop of color (version 3) ---------- */
:root { --teal: #0081a0; --teal-dark: #00657e; --teal-soft: #d3eef5; }
/* 3c: bright teal buttons; burnt orange kept for small accents */
.btn-primary { background: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-primary { box-shadow: 0 3px 10px rgba(0, 129, 160, 0.3); }

/* ---------- Version 4: steps, icons, tool ribbon ---------- */
.steps li::before { background: var(--teal); color: #fff; box-shadow: 0 2px 6px rgba(0, 129, 160, 0.3); }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark); flex: none;
}
/* icon sits on the same line as the card heading */
.card-title-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.card-title-row h3 { margin: 0; }
.card-icon .icon { width: 1.6rem; height: 1.6rem; }
/* icon circles pick up the card's top-edge color */
.grid-3 .card:nth-child(3n+1) .card-icon { background: var(--sage-soft); color: var(--sage-dark); }
.grid-3 .card:nth-child(3n+2) .card-icon { background: var(--blue-soft); color: var(--blue); }
.grid-3 .card:nth-child(3n+3) .card-icon { background: var(--orange-soft); color: var(--orange-dark); }

/* decorative row of tools, cleaning and organizing icons */
.tool-ribbon {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 0.6rem; padding: 0 0 2.4rem;
}
.tool-ribbon span { display: inline-flex; color: var(--sage-dark); opacity: 0.85; }
.tool-ribbon span:nth-child(3n+2) { color: var(--teal); }
.tool-ribbon span:nth-child(3n+3) { color: var(--blue-dark); }
.tool-ribbon .icon { width: 2.4rem; height: 2.4rem; }
.before-ribbon { padding-bottom: 2.6rem; }
@media (max-width: 720px) {
  .tool-ribbon { justify-content: center; gap: 0.9rem; }
  .tool-ribbon .icon { width: 1.6rem; height: 1.6rem; }
}

.note-icon { display: flex; gap: 0.8rem; align-items: center; }
.note-icon .icon { flex: none; width: 2rem; height: 2rem; color: var(--teal-dark); }

/* Service cards: icon centered above the heading, text centered */
.grid-3 .card { text-align: center; }
.card-title-row { flex-direction: column; gap: 0.65rem; }
.card-icon { width: 3.4rem; height: 3.4rem; }
.card-icon .icon { width: 1.9rem; height: 1.9rem; }

/* Contact & About cards: same centered icon treatment */
.cards-with-buttons .card, .grid-2 .card { text-align: center; }
.grid-2 .card:nth-child(4n+1) .card-icon { background: var(--sage-soft); color: var(--sage-dark); }
.grid-2 .card:nth-child(4n+2) .card-icon { background: var(--blue-soft); color: var(--blue); }
.grid-2 .card:nth-child(4n+3) .card-icon { background: var(--teal-soft); color: var(--teal-dark); }
.grid-2 .card:nth-child(4n+4) .card-icon { background: var(--orange-soft); color: var(--orange-dark); }
.card-title-row h2 { margin: 0; }

/* Golden wood strips: a soft glint that drifts across now and then */
.site-header::after, .site-footer::before {
  background:
    linear-gradient(100deg, transparent 0%, transparent 42%, rgba(255, 226, 160, 0.45) 50%, transparent 58%, transparent 100%) -60% 0 / 60% 100% no-repeat,
    #cf953d url("wood.svg") left center / 1200px 100% repeat-x;
  animation: wood-glint 9s ease-in-out infinite;
}
.site-footer::before { animation-delay: 3.5s; }
@keyframes wood-glint {
  0%, 55% { background-position: -60% 0, left center; }
  100%    { background-position: 160% 0, left center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::after, .site-footer::before { animation: none; }
}

/* 3D icon row */
.tool-ribbon-3d .icon3d { width: 2.9rem; height: 2.9rem; filter: drop-shadow(0 2px 2px rgba(80, 50, 25, 0.18)); }
@media (max-width: 720px) { .tool-ribbon-3d .icon3d { width: 2.2rem; height: 2.2rem; } }

/* 3D card icons: the object itself, no circle behind it */
.card-icon-3d, .grid-3 .card .card-icon-3d { background: none !important; width: 3.8rem; height: 3.8rem; }
.card-icon-3d .icon3d { width: 3.8rem; height: 3.8rem; filter: drop-shadow(0 2px 2px rgba(80, 50, 25, 0.18)); }
.note-icon .icon3d { flex: none; width: 2.8rem; height: 2.8rem; }
