/* ============================================
   Grizzly Basin Builders — Site Stylesheet
   ============================================ */

:root {
  --charcoal: #1c1b19;
  --charcoal-soft: #262421;
  --amber: #c4622d;
  --amber-deep: #a34f22;
  --stone: #8b8378;
  --cream: #f2ede4;
  --forest: #2c3428;
  --white: #ffffff;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.01em;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 100;
  padding: 6px 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled {
  padding: 4px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--charcoal);
}

.brand img {
  height: 336px;
  width: auto;
  transition: height 0.35s ease;
}

.site-header.is-scrolled .brand img {
  height: 272px;
}

@media (max-width: 640px) {
  .brand img {
    height: 110px;
  }
  .site-header.is-scrolled .brand img {
    height: 90px;
  }
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--charcoal);
  line-height: 1;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-phones {
  display: flex;
  gap: 22px;
}

.header-contact a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-contact a:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.header-contact .email-link {
  font-size: 0.85rem;
  color: #4a463f;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  font-size: 0.85rem;
  color: #4a463f;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-image:
    linear-gradient(180deg, rgba(17, 16, 14, 0.35) 0%, rgba(17, 16, 14, 0.35) 40%, rgba(17, 16, 14, 0.92) 100%),
    url("../images/night_sky.jpg");
  background-size: cover;
  background-position: center 65%;
}

.hero-inner {
  padding: 80px 0 80px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-eyebrow {
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  max-width: 15ch;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--amber-deep);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Section basics ---------- */

section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 48px;
  max-width: 60ch;
}

.section-head .kicker {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ---------- Services ---------- */

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--stone);
  border: 1px solid var(--stone);
}

@media (min-width: 760px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--white);
  padding: 44px 40px;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--forest);
}

.service-card p {
  color: #4a463f;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 9px;
}

.service-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: #3b3833;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--amber);
}

/* ---------- Featured project ---------- */

.featured {
  background: var(--forest);
  color: var(--cream);
  padding: 0;
}

.featured-intro {
  padding: 96px 0 56px;
}

.featured-intro .kicker {
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 8px;
}

.featured-intro h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--white);
  max-width: 20ch;
}

.featured-intro p {
  color: rgba(242, 237, 228, 0.82);
  margin-top: 18px;
  font-size: 1.05rem;
}

.featured-focal {
  position: relative;
  min-height: 78vh;
  background-image:
    linear-gradient(0deg, rgba(28, 27, 25, 0.75) 0%, rgba(28, 27, 25, 0.05) 45%),
    url("../images/kitchen.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.featured-focal-caption {
  padding: 40px 28px 56px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.featured-focal-caption p {
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: var(--white);
  max-width: 24ch;
  margin: 0;
  line-height: 1.15;
}

.featured-strip {
  padding: 64px 0 96px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 760px) {
  .strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.strip-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
}

.strip-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.strip-grid a:hover img {
  transform: scale(1.04);
}

/* ---------- Remodel / before-after ---------- */

.remodel {
  background: var(--white);
}

.remodel-lede {
  max-width: 60ch;
  color: #4a463f;
  margin-top: 16px;
}

.ba-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}

@media (min-width: 760px) {
  .ba-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  --pos: 50%;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--charcoal);
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-slider .ba-after-img {
  z-index: 1;
}

.ba-slider .ba-before-img {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--white);
  z-index: 3;
  transform: translateX(-1px);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ba-handle::before,
.ba-handle::after {
  content: "";
  border: 5px solid transparent;
}

.ba-handle::before {
  border-right-color: var(--charcoal);
  margin-right: 2px;
}

.ba-handle::after {
  border-left-color: var(--charcoal);
  margin-left: 2px;
}

.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(28, 27, 25, 0.65);
  color: var(--white);
  pointer-events: none;
}

.ba-tag.before {
  left: 14px;
}

.ba-tag.after {
  right: 14px;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.ba-caption .kicker-small {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.ba-caption h3 {
  font-size: 1.7rem;
  color: var(--forest);
  margin-bottom: 12px;
}

.ba-caption p {
  color: #4a463f;
  font-size: 0.98rem;
}

.ba-hint {
  font-size: 0.82rem;
  color: var(--stone);
  margin-top: 10px;
}

/* ---------- Second kitchen remodel (gallery style, no forced pairing) ---------- */

.gallery-project {
  background: var(--cream);
}

.gallery-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 860px) {
  .gallery-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-col h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--stone);
}

.gallery-col.after h3 {
  color: var(--amber-deep);
  border-bottom-color: var(--amber-deep);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 760px) {
  .photo-grid.showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 40px;
  }
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

/* ---------- Smaller projects ---------- */

.smaller-projects {
  background: var(--forest);
  color: var(--cream);
}

.smaller-projects .section-head h2 {
  color: var(--white);
}

.smaller-projects .section-head p {
  color: rgba(242, 237, 228, 0.78);
}

.sp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 700px) {
  .sp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sp-card {
  background: rgba(242, 237, 228, 0.06);
  border: 1px solid rgba(242, 237, 228, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.sp-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
}

.sp-media.count-1 {
  grid-template-columns: 1fr;
}
.sp-media.count-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 520px) {
  .sp-media.count-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sp-media a,
.sp-media .sp-video-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sp-media img,
.sp-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-body {
  padding: 22px 24px 26px;
}

.sp-body h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 8px;
}

.sp-body p {
  color: rgba(242, 237, 228, 0.78);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- About ---------- */

.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.about-copy p {
  font-size: 1.05rem;
  color: #3b3833;
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--amber-deep);
  line-height: 1;
}

.stat-row .stat-label {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 4px;
  max-width: 16ch;
}

.about-photo {
  overflow: hidden;
  border-radius: 2px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--charcoal);
  color: var(--cream);
}

.contact .section-head h2 {
  color: var(--white);
}

.contact .section-head p {
  color: rgba(242, 237, 228, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: rgba(242, 237, 228, 0.14);
  border: 1px solid rgba(242, 237, 228, 0.14);
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--charcoal-soft);
  padding: 36px 32px;
}

.contact-card .label {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.contact-card a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--amber);
}

.contact-card .hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--stone);
}

/* ---------- Message form ---------- */

.message-form-wrap {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(242, 237, 228, 0.14);
  max-width: 640px;
}

.message-form-head h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}

.message-form-head p {
  color: rgba(242, 237, 228, 0.75);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.form-row .req {
  font-weight: 400;
  color: var(--stone);
  font-size: 0.78rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--charcoal-soft);
  border: 1px solid rgba(242, 237, 228, 0.2);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.message-form .btn {
  margin-top: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  padding: 48px 0 36px;
  border-top: 1px solid rgba(28, 27, 25, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner img {
  height: 46px;
  width: auto;
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--stone);
  text-align: right;
}

/* ---------- Utility ---------- */

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

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