/* ===================================================================
   FOUR PILLARS PROPERTY IMPROVEMENT — Stylesheet
   =================================================================== */

/* ---- Tokens ---- */
:root {
  --ink: #1c1e1b;
  --ink-soft: #4a4d47;
  --teal: #1e6f63;
  --teal-dark: #123f38;
  --teal-mid: #17594e;
  --stone: #9a9c97;
  --stone-light: #c9c8bf;
  --paper: #f6f3ec;
  --paper-raised: #ffffff;
  --line: #ddd9cc;
  --wood: #a9713f;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; max-width: 62ch; }

.eyebrow-mark {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--teal);
  font-weight: 700;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 243, 236, 0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 58px; width: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  gap: 0.15rem;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--teal); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-phone a.phone-link {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(18,26,24,0.25) 0%, rgba(15,25,22,0.55) 55%, rgba(10,20,18,0.86) 100%),
              url("../img/hero-livingroom.jpg") center 55% / cover no-repeat;
  color: #fff;
}

.hero-inner {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-top: 8rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--stone-light);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 1.3rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #e8e5da;
  max-width: 46ch;
  margin-bottom: 2.1rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Stat strip ---- */
.stat-strip {
  background: var(--ink);
  color: var(--paper);
}

.stat-strip .wrap {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}

.stat {
  padding-left: 0;
  border-left: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--stone-light);
  margin-top: 0.5rem;
}

/* ---- Section scaffolding ---- */
.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-dark {
  background: var(--teal-dark);
  color: var(--paper);
}
.section-dark .section-head p { color: #cfd8d4; }

.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink .section-head p { color: #c8c7c1; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.service-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 3px;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; }

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.service-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }

.service-list .name {
  font-weight: 700;
  font-size: 1.08rem;
}
.service-list .desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: right;
  max-width: 30ch;
}

/* ---- Pillars (values) ---- */
.pillars-frame {
  margin-top: 3.5rem;
}

.pillars-baseline {
  height: 6px;
  background: var(--stone);
  width: 100%;
  margin-bottom: 0;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.pillar-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pillar-shaft {
  background: var(--teal);
  border-top: 10px solid var(--stone-light);
}
.pillar-col:nth-child(2) .pillar-shaft,
.pillar-col:nth-child(3) .pillar-shaft {
  background: var(--stone);
}

.pillar-col:nth-child(1) .pillar-shaft { height: 60px; }
.pillar-col:nth-child(2) .pillar-shaft { height: 108px; }
.pillar-col:nth-child(3) .pillar-shaft { height: 108px; }
.pillar-col:nth-child(4) .pillar-shaft { height: 60px; }

.pillar-copy {
  padding-top: 1.5rem;
}

.pillar-copy h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.pillar-copy p {
  font-size: 0.94rem;
  color: var(--stone-light);
  margin-bottom: 0;
}

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/5;
}

.portfolio-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(0deg, rgba(10,15,13,0.75), transparent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
}
.about-copy p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---- Proof / before-after ---- */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.proof-badges {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}
.proof-badge {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 0.9rem 1.2rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.98rem;
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.before-after figure {
  margin: 0;
  position: relative;
}
.before-after img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
}
.before-after figcaption {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3em 0.7em;
  border-radius: 2px;
}

/* ---- Tagline banner ---- */
.tagline-banner {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  position: relative;
  overflow: hidden;
}
.tagline-banner .banner-inner { position: relative; z-index: 1; }
.tagline-banner img { height: 46px; margin: 0 auto 1.2rem; }
.tagline-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 24ch;
  margin: 0 auto 0.8rem;
}
.tagline-banner p { color: #d9efe9; margin: 0; }

/* ---- Who we serve ---- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.serve-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 1.8rem 1.5rem;
  border-radius: 3px;
}

.serve-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.serve-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-info h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 1rem;
}

.contact-line {
  display: block;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(246,243,236,0.2);
  font-size: 1.02rem;
}
.contact-line:last-of-type { border-bottom: 1px solid rgba(246,243,236,0.2); }
.contact-line .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--stone-light);
  margin-bottom: 0.25rem;
}
.contact-line a { text-decoration: none; font-weight: 600; }
.contact-line a:hover { color: var(--stone-light); }

.contact-form {
  background: var(--paper-raised);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink);
}

.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.85em;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  margin-bottom: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--stone-light);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246,243,236,0.14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}
.footer-brand img { height: 44px; }
.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.footer-brand-text span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.footer-brand-sub {
  font-family: var(--font-body) !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  color: var(--teal) !important;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .brand img { height: 52px; }
  .brand-word { font-size: 1.4rem; }
  .brand-sub { font-size: 0.72rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 0.75rem 0; width: 100%; border-top: 1px solid var(--line); }
  .main-nav a:first-child { border-top: none; }
  .nav-toggle { display: block; }
  .nav-phone .phone-link span.full { display: none; }
  .services-grid,
  .contact-grid,
  .about-grid,
  .proof-grid { grid-template-columns: 1fr; }
  .service-photo { order: -1; aspect-ratio: 16/10; }
  .about-photos { order: -1; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(1) { grid-column: span 2; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(1) { grid-column: span 1; }
  .serve-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
