/* ============================================
   Floor & Bath Remodelling - Stylesheet
   Design tokens: warm stone + burnt copper + slate
   ============================================ */

@font-face {
  font-family: 'Zilla Slab';
  src: local('Zilla Slab');
}

:root {
  /* Colors */
  --ink: #22251F;
  --ink-soft: #3A3D34;
  --stone: #F2EFEA;
  --stone-deep: #E7DFD1;
  --copper: #A8471F;
  --copper-dark: #7E3517;
  --slate: #5C6B62;
  --slate-light: #8B968E;
  --white: #FDFCFA;
  --line: rgba(34, 37, 31, 0.12);

  /* Type */
  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing / layout */
  --container-w: 1120px;
  --radius: 4px;
}

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* -------- Tick-mark rule (signature element) -------- */
.tick-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.tick-rule::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--copper);
}
.tick-rule span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover { background: var(--copper-dark); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(253, 252, 250, 0.55);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(253, 252, 250, 0.1); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }

/* -------- Header / Nav -------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(242, 239, 234, 0);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(242, 239, 234, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  transition: color 0.25s ease;
}
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(253, 252, 250, 0.4);
  flex-shrink: 0;
  transition: border-color 0.25s ease;
}
.site-header.scrolled .nav-avatar { border-color: var(--line); }
.site-header.scrolled .nav-logo { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.25s ease, opacity 0.15s ease;
  opacity: 0.9;
}
.nav-link:hover { opacity: 1; }
.site-header.scrolled .nav-link { color: var(--ink-soft); }
.nav-cta {
  background: var(--copper);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  opacity: 1;
}
.nav-cta:hover { background: var(--copper-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(34,37,31,0.88), rgba(34,37,31,0.72)),
    repeating-linear-gradient(45deg, #3A3D34 0px, #3A3D34 2px, #2C2F27 2px, #2C2F27 82px);
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 76px;
  max-width: 640px;
}
.hero-eyebrow {
  color: #E0A583;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(253, 252, 250, 0.85);
  margin-bottom: 14px;
  max-width: 480px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
  font-size: 14.5px;
  color: rgba(253, 252, 250, 0.82);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { flex-shrink: 0; color: #E0A583; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 252, 250, 0.6);
  z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* -------- Sections general -------- */
.section { padding: 96px 0; }
.section-header { max-width: 620px; margin-bottom: 52px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* -------- Services -------- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--stone); }
.service-icon {
  width: 44px; height: 44px;
  color: var(--copper);
  margin-bottom: 20px;
}
.service-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* -------- Trust stat bar -------- */
.stats-bar {
  background: var(--ink);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #E0A583;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: rgba(253, 252, 250, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -------- Gallery -------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
}
.gallery-more {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 36px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--line);
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
}
.gallery-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(34,37,31,0.75), transparent);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 18, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox-img { max-height: 78vh; margin: 0 auto; border-radius: 4px; }
.lightbox-caption { color: var(--stone); margin-top: 16px; font-size: 15px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 10px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 44px; }

/* -------- Reviews -------- */
.reviews-section { background: var(--stone-deep); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.reviews-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.see-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--copper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.see-more-link svg {
  width: 17px;
  height: 17px;
}
.see-more-link:hover {
  color: var(--copper-dark);
  border-color: var(--copper-dark);
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.review-stars {
  color: var(--copper);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.review-author {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-badge {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--slate);
  background: rgba(92, 107, 98, 0.12);
  padding: 3px 8px;
  border-radius: 100px;
}

/* -------- About -------- */
.about-section { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.about-text p { margin-bottom: 16px; }
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--copper);
}
.about-stat-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  opacity: 0.8;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.about-photo-caption {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 12px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-photo { order: -1; max-width: 420px; margin: 0 auto 36px; }
}

/* -------- Footer / Contact -------- */
.footer {
  background: var(--ink);
  color: var(--stone);
  padding: 90px 0 28px;
}
.footer-cta { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-subtitle {
  font-size: 16px;
  color: rgba(253, 252, 250, 0.75);
  margin-bottom: 34px;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.footer .btn-outline {
  color: var(--white);
  border-color: rgba(253, 252, 250, 0.5);
}
.footer .btn-outline:hover { background: var(--white); color: var(--ink); }

.footer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid rgba(253, 252, 250, 0.12);
  border-bottom: 1px solid rgba(253, 252, 250, 0.12);
  font-size: 14px;
  color: rgba(253, 252, 250, 0.7);
}
.footer-meta h4 {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 252, 250, 0.45);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-meta ul { list-style: none; }
.footer-meta li { margin-bottom: 6px; }

.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(253, 252, 250, 0.25);
  color: rgba(253, 252, 250, 0.75);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  border-color: var(--copper);
  color: var(--white);
  background: rgba(168, 71, 31, 0.25);
}
.social-link-placeholder {
  opacity: 0.4;
  cursor: default;
}
.social-link-placeholder:hover {
  border-color: rgba(253, 252, 250, 0.25);
  color: rgba(253, 252, 250, 0.75);
  background: transparent;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(253, 252, 250, 0.5);
}

/* -------- Focus visibility -------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--stone);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
  }
  .nav-link {
    color: var(--ink) !important;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    opacity: 1;
    width: 100%;
    flex-shrink: 0;
  }
  .nav-cta { margin: 18px 24px; text-align: center; justify-content: center; flex-shrink: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 64px 0; }
  .footer { padding: 64px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-actions { flex-direction: column; align-items: stretch; }
  .footer-actions .btn { justify-content: center; }
}