/*
Theme Name: HomeFixx
Theme URI: https://example.com/homefixx
Author: HomeFixx
Description: Clean, modern home repair & handyman theme for the HomeFixx brand.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homefixx
*/

:root {
  --hf-bg: #f4f6f8;
  --hf-white: #ffffff;
  --hf-primary: #111827;
  --hf-primary-soft: #1f2937;
  --hf-accent: #c48a3d;
  --hf-accent-soft: #fbbf24;
  --hf-text: #020617;
  --hf-muted: #6b7280;
  --hf-border: #d1d5db;
  --hf-radius-lg: 18px;
  --hf-radius-xl: 30px;
  --hf-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--hf-text);
  background: radial-gradient(circle at top left, #e5ebf5 0, var(--hf-bg) 40%, #e8edf5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(244,246,248,0.96), rgba(244,246,248,0.90));
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img,
.brand .custom-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-top: 0;
}

.brand-text {
  display: none;
}

.brand-text-main {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.brand-text-sub {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.0rem;
  font-size: 0.82rem;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

/* Ensure the core WP primary menu has no bullets and uses flex layout */
#primary-menu,
#primary-menu li,
#primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#primary-menu li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--hf-muted);
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--hf-text);
  border-bottom-color: rgba(148, 163, 184, 0.9);
}

.hf-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22,163,74,0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: #166534;
}

.hf-phone-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  border: 1px solid rgba(148,163,184,0.32);
  box-shadow: 0 1px 3px rgba(15,23,42,0.12);
  font-size: 0.76rem;
  font-weight: 500;
}

.hf-phone-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #22c55e;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* hidden by default; shown on mobile via media query */
.header-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
}

/* Hero */

.hero {
  padding: 3.4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-left {
  max-width: 540px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 64, 104, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: var(--hf-muted);
  margin-bottom: 1rem;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,0.25);
}

.hero-title {
  font-size: clamp(2.4rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.7rem;
}

.hero-highlight {
  background: linear-gradient(120deg, #f97316, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-subtitle,
.service-card-tagline,
.trust-list,
.contact-panel p,
.contact-meta-card p {
  color: var(--hf-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1.1rem;
}

.btn-primary {
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 0 50%, #fbbf24, #f59e0b, #ea580c);
  color: #111827;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(248, 150, 30, 0.55);
  cursor: pointer;
}

.btn-secondary {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  color: var(--hf-muted);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hf-muted);
}

.hero-trust strong {
  display: block;
  font-size: 0.9rem;
  color: var(--hf-text);
}

/* Hero card right */

.hero-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 1.9rem 1.7rem;
  box-shadow: var(--hf-shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.7rem;
}

.hero-card-item {
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(209,213,219,0.9);
  background: rgba(255,255,255,0.9);
  font-size: 0.72rem;
}

/* Sections */

.section {
  padding: 2.9rem 0 2.4rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.0rem;
  margin-bottom: 1.7rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hf-muted);
}

.section-title {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.1rem;
}

/* Services grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem 1rem;
}

.service-card {
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(209,213,219,0.9);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  padding: 1.1rem 1.05rem 1.2rem;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.service-card-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.service-card-tagline {
  font-size: 0.72rem;
}

.service-list {
  list-style: none;
  margin: 0.35rem 0 0.2rem;
  padding: 0;
  font-size: 0.72rem;
  color: var(--hf-muted);
}

.service-list li {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.service-list li::before {
  content: "•";
  font-size: 0.76rem;
  color: var(--hf-accent);
  margin-top: 0.1rem;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--hf-muted);
}

/* Contact section */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.6rem;
}

.contact-panel {
  border-radius: var(--hf-radius-xl);
  background: radial-gradient(circle at top left, #eff6ff 0, #e0f2fe 30%, #f9fafb 70%);
  border: 1px solid rgba(129, 140, 248, 0.5);
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--hf-shadow-soft);
}

.contact-meta-card {
  border-radius: var(--hf-radius-xl);
  padding: 1.4rem 1.3rem;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.7rem;
  font-size: 0.72rem;
}

/* Footer base (overridden by redesign later) */

.site-footer {
  border-top: 1px solid rgba(148,163,184,0.55);
  padding: 1.4rem 0 1.5rem;
  font-size: 0.72rem;
  color: var(--hf-muted);
  background: rgba(15,23,42,0.01);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
  align-items: center;
}

/* Responsive core layout */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0,1fr);
  }
  .hero {
    padding-top: 2.4rem;
  }
}

@media (max-width: 880px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* ===========================
   Shared page layout + typography
   =========================== */

.hf-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.hf-page-header {
  margin-bottom: 1.75rem;
}

.hf-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--hf-muted);
  margin-bottom: 0.4rem;
}

.hf-page-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
}

.hf-page-subtitle {
  margin-top: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #4b5563;
}

.hf-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.hf-tag-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  font-size: 0.75rem;
  color: #166534;
}

/* Grids / cards */

.hf-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.hf-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 45px rgba(15,23,42,0.04);
}

.hf-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hf-card-sub {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Section blocks */

.hf-section-block {
  padding: 1.8rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.hf-section-block:last-of-type {
  border-bottom: none;
}

.hf-section-block h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hf-section-block p {
  margin: 0.3rem 0 0.8rem;
}

.hf-section-block ul {
  margin: 0.25rem 0 0.8rem 1.1rem;
}

.hf-section-block li {
  margin-bottom: 0.3rem;
}

.hf-range {
  font-weight: 600;
  display: inline-block;
  margin-top: 0.4rem;
  color: #111827;
}

/* Tiny icon tile used in headings */

.hf-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #d4a059;
  margin-right: 8px;
  transform: translateY(3px);
}

/* Callouts / notices */

.hf-note {
  font-size: 0.9rem;
  color: #4b5563;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  margin-top: 1rem;
}

/* FAQ styling */

.hf-faq {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
}

.hf-faq-question {
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.hf-faq-answer {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Contact / estimate layout */

.hf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.hf-contact-meta {
  font-size: 0.9rem;
  color: #4b5563;
}

.hf-contact-meta strong {
  display: block;
  color: #111827;
}

/* Footer redesign */

.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 2.2rem 1.25rem 2.4rem;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-col {
  min-width: 200px;
  flex: 1;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 0.65rem;
  color: #9ca3af;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  color: #9ca3af;
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

/* Mobile adjustments */

@media (max-width: 768px) {
  .hf-page {
    padding: 2rem 1.1rem 3rem;
  }

  .hf-page-title {
    font-size: 1.7rem;
  }

  .hf-grid-2,
  .hf-contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .footer-col {
    min-width: 0;
  }
}

/* HomeFixx Services page card layout */
.hf-services section {
  margin-top: 2.6rem;
}

.hf-services .hf-section-block {
  border-bottom: none;
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin-bottom: 2.4rem;
  box-shadow: 0 22px 60px rgba(15,23,42,0.06);
  border: 1px solid #e0e7ff;
}

.hf-services .hf-section-block:last-of-type {
  margin-bottom: 0;
}

.hf-services .hf-section-block h3 {
  margin-bottom: 0.55rem;
}

.hf-services .hf-section-block p {
  margin-bottom: 0.85rem;
}

.hf-services .hf-section-block ul {
  margin-bottom: 0.85rem;
}

/* Hard override: remove bullets/pseudo bullets from main navigation */
nav.main-nav ul,
nav.main-nav ul li,
nav.main-nav .menu,
nav.main-nav .menu li,
#primary-menu,
#primary-menu li,
#primary-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

nav.main-nav li::before,
#primary-menu li::before {
  content: none !important;
}

/* Upload portal layout */
.hf-upload .hf-page-header {
  max-width: 760px;
}

.hf-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.hf-upload-form-card,
.hf-upload-aside > div {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 2.25rem;
  box-shadow: 0 22px 60px rgba(15,23,42,0.06);
  border: 1px solid #e0e7ff;
}

.hf-upload-form-card h2,
.hf-upload-aside h3 {
  margin-top: 0;
}

.hf-upload-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Segment icons */
.hf-segment-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hf-segment-icons li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hf-segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f3f4ff;
  font-size: 1.1rem;
}

.hf-upload-info-card ol {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.hf-muted {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Mobile adjustments for upload layout */
@media (max-width: 900px) {
  .hf-upload-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Extra-small mobile header tweaks */
@media (max-width: 480px) {
  /* Keep logo from eating the row */
  .brand {
    max-width: 140px;
  }

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

  /* Make Call CTA icon-only to avoid overlap */
  .hf-phone-cta {
    padding: 0.3rem;
    border-radius: 999px;
    min-width: 2.25rem;
    justify-content: center;
  }

  .hf-phone-cta span:nth-child(2),
  .hf-phone-cta span:nth-child(3) {
    display: none;
  }

  .hf-phone-icon {
    font-size: 1rem;
  }
}

/* Mobile sticky action bar */
.hf-mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
}

@media (max-width: 900px) {
  /* Hide header Call CTA on smaller screens; sticky bar handles calls */
  .main-nav .hf-phone-cta {
    display: none !important;
  }

  .hf-mobile-action-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
    background: rgba(244, 246, 248, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.12);
  }

  .hf-mobile-action-bar .hf-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #0f172a;
    background: #ffffff;
  }

  .hf-mobile-action-bar .hf-action-call {
    background: linear-gradient(to right, #f97316, #facc15);
    color: #111827;
    border-color: transparent;
    font-weight: 600;
  }

  .hf-mobile-action-bar .hf-action-text {
    background: #f9fafb;
  }

  .hf-mobile-action-bar .hf-action-estimate {
    background: #111827;
    color: #f9fafb;
    border-color: transparent;
  }

  .hf-mobile-action-bar .hf-action-icon {
    font-size: 1rem;
    line-height: 1;
  }

  /* Avoid content being hidden behind the sticky bar */
  body {
    padding-bottom: 4rem;
  }
}

/* Dim background and lock scroll when nav is open */
body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(2px);
  z-index: 50;
}

/* v3.3 mobile menu cleanup - full-screen overlay */
@media (max-width: 960px) {
  .site-header-inner {
    gap: 0.75rem;
  }

  /* Hide nav by default; JS toggles .is-open */
  .main-nav {
    position: fixed;
    inset: 0;
    min-height: 100vh;        /* add this */
    background: rgba(15, 23, 42, 0.96);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4.5rem 1.75rem 2.5rem;
    gap: 2rem;
    z-index: 9999;
    overflow-y: auto;         /* already fine if present */
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .main-nav .menu > li > a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e5e7eb;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  }

  .main-nav .menu > li:last-child > a {
    border-bottom: none;
  }

  .main-nav .menu > li.current-menu-item > a {
    color: var(--hf-accent-soft);
  }

  /* Show hamburger button on mobile */
  .header-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(148, 163, 184, 0.8);
    font-size: 1.6rem;
    cursor: pointer;
  }

  .main-nav .hf-phone-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: var(--hf-accent);
    color: #111827;
    font-weight: 600;
    text-decoration: none;
  }

  .main-nav .hf-phone-cta .hf-phone-icon {
    font-size: 1.1rem;
  }
}
