/*
Theme Name: Ideal Renovations
Theme URI: https://example.com/ideal-renovations
Author: Ideal Renovations Connecticut
Description: A minimal, fast, mobile-first lead generation theme for Ideal Renovations Connecticut. Quote form with lead inbox, sticky mobile call bar, services, projects, before and after photos, service areas, owner section, reviews and local-business schema. Edit logo, colors and content in Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ideal-renovations
*/

:root {
  --accent: #b4541a;
  --accent-text: #ffffff;
  --header-bg: #ffffff;
  --header-text: #141414;
  --dark: #14263d;
  --logo-h: 52px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ink: #141414;
  --muted: #5d5d5d;
  --line: #e4e4e0;
  --soft: #f6f6f3;
  --white: #fff;
  --radius: 6px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.screen-reader-text, .skip-link {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--soft { background: var(--soft); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head p { color: var(--muted); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(.92); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-text);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; color: var(--header-text); }
.brand .custom-logo { max-height: var(--logo-h); width: auto; }
.nav-toggle {
  width: 46px; height: 46px; border: 1px solid var(--line); background: var(--header-bg);
  border-radius: var(--radius); cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--header-text); content: "";
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 14px 0; text-decoration: none; font-weight: 600; color: var(--header-text); border-bottom: 1px solid var(--line); }
.header-cta { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; padding: 0; background: none; margin-left: auto; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav a { padding: 6px 0; border: 0; font-size: .95rem; }
  .site-nav a:hover { color: var(--accent); }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 20px; margin-left: 28px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; background: #1b1b1b center / cover no-repeat;
  padding: 56px 0 48px; isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.8), rgba(10,10,10,.35)); z-index: -1; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero__lead { font-size: 1.15rem; max-width: 520px; opacity: .92; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
  filter: brightness(1.5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 900px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__actions .btn--ghost { color: #fff; }
@media (min-width: 900px) {
  .hero { padding: 96px 0; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
}

/* Quote form */
.quote-card { background: #fff; color: var(--ink); border-radius: 10px; padding: 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.quote-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.quote-card__sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff; border: 1px solid #c9c9c4; border-radius: var(--radius);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.notice--ok { background: #e8f5e9; color: #1b5e20; }
.notice--err { background: #fdecea; color: #8a1c13; }
.fineprint { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Stats */
.stats { background: var(--dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stat { padding: 26px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { font-size: .85rem; opacity: .75; }
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } .stat { border: 0; } }

/* Services */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.card__num { color: var(--accent); font-weight: 800; font-size: .85rem; letter-spacing: .1em; margin-bottom: 14px; display: block; }
.card p { color: var(--muted); margin: 0; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Projects */
.grid-projects { display: grid; gap: 16px; }
.project { position: relative; border-radius: 10px; overflow: hidden; background: var(--soft); }
.project a { text-decoration: none; display: block; }
.project img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.project:hover img { transform: scale(1.03); }
.project__title { padding: 14px 16px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
@media (min-width: 640px) { .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-projects { grid-template-columns: repeat(3, 1fr); } }

/* Process */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { padding-top: 18px; border-top: 3px solid var(--accent); }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* Testimonials */
.quotes { display: grid; gap: 16px; }
.quote { background: #fff; border-radius: 10px; padding: 28px; border: 1px solid var(--line); }
.quote p { font-size: 1.05rem; }
.quote footer { font-weight: 700; font-size: .9rem; color: var(--muted); }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* Contact / CTA */
.contact { background: var(--dark); color: #fff; }
.contact__grid { display: grid; gap: 36px; }
.contact__info a { text-decoration: none; font-weight: 700; font-size: 1.4rem; display: block; margin-bottom: 6px; }
.contact__info p { opacity: .8; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* Intro / vision */
.vision { text-align: center; }
.vision .section__head { margin: 0 auto; max-width: 720px; }
.vision p { font-size: 1.15rem; color: var(--muted); }

/* Before / after */
.ba { display: grid; gap: 14px; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.ba figcaption {
  position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,.72); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
@media (min-width: 700px) { .ba { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Service area */
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .95rem; }

/* Team */
.team { display: grid; gap: 32px; align-items: center; }
.team__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.team__role { color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.team p { color: var(--muted); }
@media (min-width: 820px) { .team { grid-template-columns: .8fr 1.2fr; gap: 72px; } .team--solo { grid-template-columns: 1fr; max-width: 680px; } }

/* Certifications */
.certs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* Footer */
.site-footer { background: #0c0c0c; color: rgba(255,255,255,.7); padding: 36px 0; font-size: .9rem; }
.site-footer__inner { display: flex; flex-direction: column; gap: 14px; }
.site-footer a { color: #fff; }
@media (min-width: 760px) { .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Sticky mobile call bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; }
.mobile-bar a:first-child { background: #fff; color: var(--ink); }
.mobile-bar a:last-child { background: var(--accent); color: var(--accent-text); }
body { padding-bottom: 56px; }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Content pages */
.page-head { background: var(--soft); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0; }
.entry { max-width: 740px; padding: 48px 20px 64px; margin: 0 auto; }
.entry img { border-radius: var(--radius); }
.entry a { color: var(--accent); }
.entry .alignwide { max-width: var(--wrap); }
.post-list { display: grid; gap: 24px; }
.post-list article { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-list h2 { font-size: 1.4rem; }
.post-list h2 a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
