/* ========================================
   Specialist N Flooring — Bespoke CSS
   "The Foundation of Beautiful Homes"
   ======================================== */

/* --- CSS Variables --- */
:root {
  --warm-white: #FAF8F5;
  --oak: #C4A77D;
  --sage: #7D8F6E;
  --charcoal: #3A3A3A;
  --clay: #D4B8A0;
  --cream: #F0EAE0;
  --oak-light: #d4be9a;
  --sage-dark: #5f7050;
  --shadow: rgba(58, 58, 58, 0.08);
  --shadow-md: rgba(58, 58, 58, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-dark); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Marcellus', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--oak);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* --- Wood Grain Texture (CSS Pattern) --- */
.wood-texture {
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(196, 167, 125, 0.06) 40px,
      rgba(196, 167, 125, 0.06) 42px
    ),
    repeating-linear-gradient(
      85deg,
      transparent,
      transparent 80px,
      rgba(196, 167, 125, 0.04) 80px,
      rgba(196, 167, 125, 0.04) 81px
    );
}

/* --- SVG Wave Divider --- */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}
.wave-divider.flip { transform: scaleY(-1); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 167, 125, 0.2);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Marcellus', serif;
  font-size: 1.35rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Marcellus', serif;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--oak);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--sage) !important;
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--sage-dark) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(196,167,125,0.2);
  }
  .nav-links.open { transform: translateY(0); }
  .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); }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0.7) 0%,
    rgba(240, 234, 224, 0.75) 40%,
    rgba(212, 184, 160, 0.6) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}
/* Hero entrance animation */
.hero-content {
  animation: heroFadeIn 1.2s ease-out both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(125, 143, 110, 0.12);
  color: var(--sage);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 20px;
  color: var(--charcoal);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(58, 58, 58, 0.75);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--sage);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--sage-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(125, 143, 110, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--oak);
}
.btn-secondary:hover {
  background: var(--oak);
  color: white;
  transform: translateY(-2px);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--charcoal);
  padding: 24px 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  color: var(--cream);
}
.stat-number {
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
  color: var(--oak-light);
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(240, 234, 224, 0.2);
}
@media (max-width: 600px) {
  .stats-inner { gap: 24px; }
  .stat-divider { display: none; }
}

/* --- Gallery --- */
.gallery-section { background: var(--warm-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(58,58,58,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  color: white;
  font-family: 'Marcellus', serif;
  font-size: 1.1rem;
}
.gallery-sublabel {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-top: 2px;
}
.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; }
}

/* --- Flooring Types --- */
.flooring-section { background: var(--cream); }
.flooring-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.flooring-card { flex: 0 1 calc(33.333% - 16px); min-width: 220px; }
@media (max-width: 900px) {
  .flooring-card { flex: 0 1 calc(50% - 12px); }
}
@media (max-width: 540px) {
  .flooring-card { flex: 0 1 100%; }
}
.flooring-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(196, 167, 125, 0.15);
}

.flooring-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-md);
}
.flooring-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(125, 143, 110, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.flooring-card h3 { margin-bottom: 10px; }
.flooring-card p {
  font-size: 0.92rem;
  color: rgba(58,58,58,0.7);
  margin-bottom: 16px;
}
.flooring-price {
  font-family: 'Marcellus', serif;
  color: var(--sage);
  font-size: 1.1rem;
}

/* --- Meet Saul --- */
.meet-section { background: var(--warm-white); }
.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.meet-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.meet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meet-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--oak);
  border-radius: var(--radius);
  z-index: -1;
}
.meet-content h2 { margin-bottom: 20px; }
.meet-content p {
  margin-bottom: 16px;
  color: rgba(58,58,58,0.8);
}
.meet-signature {
  font-family: 'Marcellus', serif;
  font-size: 1.3rem;
  color: var(--oak);
  margin-top: 24px;
}
@media (max-width: 768px) {
  .meet-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .meet-image { max-width: 400px; margin: 0 auto; }
}

/* --- Process / How It Works --- */
.process-section { background: var(--cream); }
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--oak), var(--sage));
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 3px solid var(--oak);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  color: var(--oak);
  transition: all var(--transition);
}
.process-step:hover .step-number {
  background: var(--oak);
  color: white;
}
.process-step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.process-step p {
  font-size: 0.9rem;
  color: rgba(58,58,58,0.7);
  max-width: 200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .process-timeline::before { display: none; }
}
@media (max-width: 480px) {
  .process-timeline { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonials-section {
  background-color: #4a3f35;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(196, 167, 125, 0.05) 60px,
      rgba(196, 167, 125, 0.05) 62px
    ),
    repeating-linear-gradient(
      87deg,
      transparent,
      transparent 100px,
      rgba(196, 167, 125, 0.03) 100px,
      rgba(196, 167, 125, 0.03) 101px
    );
  padding: 80px 0;
}
.testimonials-section h2,
.testimonials-section .section-subtitle { color: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: rgba(250, 248, 245, 0.08);
  border: 1px solid rgba(196, 167, 125, 0.2);
  border-radius: var(--radius);
  padding: 36px 28px;
  backdrop-filter: blur(4px);
}
.testimonial-stars {
  color: var(--oak-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.testimonial-text {
  color: rgba(240, 234, 224, 0.9);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-author {
  color: var(--oak-light);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Visualize Section --- */
.visualize-section { background: var(--warm-white); }
.visualize-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.visualize-image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.visualize-image img {
  width: 100%;
  height: auto;
}
.visualize-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(58,58,58,0.85);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.visualize-text h2 { margin-bottom: 16px; }
.visualize-text p {
  color: rgba(58,58,58,0.75);
  margin-bottom: 16px;
}
.visualize-features {
  list-style: none;
  margin: 24px 0;
}
.visualize-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: rgba(58,58,58,0.8);
}
.visualize-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(125, 143, 110, 0.15);
  border: 2px solid var(--sage);
}
@media (max-width: 768px) {
  .visualize-content { grid-template-columns: 1fr; }
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.btn-white {
  background: white;
  color: var(--sage-dark);
}
.btn-white:hover {
  background: var(--cream);
  color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* --- Showroom --- */
.showroom-section { background: var(--cream); }
.showroom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.showroom-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.showroom-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
@media (max-width: 600px) {
  .showroom-grid { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: 'Marcellus', serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--cream);
}
.footer-desc {
  font-size: 0.92rem;
  color: rgba(240,234,224,0.7);
  line-height: 1.7;
}
.footer h4 {
  color: var(--oak-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(240,234,224,0.7);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--oak-light); }
.footer-bottom {
  border-top: 1px solid rgba(240,234,224,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(240,234,224,0.5);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--sage);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(125, 143, 110, 0.4);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-cta:hover {
  background: var(--sage-dark);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(125, 143, 110, 0.5);
}
.floating-cta svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.section-header p {
  color: rgba(58,58,58,0.7);
  margin-top: 12px;
  font-size: 1.05rem;
}
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--oak);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Hours Pill --- */
.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(125, 143, 110, 0.1);
  color: var(--sage);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 12px;
}
.hours-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
