/* ============================================
   THE BINDING EDGE — Brand Stylesheet
   Colors: Gold/Brown palette
   Fonts: Oswald (headings) + Source Sans Pro (body)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --gold: #C9A227;
  --gold-dark: #8B6914;
  --gold-light: #F0D264;
  --brown-deep: #2C1810;
  --brown-carpet: #5C4A1F;
  --cream: #F5F0E6;
  --white: #FFFFFF;
  --black: #111111;
  --shadow: rgba(44, 24, 16, 0.12);
  --shadow-heavy: rgba(44, 24, 16, 0.25);
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--brown-deep);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -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-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 20px;
  color: var(--brown-deep);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--brown-carpet);
  max-width: 640px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--brown-deep);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brown-deep);
  border: 2px solid var(--brown-deep);
}

.btn-outline-dark:hover {
  background: var(--brown-deep);
  color: var(--cream);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 20px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .logo {
  height: 40px;
}

.logo-light { display: block; }
.logo-dark { display: none; }

.header.scrolled .logo-light { display: none; }
.header.scrolled .logo-dark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header.scrolled .nav a {
  color: var(--brown-deep);
}

.nav .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav .btn::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.header.scrolled .menu-toggle span {
  background: var(--brown-deep);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brown-deep) 0%, #1a0f0a 60%, #0d0805 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(139, 105, 20, 0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(245, 240, 230, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Decorative carpet roll */
.hero-decoration {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 500px;
  height: 500px;
  opacity: 0.15;
  z-index: 1;
}

/* --- Services Section --- */
.services {
  padding: var(--section-padding);
  background: var(--white);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.service-card {
  background: var(--cream);
  padding: 48px 32px 40px;
  border-radius: 4px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--gold);
}

.service-card h3 {
  font-family: 'Oswald', sans-serif;
  margin-bottom: 14px;
  color: var(--brown-deep);
  letter-spacing: 1px;
}

.service-card p {
  font-size: 1rem;
  color: var(--brown-carpet);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 1px;
  margin-top: auto;
}

.btn-quote {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  padding: 8px 20px;
  border-radius: 2px;
  transition: all var(--transition);
}

.btn-quote:hover {
  background: var(--gold);
  color: var(--white);
}

/* --- Flooring Section --- */
.flooring {
  padding: var(--section-padding);
  background: var(--cream);
  text-align: center;
}

.flooring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

/* Stagger delays for cards 7-10 (flooring cards) */
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.7s; }
.stagger-children .reveal:nth-child(9) { transition-delay: 0.8s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.9s; }

/* --- How It Works --- */
.how-it-works {
  padding: var(--section-padding);
  background: var(--brown-deep);
  color: var(--cream);
  text-align: center;
}

.how-it-works .section-title {
  color: var(--white);
}

.how-it-works .section-subtitle {
  color: rgba(245, 240, 230, 0.7);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 20px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.step {
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  background: var(--brown-deep);
}

.step h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.step p {
  color: rgba(245, 240, 230, 0.7);
  font-size: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

/* --- Gallery Section --- */
.gallery {
  padding: var(--section-padding);
  background: var(--cream);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-carpet) 100%);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(201, 162, 39, 0.5);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.gallery-placeholder svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.gallery-coming-soon {
  text-align: center;
  padding: 40px;
  color: var(--brown-carpet);
  font-style: italic;
}

/* --- About Section --- */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  max-width: 520px;
}

.about-content p {
  color: var(--brown-carpet);
  margin-bottom: 1.2rem;
}

.about-features {
  list-style: none;
  margin: 28px 0 36px;
}

.about-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-weight: 500;
  color: var(--brown-deep);
}

.about-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.about-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.about-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-carpet) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 162, 39, 0.4);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--shadow-heavy);
}

.experience-badge .number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.experience-badge .text {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Service Area Section --- */
.service-area {
  padding: var(--section-padding);
  background: var(--cream);
  text-align: center;
}

.map-container {
  margin-top: 40px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
  list-style: none;
}

.area-list li {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--brown-carpet);
}

.area-list li::before {
  content: '\2022';
  color: var(--gold);
  margin-right: 8px;
  font-weight: bold;
}

/* --- Testimonials Section --- */
.testimonials {
  padding: var(--section-padding);
  background: var(--brown-deep);
  color: var(--cream);
  text-align: center;
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(245, 240, 230, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 4px;
  padding: 40px 32px;
  text-align: left;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(245, 240, 230, 0.08);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.85);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 4px;
}

/* --- Contact / Quote Section --- */
.contact {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--brown-carpet);
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-details .detail-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details .detail-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--brown-deep);
  display: block;
  margin-bottom: 4px;
}

.contact-details .detail-value {
  color: var(--brown-carpet);
  font-size: 1rem;
}

/* Quote Form */
.quote-form {
  background: var(--cream);
  padding: 48px 40px;
  border-radius: 4px;
}

.quote-form h3 {
  font-family: 'Oswald', sans-serif;
  margin-bottom: 8px;
  color: var(--brown-deep);
}

.quote-form .form-subtitle {
  color: var(--brown-carpet);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(44, 24, 16, 0.15);
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--brown-deep);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form .btn {
  width: 100%;
  padding: 18px;
  font-size: 1rem;
  margin-top: 8px;
}

/* --- Footer --- */
.footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(245, 240, 230, 0.6);
  margin-top: 20px;
  max-width: 340px;
  font-size: 0.95rem;
}

.footer h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(245, 240, 230, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(245, 240, 230, 0.4);
  font-size: 0.85rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .flooring-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .contact-grid { gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  /* Mobile Navigation */
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--brown-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px var(--shadow-heavy);
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    color: var(--cream) !important;
    font-size: 1.1rem;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
  }

  /* Hero */
  .hero { min-height: 100svh; padding-top: 80px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-decoration { display: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .flooring-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps::before { display: none; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { order: -1; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 32px 24px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .service-card { padding: 36px 24px 32px; }
}
