/* ProTiling — premium tiling contractor static site
   Palette: Deep Slate Grey, Warm White, Stone Beige, Copper Accent */

:root {
  --slate: #2b3138;
  --slate-deep: #1f242a;
  --warm-white: #faf7f2;
  --beige: #e7ddcd;
  --beige-deep: #cdbfa6;
  --copper: #b87333;
  --copper-dark: #9c5f27;
  --ink: #232830;
  --muted: #5d646d;
  --line: #e4dccf;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(31, 36, 42, 0.45);
  --container: 1180px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--copper-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--slate); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-ghost { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-ghost:hover { background: var(--slate); color: var(--warm-white); }
.btn-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--slate); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--slate); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--copper); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--copper-dark); text-decoration: none; }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--slate); display: block; }

/* Hero */
.hero { position: relative; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(31,36,42,0.86) 0%, rgba(31,36,42,0.62) 45%, rgba(31,36,42,0.25) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 120px 24px; }
.hero-inner .eyebrow { color: var(--beige-deep); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead { font-size: 1.18rem; max-width: 52ch; margin: 1.4rem 0 2rem; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page header (interior pages) */
.page-head { background: var(--slate); color: var(--warm-white); padding: 80px 0 70px; }
.page-head .eyebrow { color: var(--beige-deep); }
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 60ch; font-size: 1.1rem; margin-top: 1rem; }

/* Sections */
section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-beige { background: var(--beige); }
.section-slate { background: var(--slate); color: var(--warm-white); }
.section-slate h2, .section-slate h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); }
.section-slate .lead { color: rgba(255,255,255,0.82); }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--beige); color: var(--copper-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Feature list */
.checks { list-style: none; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--copper); font-weight: 800; }

/* Process / steps */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.section-slate .step { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.step .num { counter-increment: step; font-family: var(--font-display); font-size: 2rem; color: var(--copper); display: block; margin-bottom: 8px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.section-slate .step p { color: rgba(255,255,255,0.8); }
.section-slate .step h3 { color: #fff; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; background: linear-gradient(transparent, rgba(31,36,42,0.85)); font-weight: 600; font-size: 0.95rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--copper); box-shadow: var(--shadow); }
.price-card .tag { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--copper); margin-bottom: 8px; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--slate); margin: 6px 0 4px; }
.price-card .amount small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }
.price-card p { color: var(--muted); flex-grow: 1; }
.price-card .btn { margin-top: 18px; }

/* FAQ / accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 40px 22px 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--slate); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--copper); font-family: var(--font-body); }
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-a { display: none; padding: 0 40px 24px 0; color: var(--muted); }
.faq-a.open { display: block; }

/* CTA band */
.cta-band { background: var(--copper); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 56ch; margin: 1rem auto 1.8rem; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust div { text-align: center; }
.trust strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--slate); margin-bottom: 4px; }
.section-slate .trust strong { color: #fff; }
.trust span { font-size: 0.9rem; color: var(--muted); }
.section-slate .trust span { color: rgba(255,255,255,0.75); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--slate); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--copper); border-color: var(--copper); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.info-card { background: var(--slate); color: var(--warm-white); padding: 32px; border-radius: var(--radius); }
.info-card h3 { color: #fff; }
.info-card a { color: var(--beige-deep); }
#form-status { margin-top: 12px; font-weight: 600; }

/* Legal / prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; color: var(--slate); }
.prose p, .prose li { color: #3b424b; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Footer */
.site-footer { background: var(--slate-deep); color: rgba(255,255,255,0.78); padding: 64px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--copper); text-decoration: none; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; color: rgba(255,255,255,0.62); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-family: var(--font-display); font-size: 6rem; color: var(--copper); line-height: 1; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.callout { background: var(--beige); border-left: 3px solid var(--copper); padding: 22px 26px; border-radius: var(--radius); color: var(--slate); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; background: var(--warm-white); padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .price-grid, .steps, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .price-grid, .steps, .gallery-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 24px; }
  section { padding: 56px 0; }
}
