/* ==========================================================================
   Ottawa Bathtub Reglazing — shared stylesheet
   Palette: trust blues + teal accent (industry-standard for home services)
   ========================================================================== */

:root {
  --primary: #0b4f6c;      /* deep trust blue */
  --primary-dark: #073b52;
  --primary-light: #e8f3f8;
  --teal: #14b8a6;         /* clean/water teal accent */
  --teal-dark: #0d9488;
  --white: #ffffff;
  --off-white: #f7fafc;
  --ink: #1f2937;
  --ink-light: #4b5563;
  --border: #e2e8f0;
  --warn-bg: #fff7ed;
  --star: #f59e0b;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 79, 108, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 79, 108, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { color: var(--ink-light); }

section { padding: 72px 0; }
.section-alt { background: var(--off-white); }

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 10px;
}

.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head p { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 16px rgba(20,184,166,.35); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-secondary:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cfe8f2;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a.phone-link { color: var(--white); font-weight: 700; }
.topbar .service-area-strip { opacity: .85; }

/* ---------- Sticky header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
}
.logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo .logo-sub { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-light); }

nav.main-nav { display: flex; gap: 26px; }
nav.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover { color: var(--primary); border-color: var(--teal); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: .95rem;
}
.header-call .ico { color: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--ink-light);
}
.lang-switch a.lang-current {
  color: var(--white);
  background: var(--primary);
}
.lang-switch a:hover:not(.lang-current) { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(7,59,82,.92), rgba(11,79,108,.85)),
    linear-gradient(135deg, #0b4f6c, #146680 60%, #14b8a6 130%);
  color: var(--white);
  padding: 90px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lead { color: #dcf0f5; font-size: 1.15rem; margin-top: 18px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust-row {
  display: flex;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: #cfe8f2;
}
.hero-trust-row span { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.hero-visual {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 22px;
}
.placeholder-block {
  background: repeating-linear-gradient(45deg, #eef4f7, #eef4f7 10px, #e3edf2 10px, #e3edf2 20px);
  border: 2px dashed #9db8c4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4b6a78;
  font-weight: 700;
  font-size: .85rem;
  padding: 14px;
}
.hero-visual .placeholder-block { height: 320px; color: #eaf6fb; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }

/* ---------- Trust badges ---------- */
.badges {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 34px 0;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.badge-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.badge-item strong { display: block; font-size: .95rem; color: var(--primary-dark); }
.badge-item span { font-size: .82rem; color: var(--ink-light); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card ul { margin-top: 14px; }
.service-card ul li { font-size: .9rem; color: var(--ink-light); padding: 4px 0; padding-left: 20px; position: relative; }
.service-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 800; }
.service-card .price-note { margin-top: 16px; font-size: .85rem; font-weight: 700; color: var(--primary); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.gallery-pair {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.gallery-pair .halves { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-pair .placeholder-block { height: 160px; border-radius: 0; }
.gallery-pair .halves > div:first-child .placeholder-block { border-right: 2px dashed #9db8c4; }
.gallery-caption { padding: 14px 16px; font-size: .88rem; color: var(--ink-light); font-weight: 600; }
.gallery-note {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--ink-light);
  font-style: italic;
}

/* ---------- Why us / benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.benefit-item { display: flex; gap: 14px; }
.benefit-item .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.area-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.area-card span { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-light); margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.stars { color: var(--star); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.testimonial-card p.quote { color: var(--ink); font-style: italic; }
.testimonial-author { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .78rem; color: var(--ink-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-dark); font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--teal-dark));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #dcf0f5; margin-top: 10px; }
.cta-banner .hero-ctas { justify-content: center; margin-top: 28px; }

.quote-form {
  max-width: 560px;
  margin: 32px auto 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
}
.quote-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.quote-form-row input,
.quote-form-row select {
  flex: 1;
  min-width: 0;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.95);
  color: var(--text, #1a1a1a);
  font-size: .95rem;
  font-family: inherit;
}
.quote-form textarea { margin-bottom: 14px; resize: vertical; }
.quote-form-submit { width: 100%; border: none; cursor: pointer; }
.botcheck-field { position: absolute; left: -9999px; }
.quote-form-status { margin-top: 12px; font-size: .9rem; min-height: 1.2em; }
.quote-form-status.success { color: #baf7d6; font-weight: 600; }
.quote-form-status.error { color: #ffd6d6; font-weight: 600; }
@media (max-width: 560px) {
  .quote-form-row { flex-direction: column; gap: 0; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--primary-dark);
  color: #c9dde5;
  padding: 56px 0 24px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a:hover { color: var(--teal); }
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo .logo-sub { color: #a9c6d1; }
.footer-nap p { color: #c9dde5; margin: 4px 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  color: #93b3bf;
}
.placeholder-flag {
  background: var(--warn-bg);
  border: 1px dashed #f59e0b;
  color: #92400e;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .78rem;
  margin-top: 16px;
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: var(--teal-dark);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  padding: 14px;
  font-size: 1rem;
}

/* ---------- Breadcrumb (location pages) ---------- */
.breadcrumb {
  font-size: .82rem;
  color: var(--ink-light);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .badges-row { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .header-call span.call-label { display: none; }
  .topbar .service-area-strip { display: none; }
  .topbar .container { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .container { padding: 0 18px; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
  .header-cta .btn-primary.desktop-only { display: none; }
  .header-inner { padding: 12px 18px; }
  .hero { padding: 48px 0 56px; }
  .hero-visual .placeholder-block { height: 220px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .btn { padding: 14px 20px; font-size: .95rem; }
  .cta-banner .hero-ctas { align-items: stretch; }
  .gallery-pair .halves { grid-template-columns: 1fr; }
  .gallery-pair .halves > div:first-child .placeholder-block { border-right: none; border-bottom: 2px dashed #9db8c4; }
  .testimonial-grid { gap: 16px; }
  .service-card, .testimonial-card { padding: 22px 20px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .area-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .badges-row { grid-template-columns: 1fr; gap: 18px; }
  .logo { font-size: 1rem; }
  .logo .logo-mark { width: 32px; height: 32px; font-size: .85rem; }
  .logo .logo-sub { font-size: .68rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero .lead { font-size: 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .breadcrumb { font-size: .75rem; }
  .service-area-strip { font-size: .78rem; }
}

nav.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
nav.main-nav.open a { padding: 10px 0; font-size: 1.05rem; }

/* Larger touch targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn, .area-card, nav.main-nav a, .faq-item summary { min-height: 44px; }
  .lang-switch a { padding: 6px 10px; }
}

/* Social media icons in footer */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #c9dde5;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
