/*
Theme Name: Mr. B Handyman Services
Theme URI: https://fixwithmrb.com/
Author: OpenAI Codex
Description: Hostinger-friendly WordPress theme for Fix with Mr. B / Mr. B Handyman Services with editable imported pages.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mrb-handyman
*/

:root {
  --mrb-bg: #f5f7fb;
  --mrb-surface: #ffffff;
  --mrb-surface-alt: #eef3fb;
  --mrb-text: #14213d;
  --mrb-muted: #51627f;
  --mrb-border: #d7dfec;
  --mrb-primary: #17345f;
  --mrb-primary-2: #1f4c8f;
  --mrb-accent: #ff5a2a;
  --mrb-accent-dark: #d9471d;
  --mrb-radius: 16px;
  --mrb-shadow: 0 18px 48px rgba(11, 30, 64, 0.12);
  --mrb-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mrb-text);
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  color: #fff;
  background: var(--mrb-primary);
}

.mrb-site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mrb-container {
  width: min(var(--mrb-max), calc(100% - 32px));
  margin: 0 auto;
}

.mrb-topbar {
  background: #0f2344;
  color: #fff;
  font-size: 0.95rem;
}

.mrb-topbar-inner {
  width: min(var(--mrb-max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 10px 0;
}

.mrb-topbar a {
  color: #fff;
  text-decoration: none;
}

.mrb-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 52, 95, 0.08);
}

.mrb-header-inner {
  width: min(var(--mrb-max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.mrb-branding {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mrb-branding img,
.mrb-branding .custom-logo {
  width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.mrb-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.mrb-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.mrb-brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.mrb-brand-tagline {
  margin: 0;
  color: var(--mrb-muted);
  font-size: 0.9rem;
}

.mrb-menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--mrb-primary);
  font-weight: 700;
  cursor: pointer;
}

.mrb-header-nav {
  justify-self: center;
}

.mrb-header-nav .menu,
.mrb-footer-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mrb-header-nav .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mrb-header-nav .menu > li {
  position: relative;
}

.mrb-header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--mrb-text);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
}

.mrb-header-nav .current-menu-item > a,
.mrb-header-nav .current-menu-ancestor > a,
.mrb-header-nav a:hover,
.mrb-header-nav a:focus-visible {
  color: #fff;
  background: var(--mrb-primary);
}

.mrb-header-nav .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.8em;
}

.mrb-header-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  display: none;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--mrb-border);
  border-radius: 14px;
  box-shadow: var(--mrb-shadow);
}

.mrb-header-nav .menu > li:hover > .sub-menu,
.mrb-header-nav .menu > li:focus-within > .sub-menu {
  display: flex;
}

.mrb-header-nav .sub-menu a {
  border-radius: 10px;
}

.mrb-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  color: #fff;
  background: var(--mrb-accent);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 90, 42, 0.3);
}

.mrb-header-cta:hover,
.mrb-header-cta:focus-visible,
.mrb-button:hover,
.mrb-button:focus-visible {
  background: var(--mrb-accent-dark);
}

.mrb-main {
  flex: 1 1 auto;
  padding: 32px 0 56px;
}

.mrb-feature-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  margin-bottom: 30px;
  align-items: stretch;
}

.mrb-feature-hero__media,
.mrb-feature-hero__content {
  border: 1px solid var(--mrb-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--mrb-surface);
  box-shadow: var(--mrb-shadow);
}

.mrb-feature-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.mrb-feature-hero__content {
  padding: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at top right, rgba(255, 90, 42, 0.12), transparent 40%),
    linear-gradient(135deg, #10284a, #1d4d90);
  color: #fff;
}

.mrb-feature-hero__content .mrb-eyebrow {
  color: #ffb08d;
}

.mrb-feature-hero__content h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.mrb-feature-hero__content p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.mrb-page-card {
  width: min(var(--mrb-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 52, 95, 0.08);
  border-radius: 24px;
  box-shadow: var(--mrb-shadow);
}

.mrb-hero,
.mrb-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 0;
}

.mrb-hero {
  padding: 56px 0;
  color: #fff;
}

.mrb-hero-inner {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(12, 31, 60, 0.96), rgba(25, 76, 143, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 24px 64px rgba(10, 29, 63, 0.28);
}

.mrb-eyebrow {
  margin: 0 0 12px;
  color: #ffb08d;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mrb-hero h1,
.mrb-section h1,
.mrb-section h2 {
  margin: 0 0 18px;
  line-height: 1.08;
}

.mrb-hero h1,
.mrb-section h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.mrb-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.9rem);
}

.mrb-hero p,
.mrb-section p,
.mrb-section li,
.mrb-card p,
.mrb-project-card p {
  color: inherit;
  font-size: 1.02rem;
}

.mrb-hero p:last-of-type {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
}

.mrb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.mrb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--mrb-accent);
  font-weight: 800;
  text-decoration: none;
}

.mrb-button-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.mrb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.mrb-card,
.mrb-project-card,
.mrb-photo-card,
.mrb-cta-band,
.mrb-photo-slot {
  border: 1px solid var(--mrb-border);
  border-radius: 20px;
  background: var(--mrb-surface);
  box-shadow: 0 12px 30px rgba(16, 36, 71, 0.06);
}

.mrb-card,
.mrb-project-card {
  padding: 24px;
}

.mrb-card h3,
.mrb-project-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.mrb-card p,
.mrb-project-card p,
.mrb-meta,
.mrb-site-footer,
.mrb-site-footer a {
  color: var(--mrb-muted);
}

.mrb-card:hover,
.mrb-project-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 20px 36px rgba(16, 36, 71, 0.1);
}

.mrb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mrb-primary-2);
  font-weight: 800;
  text-decoration: none;
}

.mrb-link::after {
  content: "→";
}

.mrb-list,
.mrb-check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.mrb-list li,
.mrb-check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--mrb-accent);
  border-radius: 0 14px 14px 0;
  background: var(--mrb-surface-alt);
  font-weight: 700;
}

.mrb-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.mrb-photo-card {
  overflow: hidden;
}

.mrb-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mrb-photo-card figcaption {
  padding: 14px 16px 18px;
  color: var(--mrb-muted);
  font-size: 0.95rem;
}

.mrb-photo-slot {
  padding: 22px;
  color: var(--mrb-muted);
  font-weight: 700;
  background: linear-gradient(135deg, #f8fbff, #eef4fb);
}

.mrb-cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  margin-top: 22px;
  background: linear-gradient(135deg, #16345f, #1d4d90);
  color: #fff;
}

.mrb-cta-band h2,
.mrb-cta-band p {
  margin: 0;
  color: #fff;
}

.mrb-cta-band .mrb-button-outline {
  border-color: rgba(255, 255, 255, 0.42);
}

.mrb-meta {
  font-size: 0.94rem;
}

.mrb-wp-content img.aligncenter,
.mrb-wp-content img.alignnone {
  display: block;
  margin: 16px auto;
}

.mrb-wp-content .wp-block-image img,
.mrb-wp-content figure img {
  border-radius: 18px;
}

.mrb-wp-content .wp-block-gallery img,
.mrb-wp-content .gallery img {
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(16, 36, 71, 0.12);
}

.mrb-wp-content figure {
  margin: 24px 0;
}

.mrb-wp-content h1,
.mrb-wp-content h2,
.mrb-wp-content h3 {
  color: var(--mrb-primary);
}

.mrb-wp-content p,
.mrb-wp-content li {
  color: var(--mrb-muted);
}

.mrb-site-footer {
  padding: 32px 0 42px;
  border-top: 1px solid rgba(23, 52, 95, 0.08);
  background: #f7f9fd;
}

.mrb-footer-grid {
  width: min(var(--mrb-max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.mrb-site-footer h2,
.mrb-site-footer h3 {
  margin: 0 0 12px;
  color: var(--mrb-text);
}

.mrb-footer-nav .menu {
  display: grid;
  gap: 10px;
}

.mrb-footer-nav a,
.mrb-social-links a {
  text-decoration: none;
}

.mrb-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.mrb-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.mrb-social-facebook { background: #1877f2; }
.mrb-social-instagram { background: #d62976; }
.mrb-social-youtube { background: #ff0000; }
.mrb-social-pinterest { background: #e60023; }
.mrb-social-tiktok { background: #111111; }
.mrb-social-x { background: #0f1419; }
.mrb-social-nextdoor { background: #00b246; }

.mrb-copyright {
  width: min(var(--mrb-max), calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 52, 95, 0.08);
  color: var(--mrb-muted);
  font-size: 0.92rem;
}

.mrb-admin-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--mrb-accent);
  background: #fff7f4;
}

@media (max-width: 1080px) {
  .mrb-header-inner {
    grid-template-columns: auto auto;
  }

  .mrb-header-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .mrb-header-nav .menu {
    justify-content: center;
  }

  .mrb-footer-grid,
  .mrb-grid,
  .mrb-photo-gallery,
  .mrb-cta-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .mrb-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mrb-header-cta {
    display: none;
  }

  .mrb-header-nav {
    display: none;
  }

  .mrb-header-nav.is-open {
    display: block;
    padding-bottom: 18px;
  }

  .mrb-header-nav .menu,
  .mrb-header-nav .sub-menu {
    display: grid;
    position: static;
    min-width: 0;
    gap: 10px;
    box-shadow: none;
  }

  .mrb-header-nav .menu {
    justify-content: stretch;
  }

  .mrb-header-nav .menu > li,
  .mrb-header-nav .sub-menu {
    width: 100%;
  }

  .mrb-header-nav a {
    width: 100%;
    justify-content: space-between;
  }

  .mrb-header-nav .menu > li:hover > .sub-menu,
  .mrb-header-nav .menu > li:focus-within > .sub-menu,
  .mrb-header-nav .sub-menu {
    display: grid;
    padding-left: 12px;
    margin-top: 8px;
    background: transparent;
    border: 0;
  }

  .mrb-footer-grid,
  .mrb-grid,
  .mrb-photo-gallery,
  .mrb-cta-band {
    grid-template-columns: 1fr;
  }

  .mrb-page-card {
    padding: 26px 18px;
  }

  .mrb-feature-hero {
    grid-template-columns: 1fr;
  }

  .mrb-feature-hero__media img {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .mrb-branding img {
    width: 60px;
  }

  .mrb-brand-title {
    font-size: 1rem;
  }

  .mrb-hero {
    padding-top: 28px;
  }

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

  .mrb-button,
  .mrb-header-cta {
    width: 100%;
  }
}
