/*
Theme Name: Symmetry Glazing SEO Theme
Theme URI: https://symmetryglazing.com/
Author: Symmetry Glazing Systems
Author URI: https://symmetryglazing.com/
Description: A modern, SEO-optimized WordPress theme for Symmetry Glazing Systems serving the Greater Toronto Area. Includes responsive pages, service landing pages, local business schema, editable WordPress pages, custom logo support, menus, and a contact form that stores leads and emails a configured recipient.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: symmetry-glazing
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #182133;
  --ink-soft: #263349;
  --ivory: #f8f5eb;
  --paper: #fffdf7;
  --muted: #6e7280;
  --line: #ded7c8;
  --copper: #b46f34;
  --copper-dark: #8f5425;
  --smoke: #efeadf;
  --radius: 6px;
  --shadow: 0 30px 80px rgba(24,33,51,.18);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--copper); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6,.display-font { font-family: Fraunces, Georgia, serif; font-weight: 400; letter-spacing: -.025em; line-height: 1.05; }
h1 { font-size: clamp(3rem, 7vw, 6.75rem); margin: 0; }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0; }
h3 { font-size: clamp(1.45rem, 2vw, 2.1rem); margin: 0; }
p { margin: 0; }

.admin-bar .site-header { top: 32px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section-tight { padding: clamp(50px, 7vw, 90px) 0; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: var(--copper); font-weight: 700; }
.text-muted { color: var(--muted); }
.italic-accent { color: var(--copper); font-style: italic; }

.btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .88rem 1.35rem;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 700;
  font-size: .94rem;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); color: var(--ivory); background: var(--copper-dark); }
.btn.btn-light { background: var(--ivory); color: var(--ink); }
.btn.btn-light:hover { background: white; color: var(--copper-dark); }
.btn.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.btn-outline:hover { border-color: var(--copper); color: var(--copper); background: rgba(180,111,52,.07); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222,215,200,.75);
  background: rgba(248,245,235,.9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-logo img { width: auto; max-height: 78px; }
.site-logo .custom-logo { max-height: 78px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; align-items: center; }
.primary-nav a { font-size: .94rem; color: rgba(24,33,51,.74); font-weight: 600; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--ink); }
.header-cta { display: inline-flex; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; padding: .5rem; }

.hero {
  position: relative;
  min-height: clamp(620px, 75vh, 820px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero.hero-small { min-height: clamp(390px, 55vh, 560px); }
.hero img.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,33,51,.78), rgba(24,33,51,.42), rgba(24,33,51,.08)); }
.hero-content { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 110px 0; color: var(--ivory); }
.hero-content p { max-width: 660px; margin-top: 26px; color: rgba(248,245,235,.86); font-size: clamp(1rem, 1.4vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.hero-phone { color: rgba(248,245,235,.88); font-weight: 700; }
.hero-phone:hover { color: var(--ivory); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 28px; color: rgba(24,33,51,.7); font-family: Fraunces, Georgia, serif; font-size: 1.08rem; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }
.section-heading { max-width: 760px; }
.section-heading.center { margin: 0 auto; }
.section-heading h1, .section-heading h2 { margin-top: 18px; }
.section-heading p { margin-top: 24px; color: var(--muted); font-size: 1.08rem; }

.circle-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.circle-img { width: min(220px, 62vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.circle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.circle-card:hover .circle-img { border-color: var(--copper); transform: translateY(-2px); }
.circle-card:hover img { transform: scale(1.06); }
.circle-card h3 { margin-top: 24px; font-size: 1.45rem; }
.circle-card p { margin-top: 8px; max-width: 320px; color: var(--muted); font-size: .95rem; }

.stats { background: var(--ink); color: var(--ivory); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 46px 34px; border-right: 1px solid rgba(248,245,235,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Fraunces, Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: rgba(248,245,235,.68); }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; border-top: 1px solid var(--line); }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(46px, 7vw, 100px); }
.split-copy h2 { margin-top: 18px; max-width: 570px; }
.split-copy p { margin-top: 24px; max-width: 560px; color: var(--muted); }

.promise-box { border: 1px solid var(--line); background: rgba(239,234,223,.55); padding: clamp(32px, 6vw, 70px); display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.promise-box h2 { margin-top: 18px; }
.promise-box p { margin-top: 24px; color: var(--muted); max-width: 650px; }
.promise-img { aspect-ratio: 4/5; overflow: hidden; box-shadow: var(--shadow); }
.promise-img img { width: 100%; height: 100%; object-fit: cover; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-card { background: var(--ivory); padding: 34px; transition: background .2s ease; }
.feature-card:hover { background: var(--smoke); }
.feature-card .num { font-family: Fraunces, Georgia, serif; color: var(--copper); font-size: .95rem; }
.feature-card h3 { margin-top: 20px; font-size: 1.65rem; }
.feature-card p { margin-top: 14px; color: var(--muted); font-size: .95rem; }

.testimonial, .service-row, .content-card { border: 1px solid var(--line); background: rgba(255,253,247,.5); padding: 34px; }
.testimonial blockquote { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; }
.testimonial figcaption { margin-top: 30px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.service-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px 1fr 1.5fr auto; gap: 32px; align-items: start; border: 0; border-bottom: 1px solid var(--line); padding: 42px 0; background: transparent; }
.service-row:last-child { border-bottom: 0; }
.service-row .num { color: var(--copper); font-family: Fraunces, Georgia, serif; }
.service-row p { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-card { position: relative; overflow: hidden; min-height: 440px; background: var(--ink); }
.gallery-card.wide { grid-column: span 2; aspect-ratio: 16/8; min-height: 420px; }
.gallery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 34px; color: var(--ivory); background: linear-gradient(0deg, rgba(24,33,51,.86), rgba(24,33,51,0)); }
.gallery-card small { text-transform: uppercase; letter-spacing: .22em; color: rgba(248,245,235,.78); }
.gallery-card h3 { margin-top: 8px; }

.page-intro { padding: clamp(70px, 10vw, 125px) 0 clamp(40px, 6vw, 70px); }
.page-intro h1 { margin-top: 18px; max-width: 900px; }
.page-intro p { margin-top: 24px; max-width: 650px; color: var(--muted); }
.entry-content { color: var(--ink); }
.entry-content p, .entry-content li { color: var(--muted); }
.entry-content p + p { margin-top: 1rem; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; color: var(--ink); }
.entry-content ul { padding-left: 1.2rem; }

.detail-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--copper); font-weight: 700; }
.sidebar-box { border: 1px solid var(--line); background: rgba(239,234,223,.55); padding: 32px; position: sticky; top: 130px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 20px 0 0; }
.sidebar-box li + li { border-top: 1px solid var(--line); }
.sidebar-box a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; font-family: Fraunces, Georgia, serif; font-size: 1.15rem; }

.contact-layout { display: grid; grid-template-columns: .75fr 1.45fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form label { display: block; }
.contact-form input, .contact-form textarea, .contact-form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 0;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-bottom-color: var(--copper); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice-success { border: 1px solid rgba(25,120,75,.25); background: rgba(25,120,75,.08); color: #195d3d; padding: 16px 18px; border-radius: var(--radius); }

.cta-band { background: var(--ink); color: var(--ivory); }
.cta-band .container { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
.cta-band p { margin-top: 18px; max-width: 560px; color: rgba(248,245,235,.76); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.cta-actions a:not(.btn) { color: rgba(248,245,235,.8); font-weight: 700; }

.site-footer { margin-top: 120px; background: var(--ink); color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.1fr; gap: 48px; padding: 76px 0; }
.footer-logo-box { display: inline-block; background: rgba(248,245,235,.96); padding: 14px; border-radius: var(--radius); }
.footer-logo-box img { max-height: 130px; width: auto; }
.footer-copy { margin-top: 22px; max-width: 520px; color: rgba(248,245,235,.68); }
.footer-title { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(248,245,235,.48); font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.footer-links a, .footer-links li { color: rgba(248,245,235,.8); }
.footer-links a:hover { color: var(--copper); }
.footer-bottom { border-top: 1px solid rgba(248,245,235,.11); padding: 22px 0; color: rgba(248,245,235,.48); font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.screen-reader-text { position: absolute; left: -9999px; }

@media (max-width: 980px) {
  .header-inner { min-height: 78px; }
  .site-logo img, .site-logo .custom-logo { max-height: 60px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 14px 20px 24px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { display: block; padding: 11px 4px; }
  .header-cta { display: none; }
  .grid-3, .grid-4, .feature-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { min-height: 360px; }
  .promise-box, .detail-layout, .contact-layout, .cta-band .container, .footer-grid { grid-template-columns: 1fr; }
  .sidebar-box { position: static; }
  .cta-actions { align-items: flex-start; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero { min-height: 600px; }
  .hero-content { width: min(var(--max), calc(100% - 28px)); padding: 84px 0; }
  .trust-inner { align-items: flex-start; }
  .grid-2, .grid-3, .grid-4, .feature-grid, .stats-grid, .form-grid, .gallery { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(248,245,235,.12); padding: 30px 0; }
  .stat:last-child { border-bottom: 0; }
  .service-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .gallery-card, .gallery-card.wide { grid-column: span 1; aspect-ratio: 4/5; min-height: 360px; }
  .footer-bottom { display: grid; }
}
