/* ===== FM Bathroom Installations — plain CSS (converted from Tailwind) ===== */
:root {
  --radius: 0.375rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0 0);
  --primary: oklch(0.505 0.183 28.5);          /* #B51F1C */
  --primary-deep: oklch(0.43 0.16 28.5);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.966 0.002 106);         /* #F5F5F3 */
  --muted-foreground: oklch(0.45 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --ink: oklch(0.178 0 0);                     /* #111111 */
  --ink-foreground: oklch(1 0 0);
  --ink-muted: oklch(0.72 0 0);
  --border: oklch(0.9 0.003 106);
  --input: oklch(0.88 0.003 106);
  --ring: oklch(0.505 0.183 28.5);
  --shadow-soft: 0 20px 50px -25px oklch(0.178 0 0 / 0.35);
  --gradient-hero: linear-gradient(90deg, oklch(0.178 0 0 / 0.88) 0%, oklch(0.178 0 0 / 0.6) 50%, oklch(0.178 0 0 / 0.15) 100%);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-sans: "Manrope", system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-size: inherit; font-weight: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* Layout helpers */
.container { max-width: 80rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-5 { width: 1.25rem; height: 1.25rem; }
.icon-primary { color: var(--primary); }

.eyebrow { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); }
.fade-up { animation: fade-up 0.7s ease-out both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tagline-caps { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.25em; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom-width: 1px; background: oklch(1 0 0 / 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.topbar { display: none; background: var(--ink); color: var(--ink-foreground); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; font-size: 0.75rem; line-height: 1rem; }
.topbar .left { letter-spacing: 0.025em; color: var(--ink-muted); }
.topbar .right { display: flex; gap: 1.5rem; }
.topbar a { display: flex; align-items: center; gap: 0.375rem; }
.topbar a:hover { color: var(--primary); }
.topbar .icon { width: 0.875rem; height: 0.875rem; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { flex-shrink: 0; }
.logo img { height: 3.5rem; width: auto; }
.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav a { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: oklch(0.18 0 0 / 0.8); transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone { display: none; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; }
.header-quote { display: none; border-radius: var(--radius); background: var(--primary); padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 700; color: var(--primary-foreground); transition: background .15s; }
.header-quote:hover { background: var(--primary-deep); }
.menu-btn { border-radius: var(--radius); padding: 0.5rem; }
.menu-btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { border-top-width: 1px; background: var(--background); padding: 1rem 1.5rem; }
.mobile-nav a { display: block; padding: 0.75rem 0; font-weight: 600; }
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .break-all { word-break: break-all; }
.mobile-nav a.mobile-quote { margin-top: 0.75rem; border-radius: var(--radius); background: var(--primary); padding: 0.75rem 1.25rem; text-align: center; font-weight: 700; color: var(--primary-foreground); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .35s ease-in-out; }
.hero-img-fading { opacity: 0; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-inner { position: relative; padding-top: 6rem; padding-bottom: 6rem; }
.hero-inner.page { padding-top: 6rem; padding-bottom: 6rem; }
.hero h1 { margin-top: 0.75rem; max-width: 48rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; color: var(--ink-foreground); }
.hero p.intro { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: oklch(1 0 0 / 0.85); }
.hero.home .hero-inner { padding-top: 7rem; padding-bottom: 7rem; }
.hero.home h1 { margin-top: 1rem; font-size: 3rem; line-height: 1.05; }
.hero.home h1 span { color: var(--primary); }
.hero.home p.intro { margin-top: 1.5rem; }
.hero-buttons { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero.home .tagline-caps { margin-top: 2.5rem; color: oklch(1 0 0 / 0.7); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--radius); font-weight: 700; transition: background .15s, color .15s; }
.btn-lg { padding: 1rem 1.75rem; }
.btn-light { background: var(--background); color: var(--foreground); }
.btn-light:hover { background: var(--secondary); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-deep); }

/* ===== Sections ===== */
.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.section h2.title { margin-top: 0.75rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--primary); transition: gap .15s; }
.link-arrow:hover { gap: 0.75rem; }

/* Service cards */
.cards { margin-top: 3rem; display: grid; gap: 1.5rem; }
.card { display: block; overflow: hidden; border-radius: 0.5rem; border-width: 1px; background: var(--background); transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow-soft); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 1.5rem; }
.card h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* Why choose us */
.dark-section { background: var(--ink); color: var(--ink-foreground); }
.why-grid { display: grid; gap: 3.5rem; padding-top: 6rem; padding-bottom: 6rem; }
.why-grid h2 { margin-top: 0.75rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; }
.why-grid .lead { margin-top: 1.25rem; color: var(--ink-muted); }
.why-items { margin-top: 2.5rem; display: grid; gap: 2rem; }
.why-items .icon { width: 2rem; height: 2rem; color: var(--primary); }
.why-items h3 { margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.why-items p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-muted); }
.img-tall { width: 100%; aspect-ratio: 4 / 5; border-radius: 0.5rem; object-fit: cover; }

/* Inspiration grid */
.insp-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.insp-grid img { width: 100%; border-radius: 0.5rem; object-fit: cover; aspect-ratio: 1 / 1; }
.insp-grid img.big { grid-column: span 2; grid-row: span 2; height: 100%; aspect-ratio: auto; }
.note { margin-top: 1rem; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.insp-link { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--primary); }

/* Quote CTA */
.quote-cta { background: var(--secondary); }
.quote-cta .container { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-top: 4rem; padding-bottom: 4rem; }
.quote-cta h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; }
.quote-cta p { margin-top: 0.5rem; color: var(--muted-foreground); }
.quote-cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quote-cta .actions a { border-radius: var(--radius); padding: 0.875rem 1.5rem; font-weight: 700; }
.btn-ink { background: var(--ink); color: var(--ink-foreground); }
.btn-ink:hover { background: var(--primary); }

/* About */
.split { display: grid; gap: 3.5rem; padding-top: 6rem; padding-bottom: 6rem; }
.split h2 { margin-top: 0.75rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; }
.prose { margin-top: 1.5rem; color: var(--muted-foreground); }
.prose p + p { margin-top: 1rem; }
.values { margin-top: 2rem; }
.values li { display: flex; gap: 1rem; }
.values li + li { margin-top: 1.25rem; }
.values .tick { margin-top: 0.25rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex-shrink: 0; border-radius: 9999px; background: var(--primary); color: var(--primary-foreground); }
.values h3 { font-weight: 700; }
.values p { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.banner { background: var(--ink); padding: 4rem 0; text-align: center; }
.banner .big { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 800; letter-spacing: 0.025em; color: var(--ink-foreground); }
.banner .tagline-caps { margin-top: 1rem; color: var(--primary); }

/* Services page */
.service-list { display: grid; gap: 5rem; padding-top: 6rem; padding-bottom: 6rem; }
.service { display: grid; align-items: center; gap: 2.5rem; }
.service img { width: 100%; aspect-ratio: 4 / 3; border-radius: 0.5rem; object-fit: cover; }
.service .eyebrow-num { margin-top: 0; }
.service h2 { margin-top: 0.5rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; }
.service p.text { margin-top: 1rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.service .link-arrow { margin-top: 1.5rem; }

/* Gallery */
.gallery-wrap { padding-top: 5rem; padding-bottom: 5rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button { border-radius: 9999px; border-width: 1px; background: var(--background); padding: 0.5rem 1.25rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; transition: color .15s, border-color .15s; }
.filters button:hover { border-color: var(--foreground); }
.filters button[aria-selected="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.filters + .note { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; }
.gallery { margin-top: 2.5rem; columns: 1; column-gap: 1rem; }
.gallery button { display: block; width: 100%; margin-bottom: 1rem; overflow: hidden; border-radius: 0.5rem; break-inside: avoid; }
.gallery .gallery-video { display: block; width: 100%; margin-bottom: 1rem; overflow: hidden; border-radius: 0.5rem; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery video { display: block; width: 100%; background: #111; }
.gallery .gallery-video { cursor: default; }
.project-intro { margin-top: 1rem; max-width: 42rem; color: var(--muted-foreground); }
.project-gallery { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.project-gallery-item { overflow: hidden; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--background); }
.project-gallery-item img, .project-gallery-item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.project-gallery-item figcaption { padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: oklch(0.178 0 0 / 0.95); padding: 1rem; }
.lightbox .lb-btn { position: absolute; border-radius: 9999px; padding: 0.5rem; color: var(--ink-foreground); }
.lightbox .lb-btn:hover { background: oklch(1 0 0 / 0.1); }
.lightbox .lb-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { right: 1rem; top: 1rem; }
.lb-close svg { width: 1.75rem; height: 1.75rem; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-prev svg, .lb-next svg { width: 2.25rem; height: 2.25rem; }
.lightbox figure { max-height: 100%; max-width: 64rem; }
.lightbox figure img { max-height: 80vh; width: auto; border-radius: 0.375rem; object-fit: contain; }
.lightbox figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-muted); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; padding-top: 6rem; padding-bottom: 6rem; }
.contact-grid h2.side { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; }
.contact-grid .sub { margin-top: 0.75rem; color: var(--muted-foreground); }
.contact-list { margin-top: 2rem; }
.contact-list li + li { margin-top: 1.5rem; }
.contact-list .row { display: flex; align-items: center; gap: 1rem; }
.contact-list .badge { display: grid; place-items: center; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground); }
.contact-list .badge svg { width: 1.5rem; height: 1.5rem; }
.contact-list .label { display: block; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.contact-list .value { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.contact-list a.row:hover .value { color: var(--primary); }
.contact-list .min0 { min-width: 0; }
.contact-list .break-all { display: block; word-break: break-all; }
.contact-grid .tagline-caps { margin-top: 2.5rem; letter-spacing: 0.2em; color: var(--primary); }
.form-box { border-radius: 0.5rem; background: var(--secondary); padding: 1.5rem; }
.form-grid { display: grid; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; }
.form-grid .field { width: 100%; border-radius: var(--radius); border-width: 1px; border-color: var(--input); background: var(--background); padding: 0.75rem 1rem; outline: none; }
.form-grid .field:focus { border-color: var(--primary); box-shadow: 0 0 0 2px oklch(0.505 0.183 28.5 / 0.3); }
.form-grid .error { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--destructive); }
.form-grid .form-alert { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--destructive); }
.form-grid .submit { border-radius: var(--radius); background: var(--primary); padding: 1rem 1.5rem; font-weight: 700; color: var(--primary-foreground); transition: background .15s; }
.form-grid .submit:hover { background: var(--primary-deep); }
.form-grid .submit:disabled { opacity: 0.6; }
.success { padding: 3rem 0; text-align: center; }
.success svg { margin: 0 auto; width: 3.5rem; height: 3.5rem; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { margin-top: 1rem; font-size: 1.5rem; line-height: 2rem; font-weight: 800; }
.success p { margin-top: 0.5rem; color: var(--muted-foreground); }
.success button { margin-top: 1.5rem; font-weight: 700; color: var(--primary); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--ink-foreground); }
.footer-quality { background: var(--primary); }
.footer-quality .container { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.footer-quality p { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-weight: 800; letter-spacing: 0.025em; color: var(--primary-foreground); }
.footer-quality a { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--radius); background: var(--ink); padding: 0.75rem 1.25rem; font-weight: 700; color: var(--ink-foreground); }
.footer-quality a:hover { background: var(--background); color: var(--foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer-logo { display: inline-block; border-radius: var(--radius); background: var(--background); padding: 0.75rem; }
.footer-logo img { height: 5rem; width: auto; }
.footer-owner { margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-muted); }
.footer-grid h3 { margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-grid ul { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-muted); }
.footer-grid ul.tight li + li { margin-top: 0.5rem; }
.footer-grid ul.loose li + li { margin-top: 0.75rem; }
.footer-grid a:hover { color: var(--ink-foreground); }
.footer-grid .row { display: flex; align-items: center; gap: 0.5rem; }
.footer-grid .row .icon { color: var(--primary); }
.footer-grid .break-all { word-break: break-all; }
.footer-bottom { border-top-width: 1px; border-color: oklch(0.72 0 0 / 0.2); }
.footer-bottom p { max-width: 80rem; margin: 0 auto; padding: 1.25rem 1.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--ink-muted); }

/* ===== Breakpoints ===== */
@media (min-width: 640px) {
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-phone { display: flex; }
  .header-quote { display: inline-flex; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { columns: 2; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .topbar { display: block; }
  .logo img { height: 4rem; }
  .hero-inner.page { padding-top: 8rem; padding-bottom: 8rem; }
  .hero h1 { font-size: 3.75rem; line-height: 1; }
  .hero.home .hero-inner { padding-top: 10rem; padding-bottom: 10rem; }
  .hero.home h1 { font-size: 4.5rem; line-height: 1.05; }
  .section-head { flex-direction: row; align-items: flex-end; }
  .section h2.title, .why-grid h2 { font-size: 3rem; line-height: 1; }
  .insp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .quote-cta .container { flex-direction: row; align-items: center; }
  .quote-cta h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .banner .big { font-size: 2.25rem; line-height: 2.5rem; }
  .service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service.flip img { order: 2; }
  .service h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .lb-prev { left: 1.5rem; }
  .lb-next { right: 1.5rem; }
  .form-box { padding: 2.5rem; }
  .footer-quality .container { flex-direction: row; align-items: center; }
  .footer-quality p { font-size: 1.25rem; line-height: 1.75rem; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .project-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
  .header-phone { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .gallery { columns: 3; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
}
@media (min-width: 1280px) {
  .header-phone { display: flex; }
}

.form-alert a { text-decoration: underline; font-weight: 700; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  .hero-img, .gallery img, .filters button { transition: none; }
  .gallery button:hover img { transform: none; }
}
