/* Ray May Plumbing — brand stylesheet
   Palette per approved brief:
   Navy #1E3A5F | Logo Red #E31D23 | Logo Green #2D7F4A
   Background #DFE8F2 | Alt section #E8EAED
   Body text #404854 | Headings #2D3748 | Muted #9CA3AF
*/
:root {
  --navy: #1E3A5F;
  --navy-deep: #16304d;
  --red: #E31D23;            /* brand red — decorative use only */
  --red-cta: #C1151B;        /* solid buttons (AAA large-text with off-white) */
  --red-band: #AA151A;       /* CTA bands & badges (7.09:1 AAA with off-white) */
  --red-link: #951317;       /* text links (7.1:1 AAA on page background) */
  --red-dark: #a31217;
  --green: #2D7F4A;
  --bg: #DFE8F2;
  --bg-alt: #E8EAED;
  --card: #F4F7FB;
  --text: #404854;
  --heading: #2D3748;
  --muted: #464B54;
  --off-white: #F8FAFC;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30, 58, 95, 0.10);
  --shadow-lg: 0 8px 28px rgba(30, 58, 95, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a { color: var(--red-link); text-decoration: none; }
a:hover { color: #7a0f13; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: #F8FAFC;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand img { width: 300px; height: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--off-white);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  color: #C7D4E4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.main-nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--red-cta); text-decoration-thickness: 3px; }

.nav-call {
  font-size: 1.1rem;
  background: var(--red-cta);
  color: #F8FAFC !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-call:hover { background: var(--red-dark); text-decoration: none !important; }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: var(--bg);
  padding: 72px 0 64px;
}

.hero .container { max-width: 900px; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(227, 29, 35, 0.15);
  border: 1px solid rgba(227, 29, 35, 0.5);
  color: #FFD7D8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { color: #F8FAFC; margin-bottom: 18px; font-size: 2.7rem; }

.hero p.lead { font-size: 1.15rem; color: #D5E0EC; max-width: 640px; margin-bottom: 28px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-red { background: var(--red-cta); color: #F8FAFC; }
.btn-red:hover { background: #8f1015; color: #F8FAFC; }

.btn-outline { background: transparent; color: #F8FAFC; border: 2px solid rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #F8FAFC; }

.btn-navy { background: var(--navy); color: #F8FAFC; }
.btn-navy:hover { background: var(--navy-deep); color: #F8FAFC; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.88rem;
  color: #BECCDC;
}
.trust-strip span::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: var(--bg);
  padding: 48px 0 42px;
}
.page-hero h1 { color: #F8FAFC; margin-bottom: 8px; }
.page-hero p { color: #C7D4E4; max-width: 700px; margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-alt); }
.section-heading { margin-bottom: 8px; }
.section-sub { color: var(--muted); max-width: 700px; margin-bottom: 34px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
}
.card:nth-child(3n+2) { border-top-color: var(--red); }
.card:nth-child(3n) { border-top-color: var(--green); }

.card h3 { margin-bottom: 10px; }
.card p { flex: 1; font-size: 0.97rem; }
.card .card-link { font-weight: 700; font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 28px; margin: 18px 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
  margin-bottom: 22px;
}
.testimonial p { font-style: italic; }
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
}
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
details.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
details.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--heading);
  list-style: none;
  position: relative;
  padding-right: 46px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-cta);
  font-size: 1.4rem;
  font-weight: 800;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-body { padding: 0 22px 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red-band);
  color: #F8FAFC;
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: #F8FAFC; margin-bottom: 8px; }
.cta-band p { color: #F8FAFC; margin-bottom: 20px; }
.cta-band .btn { background: #F8FAFC; color: var(--red-band); }
.cta-band .btn:hover { background: #E8EAED; }

.cta-band.green { background: #226138; }
.cta-band.green p { color: #F4FAF6; }
.cta-band.green .btn { color: #226138; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.9rem; color: var(--heading); display: block; margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #C3CEDC;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #F8FAFC;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

button[type="submit"] {
  background: var(--red-cta);
  color: #F8FAFC;
  border: 0;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
button[type="submit"]:hover { background: #8f1015; }

/* ---------- Contact info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.info-box { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-box h3 { margin-bottom: 8px; color: var(--navy); }
.info-box p { margin-bottom: 4px; font-size: 0.97rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid #D3DCE7; }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C7D4E4; padding: 54px 0 0; font-size: 0.94rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  padding-bottom: 40px;
}
.site-footer h4 { color: #F8FAFC; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #DFE8F2; }
.site-footer a:hover { color: #F8FAFC; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-heritage {
  display: inline-block;
  background: var(--red-band);
  color: #F8FAFC;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.footer-green-badge {
  display: inline-block;
  background: #226138;
  color: #F8FAFC;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
  margin-top: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #C0CCDA;
}

/* ---------- Sticky mobile call button ---------- */
.mobile-call {
  font-size: 1.15rem;
  display: none;
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 200;
  background: var(--red-cta);
  color: #F8FAFC;
  text-align: center;
  padding: 16px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}
.mobile-call:hover { background: #8f1015; color: #F8FAFC; text-decoration: none; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F8FAFC;
    border-bottom: 3px solid var(--navy);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
  }
  .brand img { width: 220px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .mobile-call {
  font-size: 1.15rem; display: block; }
  body { padding-bottom: 84px; }
}

/* ---------- Placeholder note ---------- */
.placeholder-note {
  background: #FFF7E0;
  border: 1px dashed #D9B23C;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #63531B;
  margin-bottom: 18px;
}

/* ---------- Article & card images ---------- */
.article-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.card-thumb {
  width: calc(100% + 52px);
  margin: -26px -26px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card.card-thumbed { overflow: hidden; }

/* ---------- License under call button ---------- */
.nav-cta { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav-lic {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* ---------- Mascot ---------- */
.mascot-img {
  max-height: 340px;
  width: auto;
  display: inline-block;
  margin-bottom: 20px;
}
