/* Miles Chimney Sweep — global design system. ONE file for the whole site.
   MASTER DESIGN = the ORIGINAL Miles homepage: Roboto, orange #f7941e, brown #8b5e3c,
   photo heroes with warm-brown overlay, white cards with images, brown #51331f footer,
   orange one-line copyright bar. */

:root {
  --orange: #f7941e;
  --orange-dark: #db750c;
  --brown: #8b5e3c;
  --dark: #4c321f;
  --footer-brown: #51331f;
  --white: #ffffff;
  --text: #555555;
  --heading: #4c321f;
  --light: #f4f4f4;
  --border: #e3ddd8;
  --shadow: 0 10px 30px rgba(66, 43, 25, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: "Roboto", Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
h2 { margin: 0; color: var(--brown); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 700; }
h3 { color: var(--dark); }
.eyebrow { margin: 0 0 8px; color: var(--orange); font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

/* HEADER — the homepage header */
.site-header { position: relative; z-index: 20; background: var(--white); box-shadow: 0 2px 14px rgba(58, 35, 19, 0.08); }
.header-inner { min-height: 138px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo img { display: block; width: 165px; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 32px; }
.phone { color: var(--orange); font-size: 28px; font-weight: 700; }
.phone:hover { color: var(--orange-dark); }
.quote-button { display: inline-flex; min-height: 48px; padding: 12px 30px; align-items: center; justify-content: center; border-radius: 999px; background: var(--orange); color: var(--white); font-size: 15px; font-weight: 700; transition: background-color 0.2s ease; }
.quote-button:hover, .quote-button:focus { background: var(--orange-dark); }
.main-navigation { display: flex; align-items: center; gap: 33px; font-size: 15px; font-weight: 700; }
.main-navigation a { color: var(--brown); }
.main-navigation a:hover, .main-navigation a:focus, .main-navigation .active { color: var(--orange); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--brown); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* PAGE HERO — the homepage-style photo hero with warm-brown overlay */
.page-hero { position: relative; min-height: 430px; display: flex; align-items: center; color: var(--white); background: url("https://mileschimneysweep.com/wp-content/uploads/2021/07/main-3.jpg") center 40% / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(49, 29, 16, 0.82), rgba(49, 29, 16, 0.38) 58%, rgba(49, 29, 16, 0.08)); }
.hero-content { position: relative; z-index: 1; padding: 82px 0; }
.page-hero h1 { max-width: 820px; margin: 5px 0 18px; color: var(--white); font-size: clamp(42px, 5.4vw, 68px); line-height: 1.03; font-weight: 800; }
.page-hero .hero-sub { max-width: 720px; margin: 0; font-size: 20px; }
.page-hero.compact { min-height: 360px; }
.page-hero.compact .hero-content { padding: 62px 0; }
.page-hero.compact h1 { font-size: clamp(36px, 4.8vw, 56px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumb { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #f3d9be; }
.crumb a { color: #f3d9be; }
.crumb a:hover { color: var(--orange); }

/* BUTTONS — homepage pill buttons */
.primary-button, .secondary-button, .white-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 30px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.primary-button { background: var(--orange); color: var(--white); }
.primary-button:hover, .primary-button:focus { background: var(--orange-dark); }
.secondary-button { border: 2px solid var(--white); color: var(--white); }
.secondary-button:hover, .secondary-button:focus { background: var(--white); color: var(--dark); }
.white-button { background: var(--white); color: var(--dark); }
.outline-button { border: 2px solid var(--white); color: var(--white); }

/* SECTION HEADINGS — homepage style with orange emphasis + rule */
.section-heading { max-width: 760px; margin: 0 auto 45px; text-align: center; }
.section-heading h2 span { color: var(--orange); }
.orange-line, .orange-rule { width: 80px; height: 4px; margin: 18px auto 0; background: var(--orange); }
.section-heading p { margin: 14px 0 0; color: var(--text); }

/* INTRO SPLIT */
.intro-section { padding: 80px 0; background: var(--white); }
.introduction-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.introduction-grid p:last-child { margin: 0; color: var(--text); font-size: 18px; }

/* SERVICES DIRECTORY */
.services-directory { padding: 76px 0 90px; background: var(--light); }
.service-category { padding: 38px 0; border-bottom: 1px solid var(--border); }
.service-category:last-child { padding-bottom: 0; border-bottom: 0; }
.category-heading { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 42px; align-items: start; margin-bottom: 24px; }
.category-heading h2 { font-size: 29px; }
.category-heading p { margin: 0; color: var(--text); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.service-card { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 14px 16px; background: var(--white); border-bottom: 4px solid var(--orange); box-shadow: var(--shadow); font-weight: 700; color: var(--dark); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover, .service-card:focus { transform: translateY(-3px); box-shadow: 0 15px 38px rgba(66, 43, 25, 0.16); }
.service-number { color: var(--orange); font-size: 13px; font-weight: 800; }

/* CARDS (blog posts, reviews, why-us) — homepage card style */
.blog-list { padding: 76px 0 90px; background: var(--light); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { overflow: hidden; background: var(--white); border-bottom: 4px solid var(--orange); box-shadow: var(--shadow); transition: 0.25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 38px rgba(66, 43, 25, 0.16); }
.post-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.35s; }
.post-card:hover .post-image img { transform: scale(1.035); }
.post-body { padding: 25px 25px 28px; }
.post-meta { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.post-card h3 { margin: 10px 0 12px; font-size: 25px; line-height: 1.2; color: var(--dark); }
.post-card p { margin: 0 0 18px; font-size: 16px; color: var(--text); }
.read-more { color: var(--orange); font-size: 13px; font-weight: 800; text-transform: uppercase; }

/* ARTICLE / LONG-FORM */
.article-content { max-width: 780px; margin: 0 auto; padding: 60px 24px 40px; }
.article-content h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 36px 0 14px; }
.article-content p, .article-content li { font-size: 17px; }
.article-content p { margin: 0 0 18px; }
.article-content ul { margin: 0 0 18px 24px; padding: 0; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--orange); font-weight: 700; }
.article-content .updated { color: var(--text); opacity: 0.75; font-size: 14px; }
.callout { background: var(--light); border-left: 5px solid var(--orange); padding: 20px 24px; margin: 26px 0; }
.callout b { color: var(--dark); }
.related-links { max-width: 780px; margin: 0 auto; padding: 0 24px 44px; color: var(--text); font-size: 15px; }
.related-links a { color: var(--brown); font-weight: 700; }
.related-links a:hover { color: var(--orange); }

/* CTA BAND — homepage orange CTA */
.main-cta { padding: 60px 0; background: var(--orange); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.main-cta .eyebrow { color: var(--dark); }
.main-cta h2 { color: var(--white); }
.main-cta p { margin: 10px 0 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* RATING STRIP — homepage "RATED 5.0 BY LOCAL HOMEOWNERS" */
.review-bar { padding: 70px 20px; background: var(--white); color: var(--brown); text-align: center; font-size: 34px; font-weight: 700; }
.stars { color: #ffc21a; letter-spacing: 3px; }
.highlight { color: var(--orange); }

/* THANK YOU */
.thankyou-wrap { max-width: 640px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.tick { width: 82px; height: 82px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 42px; line-height: 82px; margin: 0 auto 24px; }
.thankyou-wrap h1 { color: var(--brown); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin: 0 0 14px; font-weight: 700; }
.thankyou-wrap p { font-size: 18px; color: var(--text); margin: 0 0 26px; }
.thankyou-wrap .secondary-button { border-color: var(--brown); color: var(--brown); }
.thankyou-wrap .secondary-button:hover { background: var(--brown); color: var(--white); }

/* FOOTER — the homepage footer */
.site-footer { color: var(--white); background: var(--footer-brown); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 0.75fr; gap: 55px; align-items: center; padding-top: 58px; padding-bottom: 58px; text-align: center; }
.footer-logo img { width: 205px; margin: 0 auto; }
.site-footer h3 { margin: 0 0 12px; color: var(--white); font-size: 21px; }
.site-footer p { margin: 8px 0; }
.site-footer strong, .site-footer a, .footer-stars { color: var(--orange); }
.site-footer a:hover, .site-footer a:focus { color: var(--white); }
.footer-stars { font-size: 22px; letter-spacing: 3px; }
.footer-phone { font-size: 25px; font-weight: 700; }
.copyright { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 10px; color: var(--white); background: var(--orange); font-size: clamp(10px, 2.2vw, 15px); line-height: 1.4; text-align: center; white-space: nowrap; }
.copyright a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.copyright a:hover, .copyright a:focus { color: var(--dark); }
.footer-divider { opacity: 0.85; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner { min-height: 110px; }
  .site-logo img { width: 130px; }
  .phone { font-size: 21px; }
  .main-navigation { gap: 17px; }
  .main-navigation a { font-size: 12px; }
  .services-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1140px); }
  .header-inner { min-height: 95px; padding: 12px 0; }
  .header-actions { gap: 12px; }
  .phone { font-size: 17px; }
  .quote-button { min-height: 42px; padding: 10px 17px; font-size: 12px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { display: none; }
  body.nav-open .main-navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 8px 0; font-size: 14px; z-index: 30; }
  body.nav-open .main-navigation a { display: block; width: 100%; padding: 12px 24px; }
  .page-hero { min-height: 390px; }
  .hero-content { padding: 65px 0; }
  .page-hero h1 { font-size: 39px; }
  .page-hero .hero-sub { font-size: 17px; }
  .intro-section { padding: 55px 0; }
  .introduction-grid, .category-heading { grid-template-columns: 1fr; gap: 22px; }
  .blog-list, .services-directory { padding: 55px 0; }
  .services-grid, .post-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .review-bar { padding: 48px 0; font-size: 24px; }
  .footer-grid { gap: 28px; padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 460px) {
  .header-actions { gap: 8px; }
  .phone { font-size: 13px; }
  .quote-button { padding: 7px 10px; font-size: 10px; }
  .copyright { gap: 4px; padding-inline: 4px; font-size: 9px; }
}

/* HOMEPAGE HERO — staggered headline + right badges (the original homepage hero) */
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.5fr; gap: 28px; align-items: center; }
.home-head { margin: 0; }
.home-head .l1 { display: block; color: var(--orange); font-size: clamp(52px, 7vw, 80px); font-weight: 800; line-height: 0.95; letter-spacing: 1px; }
.home-head .l2 { display: block; color: var(--white); font-size: clamp(32px, 4.5vw, 55px); font-weight: 800; line-height: 1.08; }
.home-head .l4 { display: block; color: var(--orange); font-size: clamp(19px, 2.6vw, 31px); font-weight: 800; margin-top: 8px; letter-spacing: 0.03em; }
.hero-badges { display: flex; flex-direction: column; gap: 22px; align-items: flex-end; text-align: right; }
.badge-item { color: var(--white); border-right: 4px solid var(--white); padding-right: 16px; }
.badge-num { display: block; font-size: 36px; font-weight: 800; color: var(--orange); line-height: 1.05; }
.badge-txt { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: row; justify-content: flex-start; gap: 18px; margin-top: 10px; }
  .badge-item { border-right: 0; border-left: 4px solid var(--white); padding: 0 0 0 12px; text-align: left; }
  .badge-num { font-size: 26px; }
  .badge-txt { font-size: 10px; }
}

/* GOOGLE REVIEWS CAROUSEL (shared component) */
.g-reviews { padding: 70px 0 80px; background: var(--light); overflow: hidden; }
.g-badge-row { display: flex; justify-content: center; margin-bottom: 36px; }
.g-badge { display: inline-flex; align-items: center; gap: 14px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 26px; }
.g-badge .g-logo { width: 38px; height: 38px; }
.g-badge-txt { display: flex; flex-direction: column; line-height: 1.25; }
.g-badge-title { font-size: 17px; font-weight: 700; color: #202124; }
.g-badge-score { font-size: 18px; font-weight: 700; color: #202124; }
.g-badge-count { font-size: 12.5px; color: #5f6368; }
.g-stars { color: #fbbc04; letter-spacing: 2px; }
.g-marquee { position: relative; }
.g-marquee::before, .g-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.g-marquee::before { left: 0; background: linear-gradient(90deg, var(--light), transparent); }
.g-marquee::after { right: 0; background: linear-gradient(270deg, var(--light), transparent); }
.g-track { display: flex; gap: 20px; width: max-content; animation: g-roll 60s linear infinite; }
.g-marquee:hover .g-track { animation-play-state: paused; }
@keyframes g-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.g-card { width: 340px; flex: 0 0 auto; background: var(--white); border: 1px solid #e8eaed; border-radius: 12px; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12); padding: 18px 20px; }
.g-head { display: flex; align-items: center; gap: 11px; }
.g-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.g-who { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.g-name { font-size: 14.5px; font-weight: 500; color: #202124; }
.g-when { font-size: 12.5px; color: #5f6368; }
.g-head .g-logo { flex: 0 0 auto; }
.g-card .g-stars { font-size: 15px; margin: 9px 0 6px; }
.g-text { margin: 0; font-size: 14px; line-height: 1.55; color: #3c4043; }
@media (max-width: 760px) {
  .g-card { width: 280px; }
  .g-track { animation-duration: 45s; }
  .g-badge { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-track { animation: none; }
  .g-marquee { overflow-x: auto; }
}

/* YELLOW INSIGHT BOX (shared article component — Matt's spec) */
.yellow-insight {
    margin: 24px 0;
    padding: 18px 20px;
    background: #fff3a6;
    border-left: 5px solid #f7941e;
    color: #2b241f;
}
.yellow-insight strong {
    display: block;
    margin-bottom: 5px;
    color: #4c321f;
}
.article-figure { margin: 26px 0; }
.article-figure img { border-radius: 10px; box-shadow: var(--shadow); }
.article-figure figcaption { font-size: 13px; color: var(--text); opacity: .8; margin-top: 8px; }
.faq-block h3 { font-size: 19px; margin: 22px 0 6px; }
.faq-block p { margin: 0 0 14px; }
