/* Peninsula Headlight Co. — shared styles */
/* Every page includes this one file. No external requests. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e3e3e0;
  --accent: #1a6b3c;
  --accent-hover: #145630;
  --warn: #8a6d1a;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */

.site { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--accent); }
.brand svg { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
.phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: none; }
.phone:hover { text-decoration: none; color: var(--accent); }
.phone svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.edge { display: block; height: 4px; background: var(--accent); }

/* ---- Hero ---- */

.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.hero .wrap { max-width: 720px; }
.hero h1 { font-size: 32px; line-height: 1.2; font-weight: 700; margin-bottom: 12px; }
.hero .lede { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Buttons ---- */

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--white); }
.btn.primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn:not(.primary) { background: var(--white); border-color: var(--line); color: var(--text); }
.btn:not(.primary):hover { border-color: var(--accent); color: var(--accent); }

/* ---- Cards ---- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--white); display: flex; flex-direction: column; gap: 12px; }
.card-ic { width: 40px; height: 40px; color: var(--accent); }
.card-ic svg { width: 100%; height: 100%; }
.card h2 { font-size: 18px; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; }
.card-price { font-weight: 600; font-size: 18px; color: var(--text); margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.card-link:hover { text-decoration: underline; }
.card-link .arr { font-size: 16px; }

/* ---- Sections ---- */

section { padding: 40px 0; }
section h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
section > .wrap > p { color: var(--muted); margin-bottom: 16px; max-width: 680px; }

.areas ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.areas li { font-weight: 500; }

.cta-band { background: var(--accent); color: var(--white); text-align: center; padding: 40px 0; margin-top: 0; }
.cta-band h2 { color: var(--white); font-size: 24px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 16px; }
.cta-band .btn.primary { background: var(--white); color: var(--accent); }
.cta-band .btn.primary:hover { background: #f0f0ec; }

/* ---- Footer ---- */

footer.site { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---- Breadcrumb ---- */

.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; color: var(--muted); }
.breadcrumb .wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- Service page ---- */

.service-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 40px 0; }
.service-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.service-hero .lede { font-size: 18px; color: var(--muted); max-width: 600px; }

.service-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
@media (min-width: 800px) { .service-grid { grid-template-columns: 1fr 280px; } }

.service-content h2 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.service-content p { color: var(--muted); margin-bottom: 12px; }
.service-content ol { padding-left: 20px; margin-bottom: 16px; }
.service-content li { color: var(--muted); margin-bottom: 6px; }
.service-content .note { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 16px 0; }

.service-cta { margin-top: 20px; }

.service-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.service-aside h3 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.aside-price { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.service-aside p { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.service-aside a { font-weight: 500; }

/* ---- Pricing page ---- */

.pricing table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.pricing th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--line); background: var(--bg-alt); }
.pricing td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing tr:nth-child(even) td { background: var(--bg-alt); }
.pricing a { font-weight: 500; }
.pricing ul { padding-left: 20px; margin: 12px 0; }
.pricing li { color: var(--muted); margin-bottom: 4px; }

/* ---- Booking ---- */

.booking-form { max-width: 560px; }
.booking-form h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.booking-form label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 15px; }
.booking-form input, .booking-form select, .booking-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; font-family: inherit; margin-bottom: 14px; background: var(--white); }
.booking-form input:focus, .booking-form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.booking-form .btn { width: 100%; justify-content: center; }
.booking-form p { color: var(--muted); margin-top: 12px; font-size: 15px; }

.booking-aside { margin-top: 28px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 20px; max-width: 560px; }
.booking-aside h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.booking-aside ol { padding-left: 20px; }
.booking-aside li { color: var(--muted); margin-bottom: 6px; font-size: 15px; }

/* ---- Town pages ---- */

.town-body { padding: 32px 0 40px; }
.town-body h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.town-body p { color: var(--muted); margin-bottom: 12px; }
.town-body ul { padding-left: 20px; margin-bottom: 16px; }
.town-body li { color: var(--muted); margin-bottom: 4px; }
.town-cta { margin-top: 20px; }

/* ---- Responsive ---- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 32px 0 28px; }
  .site .wrap { padding-top: 10px; padding-bottom: 10px; }
  .cta-band { padding: 28px 0; }
  section { padding: 28px 0; }
  .cards { grid-template-columns: 1fr; }
}
