/* ============================================================
   HAMMOND PAINTING — GLOBAL STYLESHEET
   Font: Playfair Display (headings) + Inter (body)
   Palette: Deep Navy | Fresh White | Warm Gold | Slate Gray
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:   #1A2A4A;
  --navy-d: #0F1C33;
  --gold:   #C9922A;
  --gold-l: #E8B04A;
  --white:  #FFFFFF;
  --off:    #F7F5F1;
  --slate:  #5A6475;
  --light:  #E8EBF0;
  --text:   #1E2530;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(26,42,74,0.10);
  --shadow-lg: 0 6px 30px rgba(26,42,74,0.15);
  --transition: 0.2s ease;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-l); }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 0.6rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--off); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; display: block; }
.section-intro { max-width: 680px; color: var(--slate); margin-bottom: 2.5rem; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; cursor: pointer; border: none; transition: all var(--transition); text-align: center; }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-l); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

/* ── PHONE LINK ─────────────────────────────────────────── */
.phone-link { color: var(--gold); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.phone-link:hover { color: var(--gold-l); }
.phone-link--white { color: var(--white); }
.phone-link--white:hover { color: var(--gold-l); }

/* ── HEADER / NAV ───────────────────────────────────────── */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.2rem; color: var(--white); letter-spacing: -0.01em; line-height: 1.1; }
.site-logo span { color: var(--gold); }
.site-logo:hover { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > button {
  color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.88rem;
  padding: 8px 13px; border-radius: var(--radius);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li > button:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-arrow { font-size: 0.65rem; margin-top: 1px; }

.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; z-index: 200; border-top: 3px solid var(--gold); padding: 8px 0; padding-top: 14px; margin-top: 0; }
.dropdown a { display: block; padding: 10px 18px; color: var(--text); font-size: 0.88rem; font-weight: 500; transition: background var(--transition); }
.dropdown a:hover { background: var(--off); color: var(--navy); }
.main-nav > li:hover .dropdown,
.main-nav > li:focus-within .dropdown { display: block; }
/* Invisible bridge prevents gap from closing dropdown on mouse travel */
.main-nav > li > button::after,
.main-nav > li > a::after { content: ''; position: absolute; bottom: -14px; left: 0; width: 100%; height: 14px; }

.nav-cta { background: var(--gold) !important; color: var(--white) !important; border-radius: var(--radius); padding: 9px 18px !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--gold-l) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-nav { display: none; background: var(--navy-d); }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav-toggle { display: block; padding: 13px 20px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06); background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; cursor: pointer; }
.mobile-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.mobile-subnav { display: none; background: rgba(0,0,0,0.2); }
.mobile-subnav.open { display: block; }
.mobile-subnav a { padding-left: 36px; font-size: 0.85rem; }

/* ── HERO ───────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, #1e3560 100%); color: var(--white); padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-badge { display: inline-block; background: rgba(201,146,42,0.2); border: 1px solid rgba(201,146,42,0.5); color: var(--gold-l); padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 2.5rem; }
.hero-phone { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.hero-phone strong { display: block; font-size: 1.7rem; color: var(--white); font-family: 'Playfair Display', serif; }
.hero-phone a { color: var(--white); }
.hero-phone a:hover { color: var(--gold-l); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; font-size: 0.83rem; color: rgba(255,255,255,0.7); }
.hero-trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar { background: var(--gold); color: var(--white); padding: 20px 0; }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; text-align: center; }
.stat-item strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.stat-item span { font-size: 0.8rem; font-weight: 600; opacity: 0.88; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── CARDS ───────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--light); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { width: 48px; height: 48px; background: rgba(201,146,42,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.4rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--slate); font-size: 0.92rem; margin-bottom: 1rem; }
.card-link { font-size: 0.88rem; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }
.card-link:hover { gap: 8px; }

/* Town cards */
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.town-card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; transition: all var(--transition); }
.town-card:hover { border-color: var(--gold); background: rgba(201,146,42,0.04); transform: translateX(3px); }
.town-card a { color: var(--text); font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; width: 100%; justify-content: space-between; }
.town-card a:hover { color: var(--gold); }

/* ── TRUST / BADGE STRIP ─────────────────────────────────── */
.trust-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 1.5rem 0; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: var(--off); border: 1px solid var(--light); border-radius: 4px; padding: 8px 14px; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.trust-badge svg { color: var(--gold); }

/* ── HOW IT WORKS ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.step { text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-size: 1rem; }
.step p { font-size: 0.9rem; color: var(--slate); }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--light); }
.faq-item:first-child { border-top: 1px solid var(--light); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.97rem; font-weight: 600; color: var(--navy); }
.faq-q:hover { color: var(--gold); }
.faq-icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; margin-top: 1px; line-height: 1; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px 0; color: var(--slate); font-size: 0.93rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb { padding: 12px 0; font-size: 0.82rem; color: var(--slate); }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* ── DISCLAIMER ─────────────────────────────────────────── */
.disclaimer-bar { background: rgba(201,146,42,0.08); border: 1px solid rgba(201,146,42,0.2); border-radius: var(--radius); padding: 14px 20px; font-size: 0.84rem; color: var(--slate); margin: 2rem 0; }
.disclaimer-bar strong { color: var(--navy); }

/* ── FORM PLACEHOLDER ───────────────────────────────────── */
.form-section { background: var(--navy); color: var(--white); padding: 64px 0; }
.form-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-copy h2 { color: var(--white); }
.form-copy p { color: rgba(255,255,255,0.75); }
.form-copy .phone-link { font-size: 1.5rem; display: block; margin-top: 1rem; color: var(--gold-l); }
.form-placeholder { background: rgba(255,255,255,0.05); border: 2px dashed rgba(255,255,255,0.15); border-radius: var(--radius); padding: 32px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; min-height: 280px; display: flex; align-items: center; justify-content: center; }

/* ── INLINE CTA SECTION ─────────────────────────────────── */
.cta-band { background: var(--gold); color: var(--white); padding: 40px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 4px 0 0; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--navy-d); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--gold-l); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.65; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-phone { display: block; color: var(--gold-l); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ── NEARBY TOWNS ───────────────────────────────────────── */
.nearby-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-link { display: inline-block; padding: 7px 16px; border: 1px solid var(--light); border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--navy); transition: all var(--transition); }
.nearby-link:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── SERVICE LIST (town pages) ──────────────────────────── */
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.service-item { background: var(--off); border-radius: var(--radius); padding: 18px 20px; border-left: 3px solid var(--gold); }
.service-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.service-item p { font-size: 0.85rem; color: var(--slate); margin: 0; }

/* ── CONTENT PROSE ───────────────────────────────────────── */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.6rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.4rem; }
.prose ul { padding-left: 1.4rem; list-style: disc; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.4rem; font-size: 0.95rem; color: var(--slate); }

/* ── PAGE HERO (interior pages) ─────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 100%); color: var(--white); padding: 56px 0 48px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.78); margin-top: 0.6rem; font-size: 1.05rem; }

/* ── TWO-COL LAYOUT (service/content pages) ─────────────── */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; }
.sidebar-card h3 { color: var(--white); font-size: 1.1rem; }
.sidebar-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.sidebar-card .phone-link { font-size: 1.3rem; display: block; margin: 1rem 0; color: var(--gold-l); }

/* ── CONTRACTORS PAGE ───────────────────────────────────── */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.benefit-item { background: var(--off); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--gold); }
.benefit-item h4 { margin-bottom: 0.4rem; }
.benefit-item p { font-size: 0.88rem; color: var(--slate); margin: 0; }

/* ── MEDIA QUERIES ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 56px 0 48px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .form-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .section { padding: 48px 0; }
  .stats-inner { gap: 24px; }
}

@media (max-width: 480px) {
  .hero-trust { flex-direction: column; gap: 10px; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
  .town-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ── FORMSPREE FORM STYLES ── */
.formspree-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .formspree-form .form-row { grid-template-columns: 1fr; }
}
.formspree-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.formspree-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.formspree-form .req { color: var(--gold-l); }
.formspree-form input,
.formspree-form select,
.formspree-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.formspree-form input::placeholder,
.formspree-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.formspree-form input:focus,
.formspree-form select:focus,
.formspree-form textarea:focus {
  outline: none;
  border-color: var(--gold-l);
}
.formspree-form select option { background: #1a1a2e; color: #fff; }
.formspree-form textarea { resize: vertical; min-height: 80px; }
.form-success {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}
