/* ============================================
   Armstrong Custom Cabinets — Master Stylesheet
   ============================================ */

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

:root {
  --charcoal: #1a1a1a;
  --charcoal-light: #2a2a2a;
  --wood: #8B5E3C;
  --wood-light: #a4764e;
  --wood-dark: #6d4a2f;
  --cream: #F5F0E8;
  --cream-dark: #e8e0d4;
  --gold: #C9A84C;
  --gold-light: #d4b96a;
  --white: #ffffff;
  --text-body: #d4d0c8;
  --text-muted: #9a9590;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --card-bg: #2a2a2a;
  --card-border: rgba(139, 94, 60, 0.15);
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

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

/* Offset anchor targets by the sticky header height */
[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-body);
  background-color: var(--charcoal);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--gold-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--cream);
  line-height: 1.2;
  font-weight: 700;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

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

/* --- Wood Grain Texture --- */
.wood-texture {
  position: relative;
}

.wood-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(139, 94, 60, 0.3) 2px,
    rgba(139, 94, 60, 0.3) 3px,
    transparent 3px,
    transparent 8px
  ),
  repeating-linear-gradient(
    87deg,
    transparent,
    transparent 12px,
    rgba(139, 94, 60, 0.15) 12px,
    rgba(139, 94, 60, 0.15) 13px,
    transparent 13px,
    transparent 28px
  ),
  repeating-linear-gradient(
    92deg,
    transparent,
    transparent 20px,
    rgba(201, 168, 76, 0.1) 20px,
    rgba(201, 168, 76, 0.1) 21px,
    transparent 21px,
    transparent 45px
  );
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 94, 60, 0.2);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.5px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--charcoal) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 999;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--cream);
  font-size: 1.25rem;
  font-family: var(--font-heading);
  padding: 12px 32px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 12, 8, 0.92) 0%,
    rgba(26, 26, 26, 0.80) 50%,
    rgba(139, 94, 60, 0.25) 100%
  );
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 94, 60, 0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 2px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Guitar accent line (decorative) */
.hero-accent {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.04;
  z-index: 1;
}

.hero-accent svg {
  width: 100%;
  height: 100%;
}

/* Page Heroes (shorter) */
.page-hero {
  min-height: 40vh;
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--wood);
  color: var(--cream);
}

.btn-secondary:hover {
  background: var(--wood-light);
  color: var(--cream);
  transform: translateY(-2px);
}

/* --- Sections --- */
section {
  padding: 100px 0;
}

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

.section-darker {
  background: var(--charcoal-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--charcoal-light);
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wood), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 94, 60, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 94, 60, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card .learn-more::after {
  content: '\2192';
  transition: transform var(--transition);
}

.service-card:hover .learn-more::after {
  transform: translateX(4px);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 60px 0;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* --- About / Story --- */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-image {
  background: var(--charcoal-light);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 94, 60, 0.2);
  position: relative;
  overflow: hidden;
}

.story-image .placeholder-text {
  font-family: var(--font-heading);
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.5;
}

.story-content h2 {
  margin-bottom: 20px;
}

.story-content p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.story-content .highlight {
  color: var(--gold);
  font-weight: 600;
}

/* --- Timeline (About page) --- */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--wood), var(--gold), var(--wood));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 64px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--charcoal);
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 40px);
  background: var(--charcoal-light);
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 8px;
  padding: 32px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Gallery Grid --- */
.gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(139, 94, 60, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  background: var(--charcoal-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(139, 94, 60, 0.12);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(201, 168, 76, 0.3);
}

.gallery-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--charcoal-light), rgba(139, 94, 60, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: rgba(139, 94, 60, 0.2);
}

.gallery-caption {
  padding: 20px;
}

.gallery-caption h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--cream);
}

.gallery-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 600;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: rgba(139, 94, 60, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-detail p {
  color: var(--cream);
  font-size: 1rem;
}

.contact-form {
  background: var(--charcoal-light);
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 8px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid rgba(139, 94, 60, 0.2);
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--charcoal);
  color: var(--cream);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success h3 {
  color: var(--gold);
  margin-bottom: 12px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

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

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--charcoal-light);
  border: 2px solid rgba(139, 94, 60, 0.2);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--wood);
}

.team-member h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Testimonial / Quote --- */
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--cream);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 24px;
}

.quote-block cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 94, 60, 0.12), rgba(201, 168, 76, 0.08));
  border-top: 1px solid rgba(139, 94, 60, 0.2);
  border-bottom: 1px solid rgba(139, 94, 60, 0.2);
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background: #111111;
  border-top: 1px solid rgba(139, 94, 60, 0.15);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cream);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 94, 60, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.footer-bottom {
  border-top: 1px solid rgba(139, 94, 60, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Values Grid (About page) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

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

/* --- Services Detail (services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(139, 94, 60, 0.1);
}

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

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

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-image {
  background: var(--charcoal-light);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 94, 60, 0.15);
  font-size: 3rem;
}

.service-detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-detail-content p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.service-detail-content ul {
  list-style: none;
  margin: 20px 0;
}

.service-detail-content ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-body);
  font-size: 0.95rem;
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 52px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail,
  .service-detail:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .hero-accent {
    display: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}

/* ============================================
   Image Placeholders
   ============================================ */

/* Story/about image placeholders */
.story-image {
  position: relative;
  overflow: hidden;
}

.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(139, 94, 60, 0.12) 0%, rgba(26, 26, 26, 0) 60%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(139, 94, 60, 0.04) 3px,
      rgba(139, 94, 60, 0.04) 4px
    );
  pointer-events: none;
}

.story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.story-image .placeholder-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.6;
  text-align: center;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(139, 94, 60, 0.15);
  background: var(--charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(139, 94, 60, 0.25);
}

/* Gallery placeholder backgrounds — each category a distinct warm tone */
.gallery-item[data-category="kitchen"] .gallery-image {
  background: linear-gradient(135deg, #2a2218 0%, #3a2e1e 50%, #2e2418 100%);
}
.gallery-item[data-category="restoration"] .gallery-image {
  background: linear-gradient(135deg, #1e2228 0%, #222832 50%, #1a2025 100%);
}
.gallery-item[data-category="commercial"] .gallery-image {
  background: linear-gradient(135deg, #242020 0%, #2e2828 50%, #201e1e 100%);
}
.gallery-item[data-category="catio"] .gallery-image {
  background: linear-gradient(135deg, #1e2818 0%, #283020 50%, #1e2a18 100%);
}
.gallery-item[data-category="millwork"] .gallery-image {
  background: linear-gradient(135deg, #261e14 0%, #302618 50%, #241c12 100%);
}

.gallery-image {
  position: relative;
  overflow: hidden;
}

/* Subtle grain over all gallery placeholders */
.gallery-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      88deg,
      transparent,
      transparent 4px,
      rgba(255,255,255,0.015) 4px,
      rgba(255,255,255,0.015) 5px
    );
  pointer-events: none;
}

.gallery-image .placeholder-icon {
  position: relative;
  z-index: 1;
  color: rgba(201, 168, 76, 0.2);
}

.gallery-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Service detail image placeholders */
.service-detail-image {
  font-size: 0 !important; /* hide the emoji character */
  background: linear-gradient(135deg, #2a2218, #3a2e1e) !important;
  position: relative;
  overflow: hidden;
}

.service-detail-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(139, 94, 60, 0.05) 3px,
      rgba(139, 94, 60, 0.05) 4px
    );
}

.service-detail-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 2px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.05);
}

/* ============================================
   Gallery Lightbox
   ============================================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding: 24px 80px;
  overflow-y: auto;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: auto;
  animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(139, 94, 60, 0.2);
}

.lightbox-caption {
  padding: 20px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-caption h4 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lightbox-caption .gallery-tag {
  margin-top: 0;
  flex-shrink: 0;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2001;
  background: rgba(26, 26, 26, 0.85);
  border: 1px solid rgba(139, 94, 60, 0.25);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
}

.lightbox-nav {
  position: fixed;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2001;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(139, 94, 60, 0.2);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.lightbox-nav:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 1080px) {
  .lightbox-overlay { padding: 24px 16px; }
}

@media (max-width: 640px) {
  .lightbox-nav { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: 16px; right: auto; }
  .lightbox-next { right: 16px; left: auto; }
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--card-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease, color var(--transition);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
  font-style: italic;
  margin: 0;
  flex: 1;
  position: relative;
  padding-left: 20px;
}

.testimonial-card blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.6;
}

.testimonial-card cite {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.testimonial-card cite strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
}

.testimonial-card cite span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   Scroll-to-Top Button
   ============================================ */

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--wood);
  border: none;
  border-radius: 4px;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .scroll-top { bottom: 20px; right: 20px; }
}

/* ============================================
   Hero Divider Line (decorative gold rule)
   ============================================ */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wood) 20%, var(--gold) 50%, var(--wood) 80%, transparent);
  opacity: 0.3;
  margin: 0;
  border: none;
}
