/* Sunrise Plumbing - shared styles. Mobile first. Page sections are appended at the end. */

/* ========== 1. Base ========== */
:root {
  --orange: #f7931e;        /* sunrise accent (backgrounds, with dark text: ~8:1) */
  --orange-dark: #b34700;   /* orange for text/links on white (~5.6:1) */
  --orange-soft: #fff4e5;   /* light tint for panels */
  --ink: #1d1d1b;          /* body text */
  --muted: #4a4a46;        /* secondary text (~8.6:1 on white) */
  --line: #e4ded6;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2rem 0; }
.section--tint { background: var(--orange-soft); }

/* ========== 2. Buttons ========== */
.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  min-height: 3rem;
  border-radius: .5rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--ink);
}
.btn:hover { background: #ffa83d; }
.btn--big { display: block; width: 100%; font-size: 1.35rem; padding: 1rem 1.2rem; }
.btn--outline { background: var(--white); }
.btn--outline:hover { background: var(--orange-soft); }

/* ========== 3. Header and nav (shared) ========== */
.site-header { border-bottom: 4px solid var(--orange); background: var(--white); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.header-phone {
  order: 1;
  margin-left: auto;
  padding: .55rem .9rem;
  min-height: 2.75rem;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: .5rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.logo { order: 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.logo span { color: var(--orange-dark); }
.site-nav { order: 2; width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-nav a { display: inline-block; padding: .4rem 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ========== 4. Footer (shared) ========== */
.site-footer { margin-top: 2rem; background: var(--ink); color: var(--white); padding: 2rem 0 1.5rem; }
.site-footer a { color: #ffc27a; }
.site-footer h2 { font-size: 1.15rem; color: var(--white); }
.footer-grid { display: grid; gap: 1.25rem; }
.footer-grid p { margin: 0 0 .4rem; }
.footer-license { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #5a5a55; font-size: .95rem; }

/* ========== 5. Home page ========== */
.hero { padding: 2rem 0; background: var(--orange-soft); border-bottom: 1px solid var(--line); }
.hero-lead { font-size: 1.15rem; }
.hero-note { margin: .75rem 0 0; font-size: .95rem; color: var(--muted); }
.hero-img { margin-top: 1.5rem; border-radius: .75rem; }
.trust-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.trust-list li::before { content: "\2713\00a0"; color: var(--orange-dark); font-weight: 800; }
.service-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.service-list li { padding: .8rem 1rem; border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: .5rem; font-weight: 600; }
.info-grid { display: grid; gap: 1.25rem; }
.cta-band { text-align: center; }

/* ========== 6. Services page (appended by Services) ========== */
/* Services page */
.service-detail { border-bottom: 1px solid var(--line); }
.service-detail p { max-width: 40rem; margin: 0; font-size: 1.1rem; }
.service-detail:target h2 { color: var(--orange-dark); }

/* ========== 7. Contact page (appended by Contact) ========== */

/* ========== 8. Wider screens ========== */
@media (min-width: 40rem) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }
  .btn--big { display: inline-block; width: auto; min-width: 22rem; }
  .site-header .container { flex-wrap: nowrap; }
  .site-nav { order: 1; width: auto; margin-left: auto; }
  .header-phone { order: 2; margin-left: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

/* Contact page */
.contact-intro { background: var(--orange-soft); border-bottom: 1px solid var(--line); }
.contact-lead { font-size: 1.15rem; }
.contact-grid { display: grid; gap: 2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.contact-list li { padding: .8rem 1rem; border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: .5rem; }
.form-note { padding: .75rem 1rem; background: var(--orange-soft); border: 1px solid var(--line); border-radius: .5rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: .75rem;
  min-height: 3rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--muted);
  border-radius: .5rem;
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
@media (min-width: 40rem) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .btn { width: auto; min-width: 12rem; }
}
