/* ==========================================================================
   Wickey Renovations — heritage / refined editorial
   Shared stylesheet
   ========================================================================== */

:root {
  --sage:        #5b6b53;
  --sage-2:      #6f7d63;
  --sage-deep:   #45513e;
  --stone:       #e7e1d5;
  --stone-2:     #d8d1c1;
  --paper:       #f6f3ec;
  --paper-2:     #efe9dd;
  --ink:         #2b2b28;
  --ink-soft:    #55534b;
  --line:        #cfc7b4;
  --gold:        #b08d57;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--sage); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sage-2); outline-offset: 3px; }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sage);
  margin: 0 0 1rem;
}
.eyebrow--light { color: #cdd6c2; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--sage); color: var(--paper); }
.btn--solid:hover { background: var(--sage-deep); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--sage); }
.btn--outline:hover { background: var(--sage); color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(246,243,236,.55); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,236,.92);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav__list a {
  font-size: .93rem; font-weight: 500; color: var(--ink); letter-spacing: .02em;
  padding: .3rem 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--sage); transition: width .25s;
}
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; }
.nav__list a.is-active { color: var(--sage-deep); }

.nav__phone {
  font-family: var(--serif); font-size: 1.05rem; color: var(--sage-deep);
  white-space: nowrap;
}
.nav__phone:hover { color: var(--sage); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
}
.burger span { display: block; height: 2px; width: 26px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; bottom: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); visibility: hidden;
    transition: transform .32s ease, visibility 0s linear .32s;
    box-shadow: 0 18px 40px rgba(43,43,40,.12);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; transition: transform .32s ease, visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 1rem .2rem; font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .nav__phone { padding: 1.1rem .2rem 0; font-size: 1.2rem; }
}

/* ==========================================================================
   Hero (home) — asymmetric editorial
   ========================================================================== */
.hero { background: var(--paper); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__body { align-self: center; max-width: 34rem; }
.hero__kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sage); margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero__kicker::before { content: ""; width: 40px; height: 1.5px; background: var(--sage); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.02; margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 2rem; max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__meta { display: flex; gap: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero__meta div { line-height: 1.2; }
.hero__meta strong { font-family: var(--serif); font-size: 1.5rem; color: var(--sage-deep); display: block; }
.hero__meta span { font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; }

.hero__figure { position: relative; align-self: stretch; }
.hero__figure img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(43,43,40,.4);
}
.hero__tag {
  position: absolute; left: -18px; bottom: 32px;
  background: var(--sage-deep); color: var(--paper);
  font-family: var(--serif); font-size: .95rem; letter-spacing: .04em;
  padding: .7rem 1.2rem; border-radius: var(--radius);
  box-shadow: 0 14px 30px -12px rgba(43,43,40,.5);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__tag { left: 12px; }
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--stone { background: var(--stone); }
.section--paper2 { background: var(--paper-2); }
.section--sage { background: var(--sage-deep); color: var(--paper); }
.section--sage h1, .section--sage h2, .section--sage h3 { color: var(--paper); }

.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section__head p { font-size: 1.12rem; color: var(--ink-soft); }
.section--sage .section__head p { color: #d8dcd0; }

/* ---- Story / intro split ---- */
.story__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.story__figure img { border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(43,43,40,.4); }
.story__body h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.story__body .lead { font-size: 1.18rem; color: var(--ink); }
.story__body p { color: var(--ink-soft); }
.rule { width: 56px; height: 2px; background: var(--sage); border: 0; margin: 0 0 1.6rem; }

@media (max-width: 780px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__figure { order: -1; }
}

/* ---- Pillars (what we do trio) ---- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 32px);
}
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(43,43,40,.4); }
.pillar__figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.pillar__figure img { width: 100%; height: 100%; object-fit: cover; }
.pillar__body { padding: 1.6rem 1.5rem 1.8rem; }
.pillar__num {
  font-family: var(--serif); font-size: .85rem; color: var(--sage); letter-spacing: .1em;
}
.pillar__body h3 { font-size: 1.4rem; margin: .3rem 0 .5rem; }
.pillar__body p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }

/* ---- Values band ---- */
.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
}
.value h3 { font-size: 1.25rem; color: var(--paper); margin-bottom: .4rem; }
.value p { color: #d3d8ca; font-size: .96rem; margin: 0; }
.value__ico { color: #cdd6c2; margin-bottom: .9rem; }
@media (max-width: 860px) { .values__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values__grid { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta {
  background: var(--sage); color: var(--paper); border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta h2 { color: var(--paper); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .4rem; }
.cta p { color: #e4e9dd; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   Our Work page
   ========================================================================== */
.page-hero { background: var(--sage-deep); color: var(--paper); padding-block: clamp(56px, 9vw, 120px); }
.page-hero .eyebrow { color: #cdd6c2; }
.page-hero h1 { color: var(--paper); font-size: clamp(2.4rem, 5.5vw, 3.8rem); max-width: 16ch; }
.page-hero p { color: #d8dcd0; font-size: 1.15rem; max-width: 48ch; }

/* pillar detail rows */
.detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-block: clamp(40px, 6vw, 80px);
}
.detail:not(:last-child) { border-bottom: 1px solid var(--line); }
.detail--rev .detail__media { order: 2; }
.detail__media img { border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(43,43,40,.4); }
.detail__num {
  font-family: var(--serif); font-size: 3.2rem; color: var(--stone-2); line-height: 1;
  display: block; margin-bottom: .3rem;
}
.detail__body h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.detail__body p { color: var(--ink-soft); }
.ticks { list-style: none; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px;
  border: 2px solid var(--sage); border-radius: 50%;
}
@media (max-width: 780px) {
  .detail { grid-template-columns: 1fr; }
  .detail--rev .detail__media { order: -1; }
  .detail__media { order: -1; }
}

/* gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 20px);
}
.gallery__item {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--stone);
  aspect-ratio: 4 / 3; position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(43,43,40,.78), transparent);
  color: var(--paper); font-size: .82rem; letter-spacing: .04em;
  padding: 1.6rem .9rem .7rem;
}
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* before/after note */
.ba-note {
  margin-top: 2rem; background: var(--paper); border: 1px dashed var(--sage-2);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; color: var(--ink-soft);
  font-size: .95rem; display: flex; align-items: center; gap: .8rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
/* Centered editorial layout (single column — distinct from siblings) */
.contact--center .contact-center { padding-block: clamp(52px, 8vw, 112px); }
.contact--center .contact-intro {
  max-width: 620px; margin: 0 auto clamp(30px, 5vw, 52px); text-align: center;
}
.contact--center .contact-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem;
}
.contact--center .contact-intro__lead {
  color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; margin-inline: auto;
}
.contact--center .contact-form {
  max-width: 600px; margin-inline: auto; text-align: left;
}
.contact--center .contact-form__note {
  margin-top: .3rem; text-align: center;
}

.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--ink); }
.field label .req { color: var(--gold); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .8rem .95rem; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(91,107,83,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.field__err { font-size: .8rem; color: #a4472e; min-height: 1em; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b45a3f; }
.form__note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.form__status { font-size: .95rem; font-weight: 600; color: var(--sage-deep); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Horizontal detail row — plain typographic blocks under a hairline rule */
.contact--center .contact-details {
  max-width: 840px; margin: clamp(36px, 5vw, 56px) auto 0;
  padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 32px);
  justify-content: center; text-align: center;
}
.contact--center .contact-detail { flex: 1 1 0; min-width: 0; }
.contact--center .contact-detail__label {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--sage); font-weight: 600; margin-bottom: .5rem;
}
.contact--center .contact-detail__value {
  display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.55;
  overflow-wrap: anywhere;
}
.contact--center a.contact-detail__value { color: var(--sage-deep); font-weight: 500; }
.contact--center a.contact-detail__value:hover { color: var(--sage); }

/* Closing service-area line — prose, centered */
.contact--center .contact-area {
  max-width: 46ch; margin: clamp(28px, 4vw, 40px) auto 0; text-align: center;
  color: var(--ink-soft); font-size: .98rem;
}

@media (max-width: 560px) {
  .contact--center .contact-details { flex-direction: column; gap: 1.6rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--ink); color: #d7d4cb; padding-block: clamp(48px, 7vw, 80px); }
.foot a { color: #d7d4cb; }
.foot a:hover { color: var(--paper); }

/* Centered, editorial single-column stack */
.foot__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(18px, 2.6vw, 28px);
}
.foot__logo { line-height: 0; }
.foot__logo img { height: 48px; width: auto; }

.foot__nav {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .2rem .7rem; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .01em;
}
.foot__nav a { text-decoration: none; }
.foot__dot { color: var(--sage-2); opacity: .85; }

.foot__contact {
  font-style: normal; display: grid; gap: .55rem; font-size: .96rem;
  color: #cfccc3; line-height: 1.65;
}
.foot__reach {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem;
}
.foot__area { color: #9ea699; font-size: .9rem; letter-spacing: .01em; }

.foot__tag {
  font-family: var(--serif); font-style: italic; color: #b7b4ab;
  max-width: 46ch; font-size: 1.02rem; line-height: 1.5;
}

.foot__rule {
  width: min(100%, 640px); height: 0; border: 0;
  border-top: 1px solid rgba(215,212,203,.18);
  margin: clamp(6px, 1.4vw, 14px) 0 0;
}

.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .35rem 1.6rem; font-size: .85rem; color: #9ea699;
}

@media (max-width: 480px) {
  .foot__bottom { flex-direction: column; gap: .35rem; }
}

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.bbb-badge { display:inline-block; background:none; border:0; padding:0; line-height:0; margin: 2px auto 0; }
.bbb-badge img { display:block; width:150px; max-width:100%; height:auto; }
.bbb-strip { padding:20px 0; }
.bbb-strip__inner { display:flex; align-items:center; justify-content:center; }
