/*
Theme Name: Mr. M Handyman
Theme URI: https://example.com/mr-m-handyman
Author: Mr. M Handyman
Author URI: https://example.com
Description: A responsive one-page WordPress theme for Mr. M Handyman in Jacksonville, Florida. Includes click-to-call actions, services, an SMS estimate form, Customizer settings, and mobile-friendly styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mr-m-handyman
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready, responsive-layout
*/

:root {
      --ink: #171714;
      --charcoal: #2d2c27;
      --gold: #d9a44b;
      --gold-dark: #b97f23;
      --cream: #f5eedc;
      --paper: #fffdf8;
      --muted: #6c685f;
      --line: rgba(23, 23, 20, .12);
      --shadow: 0 18px 50px rgba(23, 23, 20, .13);
      --radius: 22px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
    }

    a { color: inherit; }
    img { max-width: 100%; display: block; }
    button, input, select, textarea { font: inherit; }

    .container {
      width: min(1120px, calc(100% - 40px));
      margin-inline: auto;
    }

    .topbar {
      background: var(--ink);
      color: white;
      font-size: .94rem;
    }

    .topbar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 9px 0;
    }

    .topbar strong { color: #f4c36b; }
    .topbar a { text-decoration: none; font-weight: 800; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255,253,248,.94);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      font-weight: 950;
      letter-spacing: -.02em;
    }

    .brand-mark {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      background: var(--gold);
      border: 3px solid var(--ink);
      font-size: 1.2rem;
      box-shadow: 4px 4px 0 var(--ink);
    }

    .brand small {
      display: block;
      color: var(--muted);
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: .63rem;
      margin-top: -2px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .nav-links a {
      text-decoration: none;
      font-weight: 800;
      font-size: .95rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      border-radius: 999px;
      padding: 13px 20px;
      background: var(--gold);
      color: var(--ink);
      font-weight: 900;
      text-decoration: none;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(185,127,35,.25);
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .btn:hover { transform: translateY(-2px); background: #e8b45e; box-shadow: 0 14px 28px rgba(185,127,35,.3); }
    .btn.dark { background: var(--ink); color: white; box-shadow: none; }
    .btn.outline { background: transparent; border: 2px solid var(--ink); box-shadow: none; }

    .hero {
      overflow: hidden;
      background:
        radial-gradient(circle at 85% 15%, rgba(217,164,75,.28), transparent 31%),
        linear-gradient(135deg, var(--cream), #fffdf8 64%);
      border-bottom: 1px solid var(--line);
    }

    .hero-grid {
      min-height: 690px;
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      align-items: center;
      gap: 70px;
      padding: 74px 0;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(217,164,75,.18);
      border: 1px solid rgba(185,127,35,.28);
      color: #6e490e;
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    h1, h2, h3 { line-height: 1.08; margin-top: 0; }
    h1 {
      max-width: 760px;
      margin: 22px 0 20px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(3rem, 6.2vw, 5.9rem);
      letter-spacing: -.045em;
    }

    .hero p {
      max-width: 640px;
      color: var(--muted);
      font-size: 1.18rem;
      margin: 0 0 30px;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

    .trust-row {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-top: 34px;
      color: var(--charcoal);
      font-weight: 800;
      font-size: .93rem;
    }

    .trust-row span::before {
      content: "✓";
      display: inline-grid;
      place-items: center;
      width: 22px;
      height: 22px;
      margin-right: 8px;
      border-radius: 50%;
      background: var(--ink);
      color: var(--gold);
      font-size: .8rem;
    }

    .hero-card {
      position: relative;
      justify-self: center;
      width: min(100%, 440px);
      padding: 22px;
      border-radius: 34px;
      background: var(--ink);
      box-shadow: var(--shadow);
      transform: rotate(1.4deg);
    }

    .hero-card::after {
      content: "JACKSONVILLE, FL";
      position: absolute;
      right: -30px;
      bottom: 42px;
      transform: rotate(-90deg);
      color: rgba(255,255,255,.48);
      letter-spacing: .22em;
      font-size: .68rem;
      font-weight: 900;
    }

    .hero-card img {
      width: 100%;
      aspect-ratio: 13/16;
      object-fit: cover;
      border-radius: 22px;
      background: var(--cream);
    }

    .phone-strip {
      margin-top: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: white;
    }

    .phone-strip span { color: #c9c6bd; font-size: .83rem; }
    .phone-strip a { color: var(--gold); text-decoration: none; font-weight: 950; font-size: 1.3rem; }

    section { padding: 92px 0; }
    .section-heading { max-width: 720px; margin-bottom: 42px; }
    .section-heading h2 {
      margin: 12px 0 15px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2.25rem, 4vw, 4rem);
      letter-spacing: -.035em;
    }
    .section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .service-card {
      min-height: 230px;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: white;
      box-shadow: 0 10px 28px rgba(23,23,20,.055);
      transition: transform .18s ease, border-color .18s ease;
    }

    .service-card:hover { transform: translateY(-5px); border-color: rgba(185,127,35,.6); }
    .service-icon {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: var(--cream);
      font-size: 1.65rem;
      margin-bottom: 24px;
    }
    .service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .service-card p { margin: 0; color: var(--muted); font-size: .95rem; }

    .about { background: var(--cream); border-block: 1px solid var(--line); }
    .about-grid {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 68px;
      align-items: center;
    }

    .about-visual {
      position: relative;
      min-height: 455px;
      border-radius: 32px;
      background:
        linear-gradient(rgba(23,23,20,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23,23,20,.12) 1px, transparent 1px),
        var(--gold);
      background-size: 28px 28px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .toolbox {
      position: absolute;
      inset: auto 9% 9% 9%;
      padding: 32px;
      border-radius: 26px;
      background: var(--ink);
      color: white;
    }
    .toolbox strong { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 2rem; }
    .toolbox p { margin-bottom: 0; color: #d2cec4; }

    .big-tool {
      position: absolute;
      top: 40px;
      left: 50%;
      transform: translateX(-50%) rotate(-8deg);
      font-size: 8.5rem;
      filter: drop-shadow(0 16px 14px rgba(23,23,20,.22));
    }

    .about-copy h2 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2.35rem, 4.5vw, 4.4rem);
      letter-spacing: -.04em;
      margin-bottom: 20px;
    }
    .about-copy p { color: var(--muted); font-size: 1.05rem; }
    .checklist {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 22px;
      margin: 28px 0 34px;
      padding: 0;
      list-style: none;
      font-weight: 800;
    }
    .checklist li::before { content: "•"; color: var(--gold-dark); font-size: 1.4rem; margin-right: 9px; }

    .process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .step {
      position: relative;
      padding: 32px;
      border-radius: var(--radius);
      background: var(--ink);
      color: white;
      overflow: hidden;
    }
    .step-number {
      position: absolute;
      right: 16px;
      top: -24px;
      color: rgba(217,164,75,.19);
      font-size: 7.5rem;
      font-weight: 950;
      line-height: 1;
    }
    .step h3 { margin-bottom: 12px; font-size: 1.35rem; }
    .step p { margin: 0; color: #cfccc3; }

    .contact { background: var(--ink); color: white; }
    .contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
    .contact h2 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2.5rem, 4.7vw, 4.7rem);
      letter-spacing: -.04em;
      margin-bottom: 20px;
    }
    .contact-copy > p { color: #c8c4ba; font-size: 1.08rem; }
    .contact-card {
      margin-top: 28px;
      padding: 24px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      background: rgba(255,255,255,.04);
    }
    .contact-card span { display: block; color: #a9a59b; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
    .contact-card a { display: inline-block; margin-top: 5px; color: var(--gold); text-decoration: none; font-size: 1.55rem; font-weight: 950; }

    form {
      padding: 32px;
      border-radius: 28px;
      background: white;
      color: var(--ink);
    }
    .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    label { display: block; font-size: .83rem; font-weight: 900; margin-bottom: 6px; }
    input, select, textarea {
      width: 100%;
      border: 1px solid #dcd7ca;
      border-radius: 12px;
      padding: 13px 14px;
      background: #fffefa;
      color: var(--ink);
      outline: none;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(217,164,75,.17); }
    textarea { min-height: 120px; resize: vertical; }
    .field { margin-bottom: 16px; }
    form .btn { width: 100%; margin-top: 4px; }
    .form-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

    footer { padding: 28px 0; background: #0d0d0c; color: #a8a49b; font-size: .88rem; }
    footer .container { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
    footer a { color: white; text-decoration: none; }

    .mobile-call {
      display: none;
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: 14px;
      z-index: 50;
    }

    @media (max-width: 960px) {
      .nav-links a:not(.btn) { display: none; }
      .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
      .hero-grid { gap: 46px; min-height: auto; }
      .hero-card { max-width: 380px; }
      .services-grid { grid-template-columns: repeat(2, 1fr); }
      .about-grid { gap: 44px; }
    }

    @media (max-width: 640px) {
      .container { width: min(100% - 28px, 1120px); }
      .topbar .container { justify-content: center; text-align: center; }
      .topbar span { display: none; }
      .nav { min-height: 68px; }
      .nav-links .btn { display: none; }
      .hero-grid { padding: 54px 0 64px; }
      h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
      .hero p { font-size: 1.04rem; }
      .hero-actions .btn { width: 100%; }
      .hero-card::after { display: none; }
      section { padding: 70px 0; }
      .services-grid, .process-grid, .field-grid, .checklist { grid-template-columns: 1fr; }
      .service-card { min-height: auto; }
      .about-visual { min-height: 390px; }
      .big-tool { font-size: 6.4rem; }
      form { padding: 22px; }
      footer { padding-bottom: 90px; }
      footer .container { flex-direction: column; align-items: flex-start; }
      .mobile-call { display: flex; }
    }

/* WordPress integration */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  display: block;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 16px;
  background: #fff;
  color: #171714;
  border: 2px solid #171714;
  border-radius: 8px;
  font-weight: 800;
}
body.admin-bar .site-header { top: 32px; }
.custom-logo { max-height: 46px; width: auto; }
.content-area {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding: 80px 0;
}
.content-area h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}
.content-area img { height: auto; }
.content-area a:not(.btn) { color: var(--gold-dark); }
.post-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.post-list article h2 { margin-bottom: 8px; }
.post-list article h2 a { color: var(--ink); text-decoration: none; }
.navigation.pagination { margin-top: 36px; }
.page-numbers { margin-right: 10px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
