/* =========================================================
   Bathtubs Revived - Mend A Bath Phoenix
   Design tokens
   ========================================================= */
:root {
  --ink: #12233B;
  --ink-soft: #294263;
  --porcelain: #F7F9FA;
  --porcelain-dim: #ECEFF1;
  --glaze: #1E8A8A;
  --glaze-dark: #146868;
  --brass: #B8863B;
  --brass-light: #D9A85C;
  --slate: #5C6B73;
  --border: #E1E6E9;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 12px 30px -14px rgba(18, 35, 59, 0.28);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 600; margin-top: 0; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--glaze-dark); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--glaze-dark); }

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

.prose { max-width: 780px; }
.prose h3 { margin-top: 1.6em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }

.btn-primary {
  background: var(--brass);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--ink);
}
.hero .btn-ghost { color: #fff; }
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; color: var(--glaze); flex-shrink: 0; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { color: var(--glaze-dark); border-color: var(--brass); }

.header-cta { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, var(--glaze-dark) 130%);
  color: #fff;
  padding: 72px 0 88px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 14px;
}

.hero h1 { color: #fff; }

.hero-lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brass-light);
}
.hero-stats span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* Signature visual: refinish swipe panel */
.hero-visual { display: flex; justify-content: center; }
.refinish-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #8a95a1 0%, #b9c0c7 45%, #eef1f3 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.refinish-swipe {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--glaze) 0%, #4fc3c3 45%, #eaf7f7 100%);
  clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%);
  animation: swipeReveal 3.2s ease-in-out infinite;
}
.tag {
  position: absolute;
  top: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18,35,59,0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.tag-before { left: 16px; }
.tag-after { right: 16px; background: rgba(20,104,104,0.65); }

@keyframes swipeReveal {
  0%, 100% { clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%); }
  50% { clip-path: polygon(0 0, 92% 0, 68% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .refinish-swipe { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 68px 0; }
.section-alt { background: var(--porcelain-dim); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--glaze);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brass);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; }

/* Contact */
.contact-section { background: var(--ink); color: #fff; }
.contact-inner { max-width: 720px; }
.contact-section h2 { color: #fff; }
.contact-section p { color: rgba(255,255,255,0.78); }
.contact-details {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 14px;
}
.contact-details .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-light);
  margin-bottom: 2px;
}
.contact-details a { color: #fff; font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.contact-details span:not(.label) { font-size: 1.15rem; font-weight: 600; }

/* Footer */
.site-footer {
  background: #0D1A2C;
  color: rgba(255,255,255,0.6);
  padding: 26px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.site-footer a { color: rgba(255,255,255,0.75); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 48px 0 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 20px; }

  .section { padding: 48px 0; }
}

@media (max-width: 460px) {
  .wrap { padding: 0 18px; }
  .brand span { font-size: 1rem; }
}
