/*
Theme Name: Bogies Handyman Services
Theme URI: https://bogieshandyman.com
Author: Bogie's Handyman Services
Author URI: https://bogieshandyman.com
Description: Custom theme for Bogie's Handyman Services — Northern Arizona's Trusted Handyman.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bogies-handyman
*/

/* ============================================================
   Bogies Handyman Services — Stylesheet
   Colors: Olive #373604 | Orange #f26a00 | Cream #f5f0e8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Caveat:wght@700&display=swap');

:root {
  --olive:        #373604;
  --olive-dark:   #252503;
  --olive-mid:    #4a4908;
  --orange:       #f26a00;
  --orange-dark:  #d45d00;
  --gold:         #c9a84c;
  --cream:        #f5f0e8;
  --cream-dark:   #ede6d8;
  --surface:      #ffffff;
  --text:         #1a1809;
  --muted:        #5a5640;
  --line:         #d8d0be;
  --shadow-sm:    0 2px 12px rgba(0,0,0,.07);
  --shadow-md:    0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.13);
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    28px;
  --container:    1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.kicker-gold { color: var(--gold); }
.kicker-faded { color: rgba(255,255,255,.7); }
.text-white { color: #fff; }
.lead {
  font-size: 1.1rem; line-height: 1.75;
  color: var(--muted);
  max-width: 60ch;
}
.lead-white { color: rgba(255,255,255,.7); }
.script { font-family: 'Caveat', cursive; font-size: 1.2em; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 18px rgba(242,106,0,.35);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 8px 28px rgba(242,106,0,.4); }
.btn-dark {
  background: var(--olive); color: #fff;
  box-shadow: 0 4px 18px rgba(55,54,4,.3);
}
.btn-dark:hover { background: var(--olive-dark); }
.btn-outline {
  background: transparent; border-color: var(--line); color: var(--text);
}
.btn-outline:hover { background: rgba(55,54,4,.06); }
.btn-white {
  background: #fff; color: var(--olive);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--cream); }
.btn-ghost-white {
  background: rgba(255,255,255,.15); color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215,208,190,.6);
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 80px;
}
.brand {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.brand-logo-wrap {
  position: relative; flex-shrink: 0;
  width: 54px; height: 54px;
}
.brand-logo {
  width: 54px; height: 54px; object-fit: contain; border-radius: 8px;
}
.brand-text strong {
  display: block; font-size: .95rem; font-weight: 800; color: var(--olive);
}
.brand-text span {
  display: block; font-size: .78rem; color: var(--muted); margin-top: 1px;
}
.main-nav {
  display: flex; align-items: center; gap: 6px;
}
.main-nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--text);
  transition: background .18s;
}
.main-nav a:not(.btn):hover { background: rgba(55,54,4,.07); }
.nav-cta { margin-left: 8px; }
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: var(--text);
}
.mobile-toggle:hover { background: rgba(55,54,4,.07); }
.mobile-toggle svg { width: 24px; height: 24px; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--olive-dark);
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: flex-end;
}
.hero-copy { padding-bottom: 72px; }
.hero-copy .kicker { color: var(--gold); }
.hero-copy h1 { color: #fff; margin-bottom: 20px; }
.hero-copy .lead { color: rgba(255,255,255,.78); margin-bottom: 36px; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-pill {
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-art {
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.mascot-wrap {
  position: relative; z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.4));
}
.mascot-img {
  width: 100%; max-width: 380px;
  display: block; margin: 0 auto;
}
.hero-badge {
  position: absolute; top: -20px; right: 0;
  background: var(--orange); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-weight: 800; font-size: .88rem; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(242,106,0,.45);
  text-align: center;
}
.hero-badge span { display: block; font-size: 1.1rem; }

/* Phone bar */
.phone-bar {
  background: var(--orange);
  padding: 14px 0;
}
.phone-bar .container {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}
.phone-bar p {
  color: #fff; font-weight: 600; font-size: .95rem;
}
.phone-bar a {
  color: #fff; font-weight: 800; font-size: 1.15rem;
  background: rgba(255,255,255,.2); padding: 6px 18px; border-radius: 999px;
}
.phone-bar a:hover { background: rgba(255,255,255,.35); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--olive);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.trust-item strong { display: block; font-size: .92rem; font-weight: 700; }
.trust-item span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark {
  background: var(--olive-dark);
  color: #fff;
}
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  opacity: 0;
  transition: opacity .22s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242,106,0,.25);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--olive);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(55,54,4,.2);
}
.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ============================================================
   WHY US / SPLIT SECTION
   ============================================================ */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.why-list { margin-top: 28px; display: grid; gap: 20px; }
.why-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.why-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

.mascot-panel {
  --panel-pad-y: clamp(32px, 5vw, 56px);
  --panel-pad-x: clamp(20px, 4vw, 40px);
  --stack-gap: clamp(18px, 2.8vw, 32px);
  --logo-size: clamp(140px, 24vw, 260px);
  --title-size: clamp(1.8rem, 4vw, 3.2rem);
  --text-size: clamp(1rem, 1.6vw, 1.35rem);
  --button-space: clamp(10px, 1.8vw, 20px);

  background: var(--olive-dark);
  border-radius: var(--radius-lg);
  padding: var(--panel-pad-y) var(--panel-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: clamp(420px, 70vw, 760px);
  gap: var(--stack-gap);
}
.mascot-panel::before {
  display: none;
}
.mascot-panel-img-wrap {
  width: min(100%, var(--logo-size));
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  align-self: center;
  position: relative;
}
.mascot-panel-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
}
.mascot-panel-badge {
  display: inline-block; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 3px 12px rgba(242,106,0,.5); margin-top: -4px; position: relative; z-index: 3;
}
.mascot-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
  position: relative;
  z-index: 2;
  max-width: 26ch;
  align-self: center;
  text-align: center;
  margin: 0 auto;
}
.mascot-panel h3 {
  color: #fff;
  font-size: var(--title-size);
  line-height: 1.05;
  margin: 0;
}
.mascot-panel p {
  color: rgba(255,255,255,.75);
  font-size: var(--text-size);
  line-height: 1.45;
  margin: 0;
}
.mascot-panel .button,
.mascot-panel .cta-button,
.mascot-panel a[href^="tel:"] {
  margin-top: var(--button-space);
}

/* ============================================================
   AREAS
   ============================================================ */
.areas-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 32px;
}
.area-tag {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-weight: 600; font-size: .92rem;
}
.area-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--orange);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem; max-width: 50ch;
  margin: 0 auto 32px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-phone {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.text-center { text-align: center; }
.lead-center { margin-inline: auto; }

.btn-full { width: 100%; font-size: 1rem; min-height: 56px; }

.form-footer-note {
  font-size: 0.8rem; color: var(--muted);
  text-align: center; margin-top: 10px;
}
.form-phone-link { color: var(--orange); font-weight: 700; }

.services-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.services-aside-heading {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--orange); margin-bottom: 14px;
}
.services-aside-list { display: grid; gap: 8px; }
.services-aside-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.check { color: var(--orange); }
.page-hero {
  background: var(--olive-dark);
  padding: 80px 0 56px; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.75); margin-inline: auto; margin-top: 16px; }
.page-hero .kicker { color: var(--gold); }

.form-section { padding: 72px 0; }
.form-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 32px; align-items: start;
}
.form-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-panel h2 { margin-bottom: 6px; }
.form-panel > p { color: var(--muted); margin-bottom: 28px; font-size: .95rem; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 700; font-size: .88rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font: inherit; font-size: .95rem;
  background: #fff; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,106,0,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5640' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

.info-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.info-panel-top {
  background: var(--olive-dark);
  padding: 32px; text-align: center;
}
.info-panel-logo {
  width: 100%; max-width: 220px; margin: 0 auto; border-radius: 12px;
}
.info-panel-body { padding: 28px; }
.info-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--olive);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.info-row-text span {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange); margin-bottom: 3px;
}
.info-row-text a, .info-row-text p {
  font-weight: 600; font-size: .93rem;
  color: var(--text); margin: 0;
}
.info-row-text a:hover { color: var(--orange); }

/* Form notices */
.form-notice {
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; margin-bottom: 20px;
}
.form-notice-success {
  background: #d4edda; color: #155724; border: 1px solid #c3e6cb;
}
.form-notice-error {
  background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--olive-dark);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand img { width: 52px; margin-bottom: 14px; border-radius: 8px; }
.footer-brand strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.7; }
.footer-col h4 {
  color: rgba(255,255,255,.5); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 16px; font-weight: 700;
}
.footer-nav-heading { margin-top: 20px; }
.footer-col a {
  display: block; color: rgba(255,255,255,.75); font-size: .9rem;
  margin-bottom: 10px; transition: color .18s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 860px) {
  .mobile-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    background: rgba(245,240,232,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    flex-direction: column; align-items: stretch; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-cta .btn { width: 100%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 40px; }
  .hero-art { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-top: 1px solid var(--line) !important; }
  .trust-item:first-child { border-top: none !important; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }
  .areas-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 28px 20px; }
}
