/* Harvest Kitchen & Bath — Global Styles */

/* ====== CSS Custom Properties / Design Tokens ====== */
:root {
  --bg-primary: #F6EFE6;
  --bg-warm-white: #FBF8F3;
  --brand: #303827;
  --brand-dark: #262820;
  --accent-gold: #B59A6A;
  --border-light: #D9CCBC;
  --body-text: #4F4A42;
  --text-secondary: #6B655C;

  --font-serif: 'Marcellus', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --section-pad-y: clamp(4.5rem, 9vw, 8rem);
  --grid-gap: 1.5rem;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.35s var(--ease-out);
}

/* ====== Reset & Base ====== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ====== Typography ====== */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--brand-dark);
}

.headline-xl {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

.headline-lg {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.headline-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.body-text {
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-dark {
  background-color: var(--brand-dark);
  color: var(--bg-warm-white);
}

.section-dark .eyebrow,
.section-dark .headline {
  color: var(--bg-warm-white);
}

.section-dark .filter-btn {
  color: rgba(251, 248, 243, 0.85);
  border-color: rgba(251, 248, 243, 0.35);
}

.section-dark .filter-btn:hover,
.section-dark .filter-btn.active {
  color: var(--brand-dark);
  background-color: var(--bg-warm-white);
  border-color: var(--bg-warm-white);
}

.site-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 640px) {
  .site-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-warm-white);
  background-color: var(--brand);
  border: 1px solid var(--brand);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  background-color: transparent;
  color: var(--brand);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background-color: transparent;
  border: 1px solid var(--border-light);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-outline:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--bg-warm-white);
}

.btn-light {
  color: var(--brand);
  background-color: var(--bg-warm-white);
  border-color: var(--bg-warm-white);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--bg-warm-white);
}

.btn-gold {
  color: var(--brand-dark);
  background-color: #E3D0A8;
  border-color: #E3D0A8;
}

.btn-gold:hover {
  background-color: transparent;
  color: var(--brand-dark);
}

/* ====== Header ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.utility-bar {
  background-color: var(--brand);
  color: var(--bg-warm-white);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 1rem;
}

.utility-bar a,
.utility-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(251, 248, 243, 0.85);
  transition: color var(--transition);
}

.utility-bar a:hover {
  color: var(--bg-warm-white);
}

.utility-bar-left {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.utility-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.utility-icon {
  width: 12px;
  height: 12px;
  color: var(--accent-gold);
}

.utility-socials {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.utility-socials a {
  color: rgba(251, 248, 243, 0.85);
  transition: color var(--transition);
}

.utility-socials a:hover {
  color: var(--accent-gold);
}

.social-icon {
  width: 14px;
  height: 14px;
}

@media (min-width: 768px) {
  .utility-bar-left {
    display: flex;
  }
}

@media (max-width: 767px) {
  .utility-bar-inner {
    height: auto;
    min-height: 36px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .utility-bar-right {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }
}

@media (min-width: 1024px) {
  .utility-socials {
    display: flex;
  }
}

.main-nav-bar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled .main-nav-bar {
  box-shadow: 0 2px 20px rgba(38, 40, 32, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--brand-dark);
  transition: color var(--transition);
}

.logo-mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.logo-text span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.nav-list {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-dark);
  transition: color var(--transition);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background-color: var(--bg-warm-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding-top: 8rem;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  color: var(--brand-dark);
}

@media (min-width: 1024px) {
  .nav-list {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }
}

/* ====== Skip Link ====== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background-color: var(--brand);
  color: var(--bg-warm-white);
  z-index: 1001;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 620px;
  height: 70vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 8rem;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 900px;
    max-height: 1020px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 14.75rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 40, 32, 0.88) 0%, rgba(38, 40, 32, 0.65) 50%, rgba(38, 40, 32, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 4rem;
  color: var(--bg-warm-white);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero-tagline strong {
  display: block;
  font-weight: 400;
}

.hero-text {
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(251, 248, 243, 0.9);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.75);
}

.hero-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-meta a:hover {
  color: var(--accent-gold);
}

.hero-meta a::after {
  content: '·';
  margin-left: 0.75rem;
  opacity: 0.6;
}

.hero-meta a:last-child::after {
  content: none;
}

/* ====== Feature Strip ====== */
.feature-strip {
  background-color: var(--bg-warm-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 639px) {
  .feature-strip {
    display: none;
  }
}

.feature-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

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

.feature-item {
  padding: 1rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.feature-item:nth-child(2n) {
  border-right: none;
}

.feature-item:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .feature-item {
    padding: 2.5rem 2rem;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
  }

  .feature-item:nth-child(2n) {
    border-right: 1px solid var(--border-light);
  }

  .feature-item:last-child {
    border-right: none;
  }
}

.feature-item-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.feature-item-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.feature-item-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ====== Section Header ====== */
.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header .headline {
  margin-bottom: 1rem;
}

/* ====== Service / Material Cards ====== */
.service-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 2rem;
  overflow: hidden;
  color: var(--bg-warm-white);
  background-color: var(--text-secondary);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 40, 32, 0.75) 0%, rgba(38, 40, 32, 0.2) 60%, rgba(38, 40, 32, 0) 100%);
  transition: background-color 0.4s var(--ease-out);
}

.service-card:hover .service-card-overlay {
  background-color: rgba(38, 40, 32, 0.2);
}

.service-card-content {
  position: relative;
  z-index: 2;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: rgba(251, 248, 243, 0.85);
}

/* ====== Services Grid (Catalog) ====== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

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

.service-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  padding: 2rem;
  overflow: hidden;
  color: var(--bg-warm-white);
  background-color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .service-block:nth-child(2n) {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .service-block {
    border-bottom: none;
  }

  .service-block:nth-child(3n) {
    border-right: none;
  }
}

.service-block-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.service-block:hover .service-block-bg {
  transform: scale(1.05);
}

.service-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 40, 32, 0.78) 0%, rgba(38, 40, 32, 0.25) 60%, rgba(38, 40, 32, 0) 100%);
  transition: background-color 0.4s var(--ease-out);
}

.service-block:hover .service-block-overlay {
  background-color: rgba(38, 40, 32, 0.3);
}

.service-block-content {
  position: relative;
  z-index: 2;
}

.service-block-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.service-block-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.service-block-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(251, 248, 243, 0.85);
  margin-bottom: 1.25rem;
}

.service-block-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-warm-white);
  border-bottom: 1px solid var(--bg-warm-white);
  padding-bottom: 0.25rem;
  transition: color var(--transition), border-color var(--transition);
}

.service-block:hover .service-block-cta {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ====== Split Sections ====== */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}

.split-media {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem);
  background-color: var(--bg-warm-white);
}

.split-content .headline {
  margin-bottom: 1.25rem;
}

.split-content .body-text {
  margin-bottom: 2rem;
}

/* ====== Process Steps ====== */
.steps-list {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

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

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

.step {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.step-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== Why Cards ====== */
.why-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.why-card {
  display: block;
  padding: 2rem;
  background-color: var(--bg-warm-white);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card.image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  color: var(--bg-warm-white);
  border: none;
}

.why-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.why-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 40, 32, 0.9) 0%, rgba(38, 40, 32, 0.35) 100%);
}

.why-card.image:hover .why-card-bg {
  transform: scale(1.05);
}

.why-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  text-align: center;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(38, 40, 32, 0.05);
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.why-card.image h3 {
  color: var(--bg-warm-white);
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.why-card.image p {
  color: rgba(251, 248, 243, 0.9);
}

/* ====== Materials ====== */
.materials-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.material-card {
  position: relative;
  min-height: 320px;
  padding: 2rem;
  overflow: hidden;
  color: var(--bg-warm-white);
  background-color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.material-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.material-card:hover .material-card-bg {
  transform: scale(1.05);
}

.material-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 40, 32, 0.45);
  transition: background-color 0.4s var(--ease-out);
}

.material-card:hover .material-card-overlay {
  background-color: rgba(38, 40, 32, 0.55);
}

.material-card-content {
  position: relative;
  z-index: 2;
}

.material-card-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.material-card-desc {
  font-size: 0.9rem;
  color: rgba(251, 248, 243, 0.85);
}

/* ====== Portfolio ====== */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 639px) {
  .portfolio-filter {
    display: none;
  }
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  background-color: transparent;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--bg-warm-white);
  background-color: var(--brand);
  border-color: var(--brand);
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .portfolio-grid {
    gap: 1.25rem;
  }
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(38, 40, 32, 0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.portfolio-item.hidden {
  display: none;
}

/* ====== Testimonials ====== */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

.testimonial-card {
  padding: 2rem;
  background-color: var(--bg-warm-white);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ====== CTA Section (Horizontal Banner) ====== */
.cta-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background-color: #f6efe6;
  border-top: 1px solid var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold);
  overflow: hidden;
}

.cta-section.image-bg {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-color: transparent;
  border-top: none;
  border-bottom: none;
  color: var(--bg-warm-white);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(38, 40, 32, 0.55);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section .headline {
  margin-bottom: 1rem;
}

.cta-section .body-text {
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-banner {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cta-banner {
    grid-template-columns: auto 1fr auto;
  }
}

.cta-banner-graphic {
  justify-self: center;
  width: 80px;
  height: 80px;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cta-banner-graphic {
    width: 104px;
    height: 104px;
  }
}

.cta-banner-text {
  text-align: center;
}

.cta-banner-text .headline {
  margin-bottom: 0.5rem;
}

.cta-banner-text .body-text {
  max-width: 48ch;
  margin: 0 auto;
}

.cta-banner-action {
  text-align: center;
}

.cta-botanical {
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: 120px;
  height: 120px;
  color: var(--accent-gold);
  opacity: 0.2;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .cta-botanical {
    width: 180px;
    height: 180px;
  }
}

/* ====== Footer ====== */
.site-footer {
  padding: 4rem 0 0;
  background-color: var(--brand);
  color: var(--bg-warm-white);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (max-width: 639px) {
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) {
    display: none;
  }
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--bg-warm-white);
}

.footer-logo-mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.footer-logo-text span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(251, 248, 243, 0.75);
  max-width: 30ch;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.footer-links a,
.footer-links span {
  display: block;
  font-size: 0.9rem;
  color: rgba(251, 248, 243, 0.75);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--bg-warm-white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  background-color: var(--brand-dark);
  font-size: 0.8rem;
  color: rgba(251, 248, 243, 0.55);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-bottom a {
  color: rgba(251, 248, 243, 0.55);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--bg-warm-white);
}

/* ====== Reveal Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ====== Page Hero (Inner Pages) ====== */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  min-height: 420px;
  max-height: 540px;
  display: flex;
  align-items: center;
  background-color: var(--bg-warm-white);
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 40, 32, 0.88) 0%, rgba(38, 40, 32, 0.65) 50%, rgba(38, 40, 32, 0.25) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--bg-warm-white);
}

.page-hero .headline {
  color: var(--bg-warm-white);
  margin-bottom: 1rem;
}

.page-hero .body-text {
  color: rgba(251, 248, 243, 0.9);
}

/* ====== Forms ====== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--brand-dark);
  background-color: var(--bg-warm-white);
  border: 1px solid var(--border-light);
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(181, 154, 106, 0.12);
}

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

.form-error {
  font-size: 0.85rem;
  color: #b85c45;
  margin-top: 0.35rem;
}

.form-success {
  padding: 1rem;
  background-color: rgba(181, 154, 106, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--brand-dark);
  margin-top: 1rem;
}

.form-submit-error {
  padding: 1rem;
  background-color: rgba(184, 92, 69, 0.1);
  border: 1px solid #b85c45;
  color: #b85c45;
  margin-top: 1rem;
}

/* ====== Utility Classes ====== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
}

.bg-warm-white {
  background-color: var(--bg-warm-white);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ====== Featured Project ====== */
.featured-project {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-warm-white);
}

@media (min-width: 1024px) {
  .featured-project {
    grid-template-columns: 1.25fr 1fr;
  }
}

.featured-media {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.featured-content {
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-list {
  margin: 1.5rem 0 2rem;
}

.featured-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.featured-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
}

/* ====== Split Links (Kitchen / Bath) ====== */
.split-links {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .split-links {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}

.split-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 3rem;
  text-align: center;
  color: var(--bg-warm-white);
  overflow: hidden;
}

.split-link-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.split-link:hover .split-link-bg {
  transform: scale(1.05);
}

.split-link-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(38, 40, 32, 0.45);
  transition: background-color 0.4s var(--ease-out);
}

.split-link:hover .split-link-overlay {
  background-color: rgba(38, 40, 32, 0.55);
}

.split-link-content {
  position: relative;
  z-index: 2;
}

.split-link .headline {
  color: var(--bg-warm-white);
  margin-bottom: 0.75rem;
}

.split-link p {
  max-width: 34ch;
  margin: 0 auto 1.5rem;
  color: rgba(251, 248, 243, 0.85);
}

.split-link-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-warm-white);
  border-bottom: 1px solid var(--bg-warm-white);
  padding-bottom: 0.25rem;
  transition: color var(--transition), border-color var(--transition);
}

.split-link:hover .split-link-cta {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ====== Inner Page Content ====== */
.inner-section {
  padding: var(--section-pad-y) 0;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

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

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

.feature-item {
  padding: 2rem;
  background-color: var(--bg-warm-white);
  border: 1px solid var(--border-light);
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-grid.compact {
  gap: 1.5rem;
}

.feature-grid.compact .feature-item {
  padding: 1.25rem 1.5rem;
}

/* ====== Gallery Page ====== */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item.tall {
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ====== About Page ====== */
.about-story {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-story {
    grid-template-columns: 1fr 1fr;
  }
}

.about-story-media {
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.about-story-content .headline {
  margin-bottom: 1.25rem;
}

.about-story-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

@media (max-width: 639px) {
  .about-story-content .btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
  }
}

.puzzle-frame {
  position: relative;
  display: inline-block;
  width: 100%;
}

.puzzle-frame svg {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: calc(100% + 3rem);
  height: calc(100% + 3rem);
  color: var(--accent-gold);
  opacity: 0.6;
  pointer-events: none;
}

.puzzle-frame-image {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-light);
}

/* ====== Contact Page ====== */
.contact-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Homepage contact module map / form split */
.contact-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.contact-map-side {
  min-height: 300px;
  flex: 1;
  min-width: 0;
}

.contact-map-side iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}

.contact-form-wrapper {
  min-width: 0;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.contact-info-block p {
  color: var(--text-secondary);
}

.about-contact-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about-contact-block p {
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.about-contact-block a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-contact-block a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

