/* ═══════════════════════════════════════════════════════
   H&H Mechanical Contractors — Global Stylesheet
   PHP 7.1+ compatible site
═══════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
:root {
  --gold:      #FFC400;
  --gold-h:    #e6b000;
  --green:     #27452D;
  --green-l:   #2e5235;
  --bg:        #F4F4F4;
  --white:     #ffffff;
  --border:    #E0E0DC;
  --text:      #1a1a1a;
  --mid:       #555555;
  --light:     #888888;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.btn-yellow {
  background: var(--gold);
  color: var(--green);
  border-color: var(--gold);
}
.btn-yellow:hover { background: var(--gold-h); border-color: var(--gold-h); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-dark:hover { background: var(--green); color: var(--white); }

/* ══════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--white);
  height: 66px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(0,0,0,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--mid);
  padding: 6px 10px;
  border-radius: 3px;
  transition: color .15s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 1px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px;
  padding: 6px 0;
  display: none;
  z-index: 200;
  /* invisible bridge so mouse can travel from link to menu */
  margin-top: 0;
}
/* Pseudo-element bridge fills the gap between trigger and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--mid);
  transition: background .12s, color .12s;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--green); }

/* Phone link in nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mid);
  padding: 6px 10px;
}
.nav-phone i { color: var(--gold); }
.nav-phone:hover { color: var(--green); }

.header-cta {
  margin-left: 8px;
  padding: 10px 18px;
  font-size: .72rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--green);
  font-size: 1.4rem;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--gold);
  padding: 52px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1;
}
.footer-tagline {
  font-size: .8rem;
  color: var(--green);
  opacity: .68;
  line-height: 1.65;
  max-width: 200px;
}

.footer-col h5 {
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: .82rem;
  color: var(--green);
  opacity: .72;
  margin-bottom: 7px;
  transition: opacity .15s;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(39,69,45,.18);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: .75rem; color: var(--green); opacity: .55; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: .75rem; color: var(--green); opacity: .55; }
.footer-legal a:hover { opacity: 1; }

/* ══════════════════════════════════════
   BODY OFFSET (fixed header)
══════════════════════════════════════ */
body { padding-top: 66px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .main-nav, .nav-phone { display: none; }
  .nav-toggle { display: block; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 20px;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    z-index: 400;
    align-items: flex-start;
  }
  .main-nav.open a { padding: 11px 24px; width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}


/* =====================================================
   SERVICE DETAIL PAGES
===================================================== */
.service-detail-hero{
  position:relative;
  min-height:460px;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  padding:100px 0;
}
.service-detail-hero .hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(31,58,42,.88) 0%, rgba(31,58,42,.74) 40%, rgba(31,58,42,.22) 68%, rgba(31,58,42,.06) 100%);
}
.service-detail-hero .hero-content{
  position:relative;
  z-index:2;
  max-width:760px;
  color:#fff;
  margin-left:calc((100vw - 1200px) / 2);
}
.service-detail-hero h1{
  font-size:54px;
  line-height:1.04;
  margin-bottom:14px;
}
.service-detail-hero p{
  font-size:15px;
  line-height:1.7;
  color:rgba(255,255,255,.92);
  margin-bottom:26px;
}
.service-detail-hero .hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.service-detail-hero .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
}
.service-detail-wrap{
  background:#f4f5f4;
  padding:70px 0 80px;
  position:relative;
  overflow:hidden;
}
.service-detail-wrap::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-70px;
  height:240px;
  background:radial-gradient(120% 120% at 50% 0%, rgba(38,71,51,.10) 0%, rgba(38,71,51,0) 72%);
  pointer-events:none;
}
.service-detail-grid{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(280px, .95fr);
  gap:28px;
  align-items:start;
}
.service-main,
.service-side-card{
  background:#fff;
  border:1px solid #e4e4e4;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
}
.service-main{
  padding:34px 34px 28px;
}
.service-main .intro{
  font-size:15px;
  color:#4b5563;
  line-height:1.75;
  margin-bottom:24px;
}
.service-section{
  padding:22px 0;
  border-top:1px solid #eef0ef;
}
.service-section:first-of-type{
  border-top:none;
  padding-top:0;
}
.service-section h2{
  font-size:30px;
  line-height:1.15;
  color:var(--green-main);
  margin-bottom:12px;
}
.service-section p{
  font-size:14px;
  color:#4b5563;
  line-height:1.75;
}
.service-list{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:grid;
  gap:10px;
}
.service-list li{
  position:relative;
  padding-left:22px;
  font-size:14px;
  color:#374151;
  line-height:1.6;
}
.service-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--yellow-main);
  font-weight:800;
}
.service-side{
  display:grid;
  gap:20px;
}
.service-side-card{
  padding:24px 22px;
}
.service-side-card h3{
  font-size:20px;
  line-height:1.2;
  color:var(--green-main);
  margin-bottom:12px;
}
.service-side-card p,
.service-side-card li{
  font-size:13px;
  color:#4b5563;
  line-height:1.7;
}
.service-side-card ul{
  list-style:none;
  padding:0;
  margin:0;
}
.service-side-card .btn{
  margin-top:16px;
}
.service-faq{
  margin-top:28px;
}
.service-faq h2{
  font-size:30px;
  color:var(--green-main);
  margin-bottom:14px;
}
.service-faq .faq-item{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  margin-bottom:12px;
  overflow:hidden;
}
.service-faq .faq-item button{
  width:100%;
  background:none;
  border:none;
  text-align:left;
  padding:18px 20px;
  font-weight:700;
  color:var(--green-main);
  cursor:pointer;
  position:relative;
  font-size:15px;
}
.service-faq .faq-item button::after{
  content:"⌄";
  position:absolute;
  right:18px;
  top:18px;
  color:var(--yellow-main);
}
.service-faq .faq-content{
  display:none;
  padding:0 20px 18px;
  color:#6b7280;
  font-size:14px;
  line-height:1.7;
}
.service-faq .faq-item.open .faq-content{
  display:block;
}
.service-cta-band{
  background:var(--green-main);
  padding:72px 0;
  color:#fff;
}
.service-cta-band h2{
  font-size:34px;
  margin-bottom:10px;
}
.service-cta-band p{
  font-size:14px;
  color:rgba(255,255,255,.9);
  margin-bottom:22px;
}
.service-keywords{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.service-keywords span{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:#eef3ef;
  color:var(--green-main);
  font-size:12px;
  font-weight:700;
}
@media (max-width:1240px){
  .service-detail-hero .hero-content{ margin-left:5%; }
}
@media (max-width:992px){
  .service-detail-grid{ grid-template-columns:1fr; }
}
@media (max-width:768px){
  .service-detail-hero .hero-content{ margin-left:0; }
  .service-detail-hero h1{ font-size:40px; }
  .service-section h2, .service-faq h2{ font-size:26px; }
}
