/* ============================================
   LAMwood Creations - Main Stylesheet
   Modern Rustic Design
   ============================================ */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
  /* Colors */
  --color-charcoal: #1a1a1a;
  --color-charcoal-light: #2c2c2c;
  --color-warm-white: #faf8f5;
  --color-cream: #f5f0e8;
  --color-timber: #c4a77d;
  --color-timber-dark: #a68b5b;
  --color-timber-light: #d4bc94;
  --color-forest: #3d5a47;
  --color-forest-light: #4a6b54;
  --color-brown: #4a3728;
  --color-brown-light: #6b5344;
  --color-text: #2c2c2c;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Bebas Neue', Impact, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  
  /* Sizing */
  --max-width: 1400px;
  --max-width-narrow: 900px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.accent-text {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 3.2rem 0;
}

/* Home feature cards use a negative top margin to overlap the hero,
   so this section keeps its original breathing room. */
.hero + .section {
  padding: var(--space-3xl) 0;
}

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

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-warm-white);
}

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

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

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

@media (max-width: 640px) {
  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-base);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-warm-white);
  letter-spacing: 0.02em;
}

.logo__tagline {
  font-size: 0.7rem;
  color: var(--color-timber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.9rem;
  color: var(--color-warm-white);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-timber);
  transition: var(--transition-base);
}

.nav__link:hover {
  opacity: 1;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  opacity: 1;
  color: var(--color-timber);
}

.nav__cta {
  padding: 0.75rem 1.5rem;
  background: var(--color-timber);
  color: var(--color-charcoal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.nav__cta:hover {
  background: var(--color-timber-light);
  transform: translateY(-2px);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-warm-white);
  transition: var(--transition-base);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }
  
  .nav--open .nav__list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__cta {
    display: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-light) 50%, var(--color-brown) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23c4a77d" opacity="0.1"/></svg>');
  background-size: 30px 30px;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: var(--header-height);
}

.hero__label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(196, 167, 125, 0.2);
  border: 1px solid var(--color-timber);
  color: var(--color-timber);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-full);
}

.hero__title {
  color: var(--color-warm-white);
  margin-bottom: var(--space-lg);
}

.hero__title span {
  color: var(--color-timber);
}

.hero__description {
  color: rgba(250, 248, 245, 0.8);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  max-width: 550px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 80%;
  z-index: 1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 2px solid var(--color-timber);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}

@media (max-width: 1024px) {
  .hero__image {
    display: none;
  }
  
  .hero__content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero__description {
    max-width: 100%;
  }
  
  .hero__ctas {
    justify-content: center;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-timber);
  color: var(--color-charcoal);
}

.btn--primary:hover {
  background: var(--color-timber-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-warm-white);
  color: var(--color-warm-white);
}

.btn--secondary:hover {
  background: var(--color-warm-white);
  color: var(--color-charcoal);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-timber);
  color: var(--color-timber);
}

.btn--outline:hover {
  background: var(--color-timber);
  color: var(--color-charcoal);
}

.btn--dark {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
}

.btn--dark:hover {
  background: var(--color-charcoal-light);
  transform: translateY(-3px);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

/* ============================================
   Feature Cards
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: calc(-1 * var(--space-3xl));
  position: relative;
  z-index: 10;
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-card__icon {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2edd7;
  border-radius: var(--radius-full);
  color: var(--color-charcoal);
  font-size: 1.75rem;
}

.feature-card__icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.feature-card__title {
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.feature-card__link {
  color: var(--color-timber-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.feature-card__link:hover {
  color: var(--color-forest);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    margin-top: var(--space-xl);
  }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-timber);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.section--dark .section-header__text {
  color: rgba(250, 248, 245, 0.7);
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: 1/2;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
  }
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__content {
  padding: var(--space-lg);
}

.product-card__category {
  font-size: 0.75rem;
  color: var(--color-timber-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.product-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.product-card__price {
  font-size: 1.1rem;
  color: var(--color-forest);
  font-weight: 600;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-content__label {
  font-family: var(--font-accent);
  color: var(--color-timber);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
}

.about-content__title {
  margin-bottom: var(--space-lg);
}

.about-content__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.about-content__list {
  margin-bottom: var(--space-xl);
}

.about-content__list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.about-content__list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-timber);
  color: var(--color-charcoal);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about-images__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-images__item:first-child {
  grid-row: span 2;
}

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

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-images {
    order: -1;
  }
}

/* ============================================
   Services Section
   ============================================ */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.service-card:nth-child(even) {
  direction: rtl;
}

.service-card:nth-child(even) > * {
  direction: ltr;
}

.service-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__content {
  padding: var(--space-lg);
}

.service-card__number {
  font-family: var(--font-accent);
  font-size: 4rem;
  color: var(--color-timber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.service-card__title {
  margin-bottom: var(--space-md);
}

.service-card__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .service-card {
    grid-template-columns: 1fr;
  }
  
  .service-card:nth-child(even) {
    direction: ltr;
  }
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-timber);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-charcoal) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(196,167,125,0.15) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content__title {
  color: var(--color-warm-white);
  margin-bottom: var(--space-md);
}

.cta-content__text {
  color: rgba(250, 248, 245, 0.8);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
}

.cta-content .btn {
  margin: 0 var(--space-sm);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info__title {
  margin-bottom: var(--space-lg);
}

.contact-info__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info__icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2edd7;
  color: var(--color-charcoal);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-info__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Value Card Icons (About page) */
.value-icon {
  width: 130px;
  height: 130px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2edd7;
  border-radius: var(--radius-full);
}

.value-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.contact-info__value {
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-info__value a:hover {
  color: var(--color-timber-dark);
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-timber);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.footer-brand__tagline {
  color: var(--color-timber);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.footer-brand__text {
  color: rgba(250, 248, 245, 0.6);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  max-width: 350px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-timber);
  color: var(--color-charcoal);
}

.footer-nav__title {
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: var(--color-timber);
}

.footer-nav ul li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  color: rgba(250, 248, 245, 0.7);
  font-size: 0.95rem;
}

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

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom__text {
  color: rgba(250, 248, 245, 0.5);
  font-size: 0.85rem;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand__text {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-brown) 100%);
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23c4a77d" opacity="0.1"/></svg>');
  background-size: 30px 30px;
}

.page-header__title {
  color: var(--color-warm-white);
  margin-bottom: var(--space-md);
  position: relative;
}

.page-header__breadcrumb {
  color: rgba(250, 248, 245, 0.6);
  font-size: 0.9rem;
  position: relative;
}

.page-header__breadcrumb a {
  color: var(--color-timber);
}

.page-header__breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
}

.faq-item__question:hover {
  background: var(--color-cream);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  display: none;
}

.faq-item.active .faq-item__answer {
  display: block;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

@media (max-width: 640px) {
  .hide-mobile { display: none; }
}

/* ============================================
   Animations — Reveal, Scale-settle, Page fade
   ============================================ */

/* Page fade-in
   Body starts invisible; JS adds .is-loaded after DOMContentLoaded.
   <noscript> override keeps content visible if JS is disabled. */
body {
  opacity: 0;
  transition: opacity 800ms ease;
}

body.is-loaded {
  opacity: 1;
}

/* Reveal: elements start slightly down + faded, ease into place when
   an IntersectionObserver adds .is-visible.
   Slow easing curve matches the kereliott reference. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Stagger CSS-only fallback; JS sets inline delay per index */
.reveal--stagger-1 { transition-delay: 80ms; }
.reveal--stagger-2 { transition-delay: 160ms; }
.reveal--stagger-3 { transition-delay: 240ms; }
.reveal--stagger-4 { transition-delay: 320ms; }
.reveal--stagger-5 { transition-delay: 400ms; }
.reveal--stagger-6 { transition-delay: 480ms; }
.reveal--stagger-7 { transition-delay: 560ms; }

/* Image scale-settle: starts slightly zoomed, eases to natural size
   when scrolled into view. Reserved for hero-style images that don't
   already have their own hover-scale (gallery/product cards do). */
.scale-in img,
img.scale-in {
  transform: scale(1.04);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.scale-in.is-visible img,
img.scale-in.is-visible {
  transform: scale(1);
}

/* Hero gets a touch more weight in its entrance */
.hero .reveal {
  transition-duration: 1300ms;
}

/* Animated underline for in-page links — extends the nav pattern.
   Gated behind hover-capable pointers so touch devices don't fight it. */
@media (hover: hover) {
  .feature-card__link,
  .footer-nav a,
  .page-header__breadcrumb a,
  .contact-info__value a {
    position: relative;
    display: inline-block;
  }

  .feature-card__link::after,
  .footer-nav a::after,
  .page-header__breadcrumb a::after,
  .contact-info__value a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .feature-card__link:hover::after,
  .footer-nav a:hover::after,
  .page-header__breadcrumb a:hover::after,
  .contact-info__value a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  /* Feature-card link: subtle letter-spacing nudge */
  .feature-card__link {
    transition: color 250ms ease, letter-spacing 350ms ease;
  }
  .feature-card__link:hover {
    letter-spacing: 0.08em;
  }
}

/* Stats counter — keep number width stable while counting */
.stat__number {
  font-variant-numeric: tabular-nums;
}

/* Respect prefers-reduced-motion — everything appears at rest. */
@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1 !important;
    transition: none !important;
  }
  .reveal,
  .reveal.is-visible,
  .scale-in img,
  .scale-in.is-visible img,
  img.scale-in,
  img.scale-in.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Legacy keyframes preserved for back-compat (no longer used) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ============================================
   Home splash intro + page zoom-into-focus reveal
   (home page only — markup gated by #splash / #pageShell)
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
  opacity: 1;
  transition: opacity 1800ms ease, visibility 0s linear 1800ms;
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.splash__line {
  font-family: var(--font-display);
  color: var(--color-warm-white);
  font-size: clamp(1.75rem, 4.6vw, 3.25rem);
  line-height: 1.35;
  max-width: 18ch;
  margin: 0;
}
.splash__part {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 2200ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.splash__part--2 {
  color: var(--color-timber);
  font-style: italic;
  margin-top: 0.4em;
}
.splash.show-1 .splash__part--1 { opacity: 1; transform: translateY(0); }
.splash.show-2 .splash__part--2 { opacity: 1; transform: translateY(0); }

/* Page pulls into focus as the splash clears: starts slightly zoomed +
   blurred + faded, settles to crisp 1.0. */
.page-shell {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(7px);
  transition: opacity 2600ms ease,
              transform 3000ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 2600ms ease;
  will-change: opacity, transform, filter;
}
.page-shell.is-revealed {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
/* Once the zoom settles, drop the transform entirely so the position:fixed
   header is not trapped in a transformed containing block. JS adds this. */
.page-shell.intro-settled {
  transform: none;
  filter: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .splash { display: none !important; }
  .page-shell {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================
   Sold badge + slab inventory  (2026-06-03 content pass)
   Additive components — reuse existing .product-card system.
   ============================================ */
.product-card__image {
  position: relative;
}
.product-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-warm-white);
  background: rgba(26, 26, 26, 0.88);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}
/* Muted, italic slab code suffix — referenceable but quiet */
.product-card__code {
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-light);
  opacity: 0.85;
}
/* Slab photos are portrait and carry their own chalked dimensions —
   give them a taller frame so the markings stay in view. */
.product-card--slab .product-card__image {
  aspect-ratio: 3 / 4;
}
/* Quiet "Enquire" link on slab cards, matched to the feature-card link feel */
.product-card__cta {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-timber-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}
.product-card__cta:hover {
  color: var(--color-forest);
}

/* ============================================
   Lightbox (item splash) — full image + name/price
   ============================================ */
.product-card__image { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(26, 26, 26, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease;
}
.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.97);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-charcoal-light);
}
.lightbox__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
.lightbox__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-warm-white);
}
.lightbox__price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-timber);
  white-space: nowrap;
}
.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(250, 248, 245, 0.12);
  color: var(--color-warm-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.lightbox__close:hover { background: rgba(250, 248, 245, 0.26); }
@media (max-width: 640px) {
  .lightbox__caption { flex-direction: column; gap: var(--space-xs); }
  .lightbox__name { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__figure { transition: opacity 1ms linear, visibility 0s; transform: none; }
}
