/* ===== P & R Handyman Services (more natural, less "AI template") ===== */

:root{
  /* A calmer, more "local business" palette */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;

  --primary: #1f6feb;      /* friendly blue */
  --primary-dark: #1757bc;
  --accent: #16a34a;       /* WhatsApp-ish green */

  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0,0,0,.06);

  --radius: 12px;          /* less bubble-looking */
  --container: 1120px;
}

*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Links */
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Layout */
.container{ max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.small{ font-size: .92rem; }
.muted{ color: var(--muted); }

/* Accessibility */
.sr-only{ position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link{
  position:absolute; left:-999px; top:10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
}
.skip-link:focus{ left: 10px; z-index: 999; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,247,245,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 14px 0;
}

/* Brand */
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-mark{
  width:42px; height:42px;
  border-radius: 10px;
  display:grid; place-items:center;
  font-weight: 800;
  letter-spacing: .5px;
  background: var(--text);
  color: #fff;
}
.brand-name{ font-weight: 900; letter-spacing: .2px; }
.brand-tagline{ color: var(--muted); font-size: .9rem; }

/* Nav */
.nav{ margin-left:auto; display:flex; align-items:center; gap:10px; position: relative; }
.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
}
.nav-links{ display:flex; gap:6px; align-items:center; }
.nav-links a{
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}
.nav-links a:hover{
  background: rgba(31,111,235,.08);
  text-decoration:none;
  color: var(--text);
}
.nav-links a.active{
  background: rgba(31,111,235,.12);
  color: var(--text);
  border: 1px solid rgba(31,111,235,.18);
}

/* Header actions */
.header-actions{ display:flex; gap:10px; align-items:center; }

/* Buttons - slightly more "standard" */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  text-decoration:none;
}
.btn:hover{ text-decoration:none; }
.btn-ghost:hover{ background: rgba(0,0,0,.03); }

.btn-primary{
  background: var(--primary);
  border-color: rgba(31,111,235,.35);
  color: #fff;
}
.btn-primary:hover{ background: var(--primary-dark); }

.btn-wide{ padding: 12px 16px; }

/* Headings */
.h1{
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 10px;
}
.section h2{
  margin: 0 0 10px;
  font-size: 1.35rem;
}

/* Cards - less "glass", more normal */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.padded{ padding: 18px; }

/* Hero */
.hero{ padding: 28px 0 10px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
.hero-copy{ padding: 22px; }
.kicker{ margin: 0 0 12px; color: var(--muted); }
.hero-p{ margin: 0 0 14px; color: var(--muted); }

.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
}
.badge.blue{ border-color: rgba(31,111,235,.25); background: rgba(31,111,235,.06); }
.badge.green{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.06); }

/* Hero image - less overlay drama */
.hero-media{ overflow:hidden; position:relative; }
.hero-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-box{
  position:absolute; left:14px; right:14px; bottom:14px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
}

/* Sections */
.section{ padding: 18px 0; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature{ padding: 16px; }

.icon{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  border: 1px solid var(--border);
  background: #fafafa;
  margin-bottom: 10px;
  font-size: 20px;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Forms */
.form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }
label{ font-weight: 800; }
input, textarea, select{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
}
textarea{ min-height: 120px; resize: vertical; }
.help{ font-size: .9rem; color: var(--muted); }

/* Notices */
.notice{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(22,163,74,.25);
  background: rgba(22,163,74,.06);
  color: #14532d;
}
.notice.warn{
  border: 1px solid rgba(245,158,11,.30);
  background: rgba(245,158,11,.08);
  color: #92400e;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery img{
  width:100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Maps */
.map-embed iframe{
  width:100%;
  height: 360px;
  border: 0;
  border-radius: 12px;
}

/* Footer */
.site-footer{
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: #f3f4f6;
}
.footer-grid{
  padding: 22px 0;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
.footer-title{ font-weight: 900; margin-bottom: 8px; }
.footer-list{ list-style:none; padding:0; margin:0; display:grid; gap: 6px; color: var(--muted); }
.footer-bottom{
  padding: 14px 0;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  color: var(--muted);
}

/* Floating actions - less “app-like”, more subtle */
.floating-actions{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 10px;
  z-index: 60;
}
.fab{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  font-size: 20px;
  text-decoration:none;
}
.fab:hover{ transform: translateY(-1px); text-decoration:none; }
.fab-wa{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }

  .header-actions{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav-links{
    display:none;
    position:absolute;
    right: 0;
    top: 54px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    min-width: 200px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open{ display:flex; }
}
/* OSM map with fixed overlay circles */
.map-wrapper{
  position: relative;
  width: 100%;
  height: 360px;           /* adjust freely */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrapper iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Blocks zoom/pan so overlay stays aligned */
.map-blocker{
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
}

/* Overlay circles/labels */
.map-overlay{
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-overlay .label{
  font-size: 22px;
  font-weight: 800;
  fill: #111827;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 4px;
}

.map-link{
  margin-top: 10px;
  font-size: 14px;
}
/* Contact page form layout improvements */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full{ grid-column: 1 / -1; }

@media (max-width: 980px){
  .form-grid{ grid-template-columns: 1fr; }
}

/* Small helper */
.hr-soft{
  border:0;
  border-top:1px solid var(--border);
  margin: 14px 0;
}
.brand-mark{
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}

.brand-mark img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 980px){
  .brand-mark{
    width: 54px;
    height: 54px;
  }
}
@media (max-width: 980px){
  .site-header,
  .site-footer{
    padding-left: 10px;
    padding-right: 10px;
  }
}
.fab-wa {
  background: #25D366;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fab-wa i {
  font-size: 22px;
  line-height: 1;
}
