/* ==========================================================================
   Mesa Glass -- site shell
   Palette is taken from the shop's own signage: red gothic on black, with the
   Glass Shop cyan as the secondary accent.
   ========================================================================== */

:root {
  --bg: #0d0e10;
  --bg-alt: #131519;
  --panel: #191c21;
  --line: #2a2f37;
  --ink: #f3f5f8;
  --ink-soft: #a6b0bc;
  --red: #e0201b;
  --red-hi: #ff443d;
  --cyan: #2fa9e2;
  --max: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); }

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--red);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------- header --------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand span {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
@media (max-width: 560px) { .brand span { display: none; } }

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--cyan); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; border-radius: 6px;
  padding: 10px 18px; border: 2px solid var(--red);
  background: var(--red); color: #fff;
}
.btn:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn-lg { font-size: 1rem; padding: 13px 26px; }

/* -------------------------------- hero ---------------------------------- */

.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("img/shop-broadway.jpg");
  background-size: cover; background-position: center 30%;
  opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,14,16,0.55) 0%, rgba(13,14,16,0.88) 75%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; text-align: center; }
/* The logo file has an opaque black background. Screen blending drops the
   black into the dark hero and keeps the red and white linework. */
.hero-logo { width: min(260px, 62vw); margin: 0 auto 26px; mix-blend-mode: screen; }
.hero h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.2; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.hero p.lede { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--ink-soft); margin: 0 auto 30px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ sections -------------------------------- */

section { padding: 62px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-intro { color: var(--ink-soft); max-width: 640px; margin: 0 0 34px; }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

.eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 800; color: var(--red-hi); margin-bottom: 10px;
}

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.card li { margin-bottom: 4px; }

/* split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; } }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }

/* the numbered "how it works" strip */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 30px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 260px; object-fit: cover; }
.gallery figcaption { padding: 14px 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* memorial */
.memorial {
  border: 1px solid var(--line); border-left: 4px solid var(--red);
  background: var(--panel); border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.memorial img { width: 62px; flex: none; filter: invert(1); opacity: 0.85; }
.memorial p { margin: 0; color: var(--ink-soft); }
.memorial strong { color: var(--ink); display: block; font-size: 1.05rem; }

/* ------------------------------- footer --------------------------------- */

.site-footer { background: #08090a; border-top: 1px solid var(--line); padding: 46px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.site-footer h4 { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer p, .site-footer li { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 4px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-logo { width: 120px; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-soft);
}
.phone-big { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; }

/* ==========================================================================
   Calculator theming
   The widget reads these custom properties, so it inherits the site's look
   without a single style override.
   ========================================================================== */

/* Deliberately id-scoped: styles.css defines its own dark palette under
   `.gqc:not([data-theme="light"])`, which outranks a bare `.gqc`. Matching on
   the mount point's id wins regardless of stylesheet order. */
#gqc-root.gqc {
  --gqc-bg: var(--bg-alt);
  --gqc-panel: var(--panel);
  --gqc-ink: var(--ink);
  --gqc-ink-soft: var(--ink-soft);
  --gqc-line: var(--line);
  --gqc-accent: var(--red);
  --gqc-accent-ink: #ffffff;
  --gqc-warn-bg: #33280f;
  --gqc-warn-line: #7a6021;
  --gqc-warn-ink: #f0d79a;
  --gqc-error-bg: #3a1d1a;
  --gqc-error-line: #7d3d36;
  --gqc-error-ink: #f2b8b1;
  --gqc-radius: var(--radius);
  padding: 0;
  max-width: none;
}
