/*
Theme Name: Clearview Glass Solutions
Theme URI: https://glassbyclearview.com/
Author: Clearview Glass Solutions
Description: Custom single-page theme for Clearview Glass Solutions, a veteran-owned residential shower door and bathroom glass company serving Greater Philadelphia and South Jersey.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: clearview
*/
/* Clearview Glass Solutions — brand colors sampled from the business card */
:root {
  --navy: #0b1f3a;
  --navy-deep: #001c30;
  --blue: #135281;
  --blue-bright: #015d8c;
  --steel: #5b86b5;
  --ice: #e8f1f9;
  --ice-2: #f5f9fc;
  --ink: #1b2a3d;
  --muted: #5a6b7e;
  --line: #d6e2ee;
  --white: #fff;
  --red: #c8202f;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(11, 31, 58, .35);
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hl { color: var(--blue); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.script { font-family: "Allura", cursive; font-size: 2.3rem; color: var(--blue); line-height: 1; margin: 0 0 .35em; display: inline-block; border-bottom: 3px solid var(--steel); border-radius: 0 0 50% 50% / 0 0 8px 8px; padding: 0 .3em .05em 0; }
.script.light { color: #cfe3f5; border-color: var(--steel); }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); margin: 0 0 .9em; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: none; padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-align: center; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(19, 82, 129, .8); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-dark { border-color: var(--blue); color: var(--blue); }
.btn-ghost-dark:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: .65em 1.2em; font-size: .9rem; }
.btn-block { width: 100%; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #cfe0ef; font-family: var(--head); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar .star { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 74px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--head); font-weight: 900; font-size: 1.55rem; letter-spacing: -.02em; color: var(--navy); }
.brand-name span { color: var(--steel); }
.brand-sub { font-family: var(--head); font-weight: 600; font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--navy); margin-top: 4px; }
.brand-light .brand-name, .brand-light .brand-sub { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav .nav-phone { font-weight: 800; color: var(--blue) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(115deg, #fff 0%, #fff 52%, var(--ice) 52.1%, #d5e5f3 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding: 64px 0 76px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1.4em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; font-family: var(--head); font-weight: 600; font-size: .88rem; color: var(--navy); }
.chips li::before { content: "✓"; color: #fff; background: var(--blue); border-radius: 50%; display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; font-size: .8em; margin-right: .55em; }
.hero-art { position: relative; justify-self: center; width: min(375px, 100%); }
.glass-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; outline: 1px solid var(--line); background: #fff; margin: 0; }
.hero-art .glass-frame { transform: rotate(1.5deg); }
.hero-badge { position: absolute; left: -28px; bottom: 34px; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 10px; box-shadow: var(--shadow); font-family: var(--head); text-align: center; }
.hero-badge strong { display: block; letter-spacing: .18em; text-transform: uppercase; font-size: .95rem; border-bottom: 1px solid var(--steel); padding-bottom: 6px; margin-bottom: 6px; }
.hero-badge span { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: #cfe0ef; }

/* Trust strip */
.strip { background: var(--blue); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 26px 0; }
.strip-in div { padding: 4px 12px; border-left: 1px solid rgba(255, 255, 255, .25); }
.strip-in div:first-child { border-left: 0; }
.strip strong { display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; line-height: 1.1; }
.strip span { font-family: var(--head); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #d6e6f4; }

/* Sections */
.section { padding: 84px 0; }
.section-tint { background: var(--ice-2); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy-deep); color: #d5e2ee; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy strong { color: #fff; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.icon { width: 68px; height: 68px; border-radius: 50%; background: var(--blue-bright); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tag { font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.inline-cta { margin-top: 44px; background: var(--ice); border-radius: var(--radius); padding: 24px 30px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.inline-cta p { margin: 0; font-size: 1.08rem; }
.section-tint .inline-cta { background: #fff; border: 1px solid var(--line); }

/* Choices + visit checklist */
.sub-head { margin: 56px 0 0; font-size: 1.3rem; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 22px; }
.choices div { border-left: 3px solid var(--steel); padding-left: 18px; }
.choices strong { font-family: var(--head); color: var(--navy); }
.choices p { margin: .4em 0 0; color: var(--muted); font-size: .97rem; }
.visit { margin-top: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.visit ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.visit li { break-inside: avoid; padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.visit li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Values */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.pillar { background: var(--navy-deep); color: #c5d6e6; border-radius: var(--radius); padding: 36px 30px; border-top: 4px solid var(--steel); }
.pillar h3 { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.pillar p { margin: 0; font-size: .98rem; }
.pillar-star { display: block; color: #fff; font-size: 1.4rem; line-height: 1; margin-bottom: 14px; }

/* Craftsmanship */
.craft-in { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: center; }
.craft-art { width: min(374px, 100%); justify-self: center; }
.craft-art .glass-frame { transform: rotate(-1.5deg); }
.craft-quote { font-family: var(--head); font-weight: 600; font-style: italic; color: var(--blue); font-size: 1.05rem; line-height: 1.5; margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--steel); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: 68px; right: -20px; border-top: 2px dashed var(--steel); opacity: .5; }
.num { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* Gallery */
.gallery { margin-top: 44px; display: grid; grid-template-columns: 375fr 338fr 374fr; gap: 22px; align-items: start; max-width: 1000px; }
.gallery figure { position: relative; }
.gallery img { width: 100%; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0, 28, 48, .85)); color: #fff; font-family: var(--head); font-weight: 600; font-size: .85rem; letter-spacing: .04em; padding: 30px 16px 12px; }

/* About */
.about-in { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--steel); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.vet { text-align: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 40px 28px; background: rgba(255, 255, 255, .03); }
.vet img { margin: 0 auto 22px; width: 200px; }
.vet h3 { letter-spacing: .3em; text-transform: uppercase; font-weight: 600; font-size: 1.2rem; }
.vet-rule { display: flex; align-items: center; gap: 12px; color: #fff; margin: 10px auto 14px; max-width: 240px; }
.vet-rule::before, .vet-rule::after { content: ""; flex: 1; border-top: 1px solid rgba(255, 255, 255, .6); }
.vet-values { font-family: var(--head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.vet-values span { margin: 0 .35em; }
.vet-note { font-size: .92rem; color: #a9bdd0; margin: 0; }

/* Area */
.area { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; }
.area-col, .area-note { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.area-col h3 { color: var(--blue); }
.area-col ul { list-style: none; margin: 0; padding: 0; }
.area-col li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; }
.area-col li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue-bright); }
.area-note { background: var(--ice); border-color: transparent; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { font-family: var(--head); font-weight: 700; color: var(--navy); padding: 18px 30px 18px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Estimate */
.section-cta { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); color: #dbe8f4; }
.section-cta h2 { color: #fff; }
.est-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list a { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.15rem; word-break: break-word; }
.contact-list small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #a9c6e0; }
.ci { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ci svg { width: 24px; height: 24px; fill: var(--blue); }
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 34px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55); }
.form h3 { font-size: 1.35rem; margin-bottom: 1em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--navy); margin-bottom: 16px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--ice-2); border: 1.5px solid var(--line); border-radius: 10px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(19, 82, 129, .15); }
.form .invalid { border-color: var(--red) !important; }
.pref { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.pref legend { font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--navy); margin-bottom: 8px; padding: 0; }
.pref label { margin: 0; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { text-align: center; font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { text-align: center; font-weight: 600; margin: 10px 0 0; min-height: 1em; }
.form-status.ok { color: #14723f; }
.form-status.err { color: var(--red); }

/* Footer */
.footer { background: var(--navy-deep); color: #a9bdd0; font-size: .95rem; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1em; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 0 0 .5em; }
.foot-tag { font-family: var(--head); letter-spacing: .25em; text-transform: uppercase; font-size: .7rem; color: #cfe0ef; margin-top: 16px !important; }
.tagline-bar { background: var(--blue); color: #fff; text-align: center; font-family: var(--head); font-weight: 500; font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; padding: 14px 20px; }
.copy { text-align: center; font-size: .8rem; padding: 16px 20px; margin: 0; }

/* Mobile action bar */
.mobile-bar { display: none; }

.nav a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 821px) {
  .nav { gap: 18px; }
  .nav a:not(.btn):not(.nav-phone) { display: none; }
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .nav { gap: 18px; }
  .nav a:not(.btn):not(.nav-phone) { display: none; }
}

@media (max-width: 820px) {
  body { font-size: 16px; padding-bottom: 62px; }
  .topbar-right { display: none; }
  .topbar-in { justify-content: center; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn):not(.nav-phone), .nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; text-align: center; }
  .brand img { width: 58px; }
  .brand-name { font-size: 1.3rem; }
  .hero { background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--ice) 100%); }
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 56px; }
  .hero-art { width: min(320px, 86%); }
  .hero-badge { left: -14px; }
  .cta-row .btn { width: 100%; }
  .strip-in { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .strip-in div:nth-child(3) { border-left: 0; }
  .section { padding: 60px 0; }
  .about-in, .est-in, .footer-in, .craft-in, .pillars { grid-template-columns: 1fr; gap: 36px; }
  .pillars { gap: 18px; }
  .choices { grid-template-columns: 1fr; gap: 20px; }
  .visit { padding: 24px 20px; }
  .visit ul { columns: 1; }
  .area { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-tall { grid-row: span 2; }
  .form { padding: 24px 20px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-deep); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25); }
  .mobile-bar a { color: #fff; text-decoration: none; text-align: center; font-family: var(--head); font-weight: 700; font-size: .95rem; padding: 18px 6px; border-left: 1px solid rgba(255, 255, 255, .15); }
  .mobile-bar a.primary { background: var(--blue); }
}

@media (max-width: 540px) {
  .cards, .steps, .row { grid-template-columns: 1fr; }
  .row { gap: 0; }
  .gallery { grid-template-columns: 1fr; max-width: 375px; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Standard pages (privacy policy, etc.) */
.entry { max-width: 720px; }
.entry img { border-radius: var(--radius); }
.entry h2 { font-size: 1.5rem; margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }