/* Roof Repair Plano Texas — shared.css */
:root{
  --green:#2e7d32;--green2:#1b5e20;--accent:#85ce19;
  --dark:#0c0c0c;--text:#1a1a1a;--muted:#666;--border:#e0e0e0;
  --max:1200px;--radius:8px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;font-size:16px;line-height:1.65;color:var(--text);overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* SKIP LINK */
.skip-link{position:absolute;top:-40px;left:0;background:var(--green2);color:#fff;padding:8px 16px;z-index:9999;font-size:14px;font-weight:700;border-radius:0 0 4px 0}
.skip-link:focus{top:0}

/* TOPBAR */
.topbar{background:#1a1a1a;padding:7px 0;font-size:13px}
.topbar .inner{max-width:var(--max);margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between}
.topbar-left{display:flex;gap:16px}
.topbar-left a{color:#ccc;display:flex;align-items:center;gap:5px}
.topbar-left a:hover{color:#fff}
.topbar-right{display:flex;gap:14px}
.topbar-right a{color:#aaa;font-size:12px}
.topbar-right a:hover{color:#fff}
@media(max-width:600px){.topbar-left a:nth-child(2){display:none}.topbar-right{display:none}}

/* HEADER */
header{background:#fff;border-bottom:2px solid var(--green);position:sticky;top:0;z-index:200;box-shadow:0 2px 8px rgba(0,0,0,.06)}
header .wrap{max-width:var(--max);margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{font-size:17px;font-weight:800;color:var(--green2);line-height:1.2}
.logo span{display:block;font-size:11px;font-weight:400;color:var(--muted)}
nav a{font-size:14px;font-weight:500;color:var(--text);padding:6px 10px;border-radius:4px;transition:color .15s}
nav a:hover{color:var(--green)}
.nav-item{position:relative;display:inline-block}
.dropdown{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 8px 24px rgba(0,0,0,.1);min-width:220px;padding:8px 0;z-index:300}
.nav-item:hover .dropdown{display:block}
.dropdown a{display:block;padding:8px 16px;font-size:13px;color:var(--text);border-bottom:.5px solid #f5f5f5}
.dropdown a:last-child{border-bottom:none}
.dropdown a:hover{background:#f0f7f0;color:var(--green)}
.dropdown-section{display:block;padding:6px 16px 4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.btn-nav{background:var(--green);color:#fff!important;padding:8px 16px!important;border-radius:20px;font-weight:600;font-size:13px}
.btn-nav:hover{background:var(--green2)!important}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;background:none;border:none}
.hamburger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:.3s}
@media(max-width:900px){
  nav{display:none}
  nav.open{display:flex;flex-direction:column;position:fixed;top:64px;left:0;right:0;background:#fff;border-bottom:2px solid var(--green);padding:12px 16px;gap:0;z-index:199;box-shadow:0 8px 20px rgba(0,0,0,.1);max-height:calc(100vh - 64px);overflow-y:auto}
  nav.open a{padding:10px 12px;border-bottom:.5px solid #f0f0f0;font-size:15px;display:block}
  nav.open .btn-nav{margin-top:8px;border-radius:4px!important;text-align:center}
  nav.open .nav-item{width:100%}
  nav.open .dropdown{display:none;position:static;box-shadow:none;border:none;border-left:3px solid var(--green);margin:0 0 0 12px}
  nav.open .dropdown.open{display:block}
  .hamburger{display:flex}
}

/* PAGE HERO */
.page-hero{position:relative;background:var(--dark);overflow:hidden;min-height:240px}
.page-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.35}
.page-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.7) 0%,rgba(0,0,0,.2) 100%)}
.page-hero .wrap{position:relative;z-index:2;max-width:var(--max);margin:0 auto;padding:48px 20px 40px}
.breadcrumb{font-size:12px;color:rgba(255,255,255,.6);margin-bottom:12px}
.breadcrumb a{color:rgba(255,255,255,.6)}
.breadcrumb a:hover{color:#fff}
.page-hero h1{font-size:32px;font-weight:800;color:#fff;line-height:1.15;max-width:700px}
.page-hero-sub{font-size:16px;color:rgba(255,255,255,.8);margin-top:12px;max-width:600px}
.page-hero-btns{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}
.btn-hero-call{display:inline-flex;align-items:center;gap:8px;background:var(--green);color:#fff;font-size:16px;font-weight:700;padding:12px 24px;border-radius:6px;text-decoration:none}
.btn-hero-call:hover{background:var(--green2)}
.btn-hero-ghost{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#fff;font-size:15px;font-weight:600;padding:12px 24px;border-radius:6px;border:2px solid rgba(255,255,255,.5)}
.btn-hero-ghost:hover{border-color:#fff;background:rgba(255,255,255,.1)}
@media(max-width:600px){.page-hero h1{font-size:22px}.page-hero-btns{flex-direction:column}.btn-hero-call,.btn-hero-ghost{justify-content:center}}

/* TRUST BAR */
.trust-bar{background:#fff;border-bottom:1px solid var(--border);padding:0}
.trust-bar .inner{max-width:var(--max);margin:0 auto;padding:0 20px;display:flex;justify-content:space-around;flex-wrap:wrap}
.trust-item{display:flex;align-items:center;gap:8px;padding:14px 12px;font-size:13px;font-weight:500}
.trust-item svg{color:var(--green);flex-shrink:0}
@media(max-width:600px){.trust-bar .inner{justify-content:flex-start;gap:0}.trust-item{width:50%;padding:10px 8px;font-size:12px}}

/* LAYOUT */
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.section{padding:64px 0}
.section--white{background:#fff}
.section--gray{background:#f8f8f8}
.section--dark{background:var(--dark)}
.section-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--green);margin-bottom:8px}
.section-title{font-size:28px;font-weight:800;color:var(--text);margin-bottom:12px;line-height:1.2}
.section-sub{font-size:16px;color:var(--muted);margin-bottom:32px;max-width:600px}

/* TWO COL */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
@media(max-width:900px){.two-col{grid-template-columns:1fr;gap:32px}}

/* THREE COL */
.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:900px){.three-col{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.three-col{grid-template-columns:1fr}}

/* INNER PAGE LAYOUT */
.inner-layout{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start}
@media(max-width:900px){.inner-layout{grid-template-columns:1fr}}

/* CONTENT BODY */
.content-body h2{font-size:24px;font-weight:800;color:var(--text);margin:36px 0 14px;line-height:1.2}
.content-body h2:first-child{margin-top:0}
.content-body h3{font-size:19px;font-weight:700;color:var(--text);margin:28px 0 10px}
.content-body h4{font-size:16px;font-weight:700;color:var(--text);margin:20px 0 8px}
.content-body p{margin-bottom:16px;color:#444;line-height:1.7}
.content-body ul,.content-body ol{margin:0 0 16px 20px}
.content-body li{margin-bottom:6px;color:#444;line-height:1.65}
.content-body strong{color:var(--text)}
.content-body a{color:var(--green2);text-decoration:underline;text-underline-offset:2px;font-weight:500}
.content-body a:hover{color:var(--green)}

/* IMAGES */
.img-hero{width:100%;height:300px;object-fit:cover;border-radius:var(--radius);display:block;margin-bottom:32px}
.img-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}
.img-pair img{width:100%;height:200px;object-fit:cover;border-radius:var(--radius)}
.img-badge{position:relative;border-radius:var(--radius);overflow:hidden;margin:24px 0}
.img-badge img{width:100%;height:260px;object-fit:cover;display:block}
.img-badge-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.75));padding:20px;color:#fff;font-size:14px;font-weight:600}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}
.feature-card{border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.feature-card img{width:100%;height:160px;object-fit:cover}
.feature-card-body{padding:14px 16px}
.feature-card-body h3{font-size:15px;font-weight:700;color:var(--text);margin-bottom:6px}
.feature-card-body p{font-size:13px;color:var(--muted);line-height:1.55;margin:0}
@media(max-width:900px){.feature-grid{grid-template-columns:1fr 1fr}.img-pair{grid-template-columns:1fr}}
@media(max-width:600px){.feature-grid{grid-template-columns:1fr}.img-hero{height:220px}.img-badge img{height:200px}}

/* SIDEBAR */
.sidebar{display:flex;flex-direction:column;gap:20px}
.sidebar-box{border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.sidebar-box-header{background:var(--green);padding:14px 18px}
.sidebar-box-header h3{font-size:15px;font-weight:700;color:#fff;margin:0}
.sidebar-box-body{padding:20px 18px;background:#fff}
.sidebar-box-body ul{list-style:none}
.sidebar-box-body ul li{padding:5px 0;font-size:14px;border-bottom:.5px solid #f5f5f5}
.sidebar-box-body ul li:last-child{border:none}
.sidebar-box-body ul li a{color:var(--green2);font-weight:500}
.sidebar-box-body ul li a:hover{text-decoration:underline}
.call-box{background:var(--dark);border-radius:var(--radius);padding:28px 20px;text-align:center;border-bottom:3px solid var(--green)}
.call-box h3{font-size:17px;font-weight:700;color:#fff;margin-bottom:10px}
.call-box p{font-size:13px;color:rgba(255,255,255,.75);margin-bottom:20px;line-height:1.6}
.call-box-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--green);color:#fff;font-size:22px;font-weight:800;padding:14px 20px;border-radius:6px;text-decoration:none;width:100%}
.call-box-btn:hover{background:var(--green2)}
.call-box-list{list-style:none;margin-top:16px;text-align:left}
.call-box-list li{font-size:13px;color:rgba(255,255,255,.8);padding:4px 0;display:flex;align-items:center;gap:8px}
.call-box-list li::before{content:"✔";color:var(--accent);font-weight:700;flex-shrink:0}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:16px;margin-top:24px}
.faq-item{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.faq-q{font-size:15px;font-weight:700;color:var(--text);padding:16px 20px;background:#f8f8f8;margin:0}
.faq-a{font-size:14px;color:#444;padding:16px 20px;line-height:1.7;margin:0}
.faq-a a{color:var(--green2);text-decoration:underline}

/* RELATED SERVICES */
.related-box{background:#f0f7f0;border-left:4px solid var(--green);border-radius:0 var(--radius) var(--radius) 0;padding:20px 24px;margin:32px 0}
.related-box h2{font-size:13px;font-weight:700;color:var(--green2);margin-bottom:14px;text-transform:uppercase;letter-spacing:.06em}
.related-box ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.related-box ul li a{display:inline-block;padding:6px 14px;background:#fff;border:1.5px solid var(--green);border-radius:20px;font-size:13px;font-weight:600;color:var(--green2);text-decoration:none;transition:all .2s}
.related-box ul li a:hover{background:var(--green);color:#fff}

/* CTA BANNER */
.cta-banner{background:linear-gradient(135deg,#1b5e20 0%,#2e7d32 100%);padding:56px 0}
.cta-banner .wrap{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center}
.cta-banner h2{font-size:26px;font-weight:800;color:#fff;margin-bottom:8px}
.cta-banner p{font-size:15px;color:rgba(255,255,255,.85);margin:0}
.cta-btns{display:flex;gap:12px;flex-wrap:wrap}
.btn-white{background:#fff;color:var(--green2);font-size:15px;font-weight:700;padding:14px 28px;border-radius:6px;text-decoration:none;white-space:nowrap}
.btn-white:hover{background:#f0f0f0}
.btn-outline-white{background:transparent;color:#fff;font-size:15px;font-weight:600;padding:13px 24px;border-radius:6px;border:2px solid rgba(255,255,255,.6);text-decoration:none;white-space:nowrap}
.btn-outline-white:hover{border-color:#fff;background:rgba(255,255,255,.1)}
@media(max-width:768px){.cta-banner .wrap{grid-template-columns:1fr}.cta-btns{flex-direction:column}.btn-white,.btn-outline-white{text-align:center}}

/* FOOTER */
footer{background:#0f0f0f;padding:48px 0 0}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding-bottom:40px}
.footer-logo{font-size:16px;font-weight:800;color:#fff;margin-bottom:10px}
.footer-about{font-size:13px;color:rgba(255,255,255,.6);line-height:1.65;margin-bottom:16px}
.footer-contact{font-size:13px;color:rgba(255,255,255,.75);display:flex;flex-direction:column;gap:6px}
.footer-contact a{color:var(--accent);font-weight:600}
.footer-col-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--accent);margin-bottom:14px}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:7px}
.footer-links li a{font-size:13px;color:rgba(255,255,255,.65);transition:color .15s}
.footer-links li a:hover{color:#fff;text-decoration:underline}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:16px 0;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:rgba(255,255,255,.4)}
.footer-bottom a{color:rgba(255,255,255,.4)}
.footer-bottom a:hover{color:rgba(255,255,255,.7)}
@media(max-width:900px){.footer-top{grid-template-columns:1fr 1fr;gap:24px}}
@media(max-width:600px){.footer-top{grid-template-columns:1fr}}

/* STICKY CALL */
.sticky-call{display:none;position:fixed;bottom:0;left:0;right:0;background:var(--green);z-index:400;padding:0}
.sticky-call a{display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font-size:16px;font-weight:700;padding:14px;text-decoration:none}
@media(max-width:900px){.sticky-call{display:block}body{padding-bottom:52px}}

/* FOCUS */
a:focus-visible,button:focus-visible{outline:3px solid var(--green);outline-offset:3px;border-radius:2px}

/* PROJECTS GRID */
.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.project-card{background:#f8f8f8;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.project-card img{width:100%;height:180px;object-fit:cover}
.project-card-body{padding:16px}
.project-card-body h3{font-size:15px;font-weight:700;color:var(--text);margin-bottom:6px}
.project-card-body p{font-size:13px;color:var(--muted);margin:0}
@media(max-width:900px){.projects-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.projects-grid{grid-template-columns:1fr}}
