/* Golden Plumbing Company — site styles */
:root {
  --cream: #eae6dd;
  --charcoal: #2d2d2a;
  --gold: #edd286;
  --blue: #34659b;
  --teal: #7bb5b2;
  --white: #ffffff;
  --radius-pill: 45px 0;
  --max: 1200px;
  --head: "Trocchi", Georgia, serif;
  --body: "Syne", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--gold);
  border-bottom: 3px solid var(--blue);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; max-width: var(--max); margin: 0 auto; padding: 12px 24px;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9rem; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.brand { font-family: var(--head); font-size: 1.6rem; text-decoration: none; text-align: center; line-height: 1.1; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; background: none; border: 0; font: inherit; font-size: 1.6rem; cursor: pointer; justify-self: start; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--charcoal); color: var(--cream);
  border: 0; border-radius: var(--radius-pill);
  padding: 16px 32px; font-family: var(--body); font-size: 1rem; font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn-light { background: var(--cream); color: var(--charcoal); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Sections */
section { padding: 80px 0; }
.dark { background: var(--charcoal); color: var(--cream); }
.blue { background: var(--blue); color: var(--cream); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 600; }

.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center; text-align: center;
  color: var(--cream); background: var(--charcoal) center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,18,.45); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 14em; margin: 0 auto .6em; }

.intro .logo { width: 140px; margin: 0 auto 24px; }
.intro p { max-width: 720px; margin-left: auto; margin-right: auto; }
.phone-line { font-size: 1.3rem; font-weight: 700; }
.phone-line a { text-decoration: none; border-bottom: 2px solid var(--blue); }

.ticker { background: var(--charcoal); color: var(--teal); padding: 18px 0; overflow: hidden; white-space: nowrap; font-weight: 600; }
.ticker-track { display: inline-block; animation: ticker 40s linear infinite; }
.ticker span { padding-right: 3em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 4px; width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.fee { border-left: 4px solid var(--gold); padding-left: 16px; margin-top: 24px; }
.fee strong { font-size: 1.3rem; display: block; }

.gallery { padding: 0; }
.gallery-reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery-reel img { height: 360px; width: 100%; object-fit: cover; scroll-snap-align: start; }


.contact-band h2 { color: var(--white); }

/* Cards (promotions, why-act) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--white); color: var(--charcoal); padding: 32px 28px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; }
.card .btn { align-self: flex-start; margin-top: auto; }
.promo-feature { background: var(--gold); color: var(--charcoal); text-align: center; padding: 56px 24px; border-radius: 4px; margin-bottom: 32px; }
.fine { font-size: .9rem; opacity: .85; }

/* Forms */
.form { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .req { font-weight: 400; opacity: .7; font-size: .85rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #b9b3a6; border-radius: 4px; background: var(--white); color: var(--charcoal);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -5000px; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1f6f43; }
.form-status.err { color: #a12a2a; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 1.2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin-top: 40px; font-size: .85rem; opacity: .7; text-transform: uppercase; letter-spacing: .1em; }

/* Sticky mobile call bar */
.call-bar { display: none; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 10px 16px; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .brand { font-size: 1.25rem; }
  .nav { display: none; grid-column: 1 / -1; flex-direction: column; gap: 12px; padding: 8px 0 4px; font-size: 1rem; }
  .nav.open { display: flex; }
  .header-cta { display: none; }
  .split, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .gallery-reel img { height: 280px; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--charcoal); border-top: 3px solid var(--gold);
  }
  .call-bar a { color: var(--cream); text-align: center; padding: 14px 8px; text-decoration: none; font-weight: 700; }
  .call-bar a + a { border-left: 1px solid #555; }
  body { padding-bottom: 56px; }
}
