/* Whitmore's Handyman and Fence Repair — Woodland, CA */

:root {
  --navy: #0c2039;
  --navy-deep: #081526;
  --navy-mid: #163256;
  --royal: #0759b1;
  --royal-hover: #064a96;
  --royal-bright: #1a73c7;
  --royal-soft: #e8f1fb;
  --ink: #122033;
  --muted: #4a5568;
  --white: #ffffff;
  --offwhite: #f4f7fb;
  --line: #d5deea;
  --shadow: 0 16px 40px rgba(12, 32, 57, 0.12);
  --radius: 14px;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-script: "Kaushan Script", "Segoe Script", cursive;
  --header-h: 7.15rem;
  --max: 70rem;
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--royal);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); text-transform: uppercase; }
h3 { font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }

p { margin: 0 0 1rem; }

a {
  color: var(--royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--royal-hover); }

:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

.btn-primary:hover {
  background: var(--royal-hover);
  border-color: var(--royal-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-header {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.btn-header:hover {
  background: var(--royal-hover);
  border-color: var(--royal-hover);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-size: 1.15rem;
  padding: 0.95rem 1.8rem;
}

.btn-light:hover {
  background: var(--royal-soft);
  color: var(--navy);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--royal);
  box-shadow: 0 2px 12px rgba(12, 32, 57, 0.08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 4.55rem;
  width: auto;
}

.logo-phone {
  margin: 0.2rem 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--royal);
  text-decoration: none;
  white-space: nowrap;
}

.logo-phone:hover,
.logo-phone:focus-visible {
  color: var(--royal-hover);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover { color: var(--royal); }

.site-nav a:not(.btn):focus-visible {
  outline-offset: 4px;
}

/* Hero */
.hero {
  background: var(--white);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem 1.25rem 3rem;
}

.hero-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1.15rem;
}

.hero-logo {
  width: min(18.5rem, 100%);
  height: auto;
  margin-bottom: 0;
}

.hero-logo-wrap .logo-phone {
  margin-top: 0.4rem;
  font-size: 1.45rem;
  color: var(--navy);
}

.hero-logo-wrap .logo-phone:hover,
.hero-logo-wrap .logo-phone:focus-visible {
  color: var(--royal);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
  margin: 0 0 0.55rem;
}

.eyebrow-light { color: #9ec4ef; }

.hero-copy h1 {
  margin-bottom: 0.35em;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: 0.02em;
}

.service-area {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
}

.tagline {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--royal);
  line-height: 1.3;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-lead strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
}

.hero-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.hero-phone a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.hero-phone a:hover { color: var(--royal); }

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--royal);
  vertical-align: middle;
  flex: 0 0 auto;
}

.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 28rem;
  background: var(--navy);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
  position: absolute;
  inset: 0;
}

/* Shared sections */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section-intro {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 2rem;
}

/* Services */
.services { background: var(--white); }

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 0.75rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card h3 {
  margin: 0.85rem 0 0.45rem;
  color: var(--navy);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.services-more {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
}

.icon-circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(7, 89, 177, 0.28);
}

.icon-circle svg {
  width: 2.15rem;
  height: 2.15rem;
}

/* Why us */
.why {
  background: var(--navy);
  color: var(--white);
  position: relative;
}

.why h2,
.why h3 { color: var(--white); }

.why .section-intro { color: #c9d6e8; }

.badge-row {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.badge-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-family: var(--font-display);
}

.badge-row .check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.badge-row .check svg {
  width: 0.95rem;
  height: 0.95rem;
}

.licensed-banner {
  display: inline-block;
  margin: 0 0 2.25rem;
  padding: 0.45rem 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-grid h3 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.why-grid p {
  margin: 0;
  color: #c9d6e8;
  font-size: 0.98rem;
}

/* About */
.about { background: var(--offwhite); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.about-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  aspect-ratio: 1 / 1;
}

.about-copy p { font-size: 1.08rem; }

.about-copy .btn { margin-top: 0.6rem; }

/* Gallery */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: 50% 40%;
}

.gallery-item-fence img {
  object-position: 42% 18%;
}

.gallery-item figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.7rem 0.2rem 0;
  background: var(--white);
}

/* Video */
.commercial { background: var(--offwhite); }

.video-wrap {
  max-width: 52rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contact */
.contact {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--royal) 0 18px, transparent 18px 36px, var(--royal-bright) 36px 48px, transparent 48px) top left / 180px 120px no-repeat,
    linear-gradient(-135deg, var(--royal) 0 18px, transparent 18px 36px, var(--royal-bright) 36px 48px, transparent 48px) top right / 180px 120px no-repeat;
  opacity: 0.85;
}

.contact h2 { color: var(--white); }

.contact-inner { position: relative; padding-top: 4.5rem; padding-bottom: 4.5rem; }

.contact-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.contact-area {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-wrap: balance;
}

.contact-lead {
  color: #c9d6e8;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
  margin: 0.3rem 0 1.25rem;
}

.contact-phone:hover { color: #cfe4ff; }

.contact-meta {
  margin: 1.4rem 0 0;
  color: #c9d6e8;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  justify-content: center;
  align-items: center;
}

.contact-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0.65rem;
  border-radius: 50%;
  background: #9ec4ef;
  vertical-align: middle;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c9d6e8;
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-size: 0.98rem;
}

.footer-inner { max-width: 40rem; margin: 0 auto; }

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 0.7rem 1.15rem 0.7rem;
  margin-bottom: 1rem;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  height: 5.25rem;
  width: auto;
  margin: 0 auto;
}

.footer-brand .logo-phone {
  margin-top: 0.35rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.footer-brand .logo-phone:hover,
.footer-brand .logo-phone:focus-visible {
  color: var(--royal);
}

.footer-name {
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.footer-area {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.98rem;
  margin: 0.15rem 0 0.55rem !important;
  text-wrap: balance;
}

.site-footer p { margin: 0 0 0.35rem; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
}

.footer-meta span:not(:last-child)::after,
.footer-meta a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0.65rem;
  border-radius: 50%;
  background: var(--royal-bright);
  vertical-align: middle;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover { color: #cfe4ff; }

.site-footer .dot { background: var(--royal-bright); margin: 0 0.15rem; }

.copyright {
  margin-top: 1.15rem !important;
  font-size: 0.88rem;
  color: #8ea0b8;
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--navy);
  box-shadow: 0 -6px 20px rgba(12, 32, 57, 0.3);
}

.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--royal);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
}

.sticky-call a span { font-weight: 700; letter-spacing: 0.02em; }

.sticky-call a:hover { background: var(--royal-hover); color: var(--white); }

.nowrap { white-space: nowrap; }

/* Responsive */
@media (max-width: 1099px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

  .service-card { padding: 1.5rem 1.2rem 1.35rem; }
}

@media (max-width: 960px) {
  .hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-photo img { position: absolute; }

  .badge-row,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item img { height: 18rem; }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--royal);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.15rem;
    gap: 0;
    box-shadow: 0 12px 24px rgba(12, 32, 57, 0.12);
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav .btn-header {
    margin-top: 0.75rem;
    border-bottom: 0;
    text-align: center;
  }

  .nav-toggle-input:checked ~ .site-nav { display: flex; }

  .nav-toggle-input:checked + .nav-toggle { background: var(--royal-soft); }

  .header-inner { position: relative; }

  .logo img { height: 4.15rem; }

  .logo-phone { font-size: 1.05rem; }

  .hero-logo { width: min(14.5rem, 86%); }


  .service-grid { grid-template-columns: 1fr 1fr; }

  .sticky-call { display: block; }

  .site-header .btn-header { display: none; }

  .site-footer { padding-bottom: 7.25rem; }
}

@media (max-width: 560px) {
  .service-grid { gap: 0.8rem; }

  .service-card { padding: 1.15rem 0.7rem 1rem; }

  .icon-circle { width: 3.75rem; height: 3.75rem; }

  .icon-circle svg { width: 1.85rem; height: 1.85rem; }

  .badge-row {
    grid-template-columns: 1fr;
  }

  .why-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-item img { height: 20rem; }

  .section-inner { padding: 3rem 1.1rem; }

  .hero-inner { padding: 1.25rem 1.1rem 2.25rem; }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn { width: 100%; }

  .hero-phone { font-size: 0.92rem; }

  .logo img { height: 4rem; }

  .logo-phone { font-size: 1.08rem; }

  .hero-logo-wrap .logo-phone { font-size: 1.35rem; }

  .service-grid { grid-template-columns: 1fr; }

  .hero-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .hero-phone .dot { display: none; }

  .service-area,
  .footer-area,
  .contact-area {
    letter-spacing: 0.045em;
  }

  .contact-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .contact-meta span:not(:last-child)::after {
    display: none;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0.2rem;
  }

  .footer-meta span:not(:last-child)::after,
  .footer-meta a::after {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header,
  .sticky-call,
  .nav-toggle { display: none !important; }
  .contact, .why { background: #fff; color: #000; }
  .contact h2, .why h2, .why h3 { color: #000; }
  body { padding: 0; }
}
