/* ==========================================================================
   Goat Carpentry — Design Tokens (dark theme)
   ========================================================================== */
:root {
  --black:        #0E0D0A;   /* deepest bg — hero, nav, footer */
  --charcoal:      #16150F;  /* primary section bg */
  --charcoal-alt:  #1C1A14;  /* alternating section bg */
  --panel:         #201E17;  /* raised card / panel bg */
  --panel-line:    rgba(243,239,230,0.09);
  --gold:         #B89B5E;
  --gold-bright:  #D8BE87;
  --bronze:       #8A6F3F;
  --cream:        #F3EFE6;   /* headline / high-contrast text on dark */
  --stone:        #A79F91;   /* body text on dark */
  --stone-dim:    #7A7365;   /* muted / secondary text on dark */
  --line-dark:    rgba(243,239,230,0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--cream);
}
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-bright); }

p { margin: 0 0 1em; color: var(--stone); }
a { color: inherit; text-decoration: none; }

.eyebrow-line {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14,13,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo-wrap { position: relative; display: inline-block; }
.brand-lockup { height: 34px; width: auto; object-fit: contain; display: block; }
.brand-lockup-icon { display: none; }
.brand-tagline-img {
  position: absolute;
  top: 100%;
  left: 58.99%;   /* horizontal centre of the "GOAT CARPENTRY" wordmark, excluding the goat icon */
  transform: translateX(-50%);
  margin-top: 3px;
  width: 188px;   /* matches the tagline-to-wordmark width ratio from the approved mockup */
  height: auto;
}

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  color: rgba(243,239,230,0.82);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--gold-bright); }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.header-cta .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,13,10,0.60) 0%, rgba(14,13,10,0.45) 40%, rgba(14,13,10,0.96) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 220px;
  padding-bottom: 60px;
  max-width: 780px;
}
.hero-kicker {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 22px;
  text-align: center;
}
.hero-sub {
  color: rgba(243,239,230,0.86);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  padding: 26px 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; padding-right: 20px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--gold-bright);
}
.stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(243,239,230,0.65);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Intro / Specialties
   ========================================================================== */
.intro { padding: 100px 0; background: var(--charcoal); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}
.intro-lead {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream);
  line-height: 1.45;
  font-weight: 500;
}
.intro-copy p:not(.intro-lead) { font-size: 16px; }
.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.intro-specialties {
  border-left: 1px solid var(--panel-line);
  padding-left: 48px;
}
.intro-specialties h3 {
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--cream);
  font-weight: 800;
  margin-bottom: 20px;
}
.specialty-list { list-style: none; margin: 0; padding: 0; }
.specialty-list li {
  border-bottom: 1px solid var(--panel-line);
}
.specialty-list li:first-child { border-top: 1px solid var(--panel-line); }
.specialty-list a {
  display: block;
  padding: 15px 2px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--cream);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.specialty-list a:hover { color: var(--gold-bright); padding-left: 8px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 40px 0 110px; background: var(--charcoal); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 70px;
  align-items: center;
}
.portrait-frame {
  aspect-ratio: 4/5;
  background: var(--black);
  border-radius: 4px;
  display: block;
  position: relative;
  overflow: hidden;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-dark);
  z-index: 1;
  pointer-events: none;
}
.portrait-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-copy h2 { font-size: clamp(28px, 3.4vw, 38px); }
.about-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.about-badges span {
  border: 1px solid var(--panel-line);
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--charcoal); padding-bottom: 40px; }
.section-head { padding: 0 0 56px; max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-sub { font-size: 16px; margin-top: 8px; }
.section-head-light .eyebrow-line { color: var(--gold-bright); }
.section-head-light h2 { color: #fff; }
.section-head-light .section-sub { color: rgba(243,239,230,0.65); }

.service { padding: 60px 0; }
.service-alt { background: var(--charcoal-alt); }
.service-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.service-alt .service-grid { grid-template-columns: 1.4fr 0.85fr; }
.service-alt .service-copy { order: 2; }
.service-alt .service-photos { order: 1; }

.service-num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.service-copy h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.service-copy p { font-size: 16px; max-width: 440px; }

.service-photos { display: grid; gap: 10px; }
.photos-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photos-3 img {
  aspect-ratio: 4/3.2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: var(--panel);
}

/* Renovation reverted to standard service-grid layout (kept for backward compatibility) */

/* ==========================================================================
   Before / After Slider
   ========================================================================== */
.ba-slider { display: block; }
.ba-media {
  position: relative;
  aspect-ratio: 4/3.3;
  border-radius: 4px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--black);
}
.ba-media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.ba-before-wrap img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-bright);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.ba-handle-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ba-tag {
  position: absolute;
  bottom: 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}
.ba-tag-before { left: 12px; background: rgba(14,13,10,0.82); color: var(--stone); border: 1px solid var(--line-dark); }
.ba-tag-after { right: 12px; background: var(--gold-bright); color: var(--black); }
.ba-caption { font-size: 14px; color: var(--stone); margin: 0; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: var(--black); padding: 100px 0; }
.process .section-head { margin: 0 auto 60px; text-align: left; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 36px;
}
.process-step {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
}
.process-index {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 10px;
}
.process-step h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.process-step p {
  color: rgba(243,239,230,0.62);
  font-size: 14.5px;
  margin: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 100px 0; background: var(--charcoal); }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* Before/after slider row, used in the Gallery */
.ba-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.gallery-grid {
  columns: 5 210px;
  column-gap: 14px;
}
.g-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 3px;
  overflow: hidden;
}
.g-item img { width: 100%; height: auto; display: block; }
.g-item.hidden, .ba-slider.hidden { display: none; }

/* Show-more collapsing: extra items stay hidden until expanded */
.gallery-grid.collapsed .g-item.g-extra { display: none; }
.g-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.g-more-wrap.hidden { display: none; }
.g-more-btn { min-width: 220px; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { background: var(--black); padding: 100px 0 70px; }

.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}
.rc-viewport { overflow: hidden; flex: 1; min-width: 0; }
.rc-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.rc-track .review { flex: 0 0 100%; }

.review-stars {
  text-align: center;
  color: var(--gold-bright);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.review {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  justify-content: center;
}
.review p {
  color: rgba(243,239,230,0.9);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  text-align: center;
}
.review footer {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-bright);
  text-align: center;
}
.review footer span { color: var(--stone-dim); font-weight: 500; }

.rc-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--panel);
  color: var(--gold-bright);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.rc-arrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.rc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 32px;
  max-width: 760px;
}
.rc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rc-dot.active { background: var(--gold-bright); transform: scale(1.3); }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { background: var(--charcoal-alt); padding: 70px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
}
.trust-item h4 {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--cream);
  margin-bottom: 6px;
}
.trust-item p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--charcoal); padding: 100px 0 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 90px;
}
.contact h2 { font-size: clamp(28px, 3.4vw, 38px); }
.contact-lead { font-size: 16px; max-width: 420px; }
.contact-details { list-style: none; margin: 30px 0; padding: 0; }
.contact-details li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-line);
  align-items: baseline;
}
.contact-details li span:first-child {
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--stone-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-details li a, .contact-details li .static-value { font-weight: 700; color: var(--cream); }
.contact-details li a:hover { color: var(--gold-bright); }
.contact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--stone);
}

.contact-form {
  background: var(--black);
  border-radius: 6px;
  padding: 40px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(243,239,230,0.75);
  margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--stone-dim);
  text-align: center;
}
.form-note.is-success { color: var(--gold-bright); font-weight: 600; }
.form-note.is-error { color: #d98a7a; font-weight: 600; }
.form-hp { position: absolute; left: -9999px; top: -9999px; }

.map-wrap { padding-bottom: 0; border-radius: 6px 6px 0 0; overflow: hidden; border: 1px solid var(--line-dark); border-bottom: none; }
.map-wrap iframe { display: block; opacity: 0.92; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black); padding-top: 60px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 320px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { color: var(--stone-dim); font-size: 13.5px; margin: 0; line-height: 1.5; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(243,239,230,0.75); font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: rgba(243,239,230,0.75); font-size: 14px; font-weight: 600; }
.footer-social a:hover { color: var(--gold-bright); }
.footer-bottom { padding: 22px 0; }
.footer-bottom p { color: var(--stone-dim); font-size: 12.5px; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 16px 32px;
    border-bottom: 1px solid var(--line-dark);
  }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .intro-grid, .about-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-alt .service-grid { grid-template-columns: 1fr; }
  .service-alt .service-copy, .service-alt .service-photos { order: unset; }
  .intro-specialties { border-left: none; padding-left: 0; border-top: 1px solid var(--panel-line); padding-top: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .review { padding: 40px 28px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-portrait { max-width: 320px; }
  .gallery-grid { columns: 3 190px; }
  .ba-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 66px; }
  .brand-lockup-full { display: none; }
  .brand-lockup-icon { display: block; height: 36px; }
  .brand-tagline-img { display: none; }
  .main-nav { top: 66px; }
  .hero-content { padding-top: 150px; padding-bottom: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { padding: 20px; }
  .intro, .about, .process, .gallery, .reviews, .trust, .contact { padding-top: 64px; padding-bottom: 64px; }
  .contact-form { padding: 26px; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .reviews-carousel { gap: 10px; }
  .rc-arrow { width: 36px; height: 36px; font-size: 18px; }
  .review { padding: 32px 18px; min-height: 260px; }
  .review p { font-size: 17px; }
  .ba-row { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-inner { flex-direction: column; }
  .footer-brand img { height: 36px; }
}
