/* ==========================================================================
   Hoang's Quality Tiling — site styles
   ========================================================================== */

:root {
  --ink: #1b1f27;
  --ink-soft: #2a303a;
  --paper: #faf8f4;
  --paper-2: #f3efe8;
  --card: #ffffff;
  --muted: #6b7280;
  --line: #e7e2d9;
  --accent: #c0762a;
  --accent-strong: #a5621f;
  --accent-soft: #f3e4cf;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, 0.06), 0 4px 16px rgba(20, 22, 28, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 22, 28, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1160px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.btn-lg { padding: 17px 28px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--ink); color: #fff; font-family: var(--font-serif); font-weight: 900;
  font-size: 1.35rem; border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-tagline { font-size: 0.72rem; color: var(--muted); font-style: italic; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
.nav-list a:hover { color: var(--accent-strong); text-decoration: none; }
.nav-cta { padding: 11px 18px; font-size: 0.88rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(192, 118, 42, 0.28), transparent 60%),
    linear-gradient(135deg, #171b22 0%, #232936 55%, #1b1f27 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 44px 44px; background-position: 0 0, 22px 22px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 72px;
}
.hero-eyebrow {
  margin: 0 0 16px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #e7b877; font-weight: 600;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: #d8dde6; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-rating { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: #cdd3dc; }
.hero-rating .stars { color: #f6c453; }
.hero a { color: #e7b877; }
.hero a:hover { color: #f6c453; }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-card { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--card); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--main { width: 78%; aspect-ratio: 4 / 3; transform: rotate(2deg); }
.hero-card--float {
  position: absolute; bottom: -26px; right: 0; width: 46%; aspect-ratio: 3 / 4;
  border: 6px solid #fff; transform: rotate(-4deg); z-index: 2;
}

/* Trust bar */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 14px; padding: 22px 16px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--accent-soft); border-radius: 10px; font-size: 1.15rem;
}
.trust-item strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.trust-item em { font-style: normal; font-size: 0.82rem; color: var(--muted); }

/* Sections */
.section { padding: 84px 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  margin: 0 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-strong);
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-lede { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.about-copy p { color: var(--ink-soft); margin: 0 0 16px; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-weight: 800;
}
.about-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--card); }
.about-figure img { width: 100%; object-fit: cover; }
.about-figure figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 20px 22px 24px; }
.service-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; padding: 0; margin: 0; border: 0; background: var(--card);
  border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(15, 17, 22, 0.82));
  color: #fff; font-size: 0.8rem; font-weight: 600; text-align: center; opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

/* Reviews */
.stars { color: var(--accent); letter-spacing: 0.05em; }
.stars--large { font-size: 1.25rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-weight: 700; }
.review-date { font-size: 0.82rem; color: var(--muted); }
.review-text { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.review-text::first-letter { color: var(--accent); }

/* Areas */
.areas-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.area-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.area-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
}
.areas-note { color: var(--muted); margin-top: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card--call { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-card--call h3 { color: #e7b877; }
.contact-card--call p { color: #c3c9d2; }
.contact-card h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.contact-value { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.contact-card--call .contact-value { color: #fff; font-size: 1.5rem; }
.contact-value:hover { text-decoration: none; color: var(--accent-strong); }
.contact-card--call .contact-value:hover { color: #f6c453; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #c3c9d2; padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: #fff; font-size: 1.15rem; }
.footer-brand .brand-tagline { color: #e7b877; font-style: italic; font-size: 0.85rem; }
.footer-meta { margin: 0; font-size: 0.9rem; }
.footer-meta a { color: #e7b877; }
.footer-copy { color: #8a919c; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 14, 18, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 48px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; max-width: min(90vw, 1100px); }
.lightbox-img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; box-shadow: var(--shadow-md); }
.lightbox-caption { color: #d8dde6; margin-top: 14px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px; gap: 8px; box-shadow: var(--shadow-md);
  }
  .site-nav.is-open .nav-list { display: flex; flex-direction: column; gap: 4px; }
  .site-nav.is-open .nav-list a { display: block; padding: 10px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav.is-open .nav-cta { display: inline-flex; justify-content: center; margin-top: 10px; }

  .services-grid, .reviews-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .lightbox { padding: 20px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
