/* Frank's Handyman Services — base styles
   Warm, trustworthy palette: navy/slate + a warm amber accent. */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #26313a;
  --color-text-muted: #5a6873;
  --color-primary: #2c4a5e;      /* deep slate blue */
  --color-primary-dark: #1e333f;
  --color-accent: #d97b2b;       /* warm amber/orange, "trade" feel */
  --color-accent-dark: #b8641d;
  --color-border: #e3ddd3;
  --color-highlight-bg: #fff2e2;
  --radius: 8px;
  --max-width: 1120px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--color-primary); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 64px 0;
}

.section-sub {
  color: var(--color-text-muted);
  margin-top: -8px;
  margin-bottom: 32px;
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-block { display: block; width: 100%; text-align: center; }

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.logo span { color: var(--color-accent); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-accent); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #eef2f4 0%, var(--color-bg) 100%);
  padding: 80px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Services */
.service-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
}

.service-card li {
  margin-bottom: 6px;
}

.service-card li.highlight {
  font-weight: 700;
  color: var(--color-accent-dark);
}

.storm-banner {
  margin-top: 32px;
  background: var(--color-highlight-bg);
  border: 1px solid #f0c896;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--color-primary-dark);
}

/* Service area */
.service-area {
  background: var(--color-primary);
  color: #fff;
}
.service-area h2 { color: #fff; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.area-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 22px;
}

.area-item h3 { color: #fff; margin-bottom: 8px; }
.area-item p { color: #dbe3e8; margin: 0; }

/* About */
.about-inner { max-width: 760px; }

.about-list {
  padding-left: 20px;
  margin: 0;
}
.about-list li { margin-bottom: 12px; }

/* Our Work */
.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.eyebrow-light { color: var(--color-accent); }

.zoomable {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--color-border);
  cursor: zoom-in;
}

.zoomable img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.zoomable:hover img,
.zoomable:focus-visible img { transform: scale(1.04); }

.zoomable:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Before & after feature */
.before-after {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  gap: 36px;
  background: var(--color-primary-dark);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(30, 51, 63, 0.18);
}

.ba-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ba-photo {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
}

.ba-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 32, 40, 0.8);
  color: #fff;
  font: 700 0.75rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ba-tag-after { background: var(--color-accent); }

.ba-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 2;
}

.ba-text { color: #dbe3e8; }
.ba-text h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.ba-text p { margin-bottom: 22px; }

/* Project grid: one large feature tile, the rest fill around it */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}

.work-item { border-radius: 10px; }

.work-item.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.work-item.wide { grid-column: span 2; }

.work-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(20, 32, 40, 0.6) 45%, rgba(20, 32, 40, 0.92));
  color: #fff;
  font: 600 0.95rem/1.3 var(--font-body);
  text-align: left;
}

.work-kind {
  display: block;
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3b27a;
}

.work-item.feature .work-caption {
  padding: 60px 22px 18px;
  font-size: 1.25rem;
}

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 16, 20, 0.88); }

.lightbox figure { margin: 0; }

.lightbox img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: calc(92vh - 48px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
  padding-top: 12px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, #eef2f4 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-hours {
  margin-top: 28px;
}
.contact-hours h3 { font-size: 1.05rem; margin-bottom: 4px; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 14px;
  font-size: 0.92rem;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.contact-form button { margin-top: 20px; }

.form-status {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.92rem;
  min-height: 1.3em;
}
.form-status.success { color: #1e7a34; }
.form-status.error { color: #b3261e; }

/* Honeypot field — hidden from real users, catches simple bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfd9de;
  padding-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo { color: #fff; }
.footer-logo span { color: var(--color-accent); }

.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact p { margin: 0 0 6px; }

.footer-bottom {
  padding: 16px 20px 24px;
  font-size: 0.85rem;
  color: #97a5ac;
}

/* Sticky click-to-call bar, phones only */
.mobile-call-bar { display: none; }

/* Responsive */
@media (max-width: 760px) {
  .hero h1 { font-size: 1.8rem; }
  section { padding: 48px 0; }
  .contact-inner { grid-template-columns: 1fr; }
  .header-inner { flex-direction: row; }
  .header-phone { font-size: 0.95rem; }
  .before-after { grid-template-columns: 1fr; gap: 20px; padding: 14px 14px 22px; border-radius: 12px; }
  .ba-pair { gap: 6px; }
  .ba-tag { top: 8px; left: 8px; padding: 4px 9px; font-size: 0.68rem; }
  .ba-arrow { width: 36px; height: 36px; }
  .ba-text { padding: 0 8px; }
  .ba-text h3 { font-size: 1.4rem; }
  .ba-text .btn { width: 100%; text-align: center; }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
  .work-item.feature { grid-row: span 2; }
  .work-item.wide { grid-column: auto; }
  .work-item:last-child { grid-column: span 2; }
  .work-caption { font-size: 0.85rem; padding: 26px 10px 9px; }
  .work-item.feature .work-caption { font-size: 1.05rem; padding: 40px 14px 12px; }
  .lightbox-close { top: 8px; right: 8px; }

  .mobile-call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  }
  .site-footer { padding-bottom: 64px; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
