/* =========================================================
   FREDRIC CHAD BEESLEY L.L.C — Handyman Services
   Stylesheet — Modern Clean Contractor theme
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #1E3A5F;
  --navy-dark: #142943;
  --navy-light: #2C4F7C;
  --gold: #E8B923;
  --gold-dark: #C89A16;
  --blue-accent: #4A6FA5;
  --white: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-soft-2: #EEF1F6;
  --text-dark: #1C2733;
  --text-muted: #5B6B7C;
  --border-color: #E1E6EC;
  --success: #1E7B4D;
  --danger: #B3261E;

  /* Type */
  --font-heading: "Urbanist", "Segoe UI", Arial, sans-serif;
  --font-body: "Epilogue", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(20, 41, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 41, 67, 0.12);
  --shadow-lg: 0 20px 48px rgba(20, 41, 67, 0.18);
  --header-height: 84px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* -------------------- Layout helpers -------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 185, 35, 0.14);
  color: var(--navy);
  border: 1px solid rgba(232, 185, 35, 0.4);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 52px; width: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-text .brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-color);
  background: var(--white);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 12px 24px 20px; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav a.active { color: var(--gold-dark); }
.mobile-nav .btn { margin-top: 14px; }

@media (max-width: 920px) {
  .main-nav { display: none; }
  .header-cta .btn-label { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 600px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 480px) {
  .brand-text { display: none; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 12px 16px; font-size: 0.92rem; }
}

/* -------------------- Hero -------------------- */
.hero {
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--white) 55%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,0.16) 0%, rgba(232,185,35,0) 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0 90px;
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin: 20px 0 18px;
}
.hero-copy h1 .accent { color: var(--gold-dark); }
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 30px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--gold-dark); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3/2;
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}
.hero-badge .icon-circle {
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge strong { display: block; font-size: 0.95rem; font-family: var(--font-heading); }
.hero-badge span { font-size: 0.78rem; opacity: 0.85; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; }
  .hero-media { order: -1; }
  .hero-badge { left: 12px; bottom: -18px; }
}

/* -------------------- Cards / Grids -------------------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card p { color: var(--text-muted); font-size: 0.96rem; }

.card-light {
  background: var(--bg-soft);
  border-color: transparent;
}
.card-light .icon-wrap { background: rgba(232, 185, 35, 0.18); color: var(--gold-dark); }

/* Why choose us on navy */
.feature-navy {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.feature-navy .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(232, 185, 35, 0.22);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-navy h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 6px; }
.feature-navy p { color: rgba(255,255,255,0.72); font-size: 0.93rem; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(232,185,35,0.16), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(74,111,165,0.28), transparent 50%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 14px auto 30px; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* -------------------- Page header (inner pages) -------------------- */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.page-header p { max-width: 620px; margin: 16px auto 0; color: var(--text-muted); font-size: 1.08rem; }

/* -------------------- Services page grid -------------------- */
.service-icon-lg {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* -------------------- About page -------------------- */
.about-copy p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 18px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 12px;
}
.check-list svg { color: var(--gold-dark); margin-top: 3px; flex-shrink: 0; }

.info-panel {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}
.info-panel h2 { margin-bottom: 10px; }
.info-panel p { color: var(--text-muted); max-width: 480px; margin: 0 auto 22px; }

/* -------------------- Contact page -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); margin-bottom: 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .required { color: var(--danger); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(74,111,165,0.12);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-error { color: var(--danger); font-size: 0.84rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

.form-alert {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-alert.success { background: rgba(30,123,77,0.1); color: var(--success); border: 1px solid rgba(30,123,77,0.3); }
.form-alert.error { background: rgba(179,38,30,0.08); color: var(--danger); border: 1px solid rgba(179,38,30,0.3); }

/* Honeypot field - hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.side-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card .contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 600;
  color: var(--text-dark);
}
.side-card .contact-line svg { color: var(--gold-dark); flex-shrink: 0; }
.side-card .contact-line:hover { color: var(--blue-accent); }
.side-card.navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.side-card.navy .contact-line { color: var(--white); }
.side-card ul.plain-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.94rem; padding: 6px 0; color: var(--text-muted);
}
.side-card ul.plain-list svg { color: var(--gold-dark); flex-shrink: 0; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); }
.footer-top { padding: 64px 0 44px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; width: 46px; }
.footer-brand .fname { font-family: var(--font-heading); font-weight: 800; color: var(--white); }
.footer-brand .fsub { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { opacity: 0.82; font-size: 0.95rem; transition: opacity 0.15s ease; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-col .contact-line { display: flex; align-items: flex-start; gap: 10px; opacity: 0.85; font-size: 0.95rem; margin-bottom: 13px; }
.footer-col .contact-line svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-col .contact-line:hover { opacity: 1; }
.footer-desc { font-size: 0.92rem; opacity: 0.78; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}
.footer-bottom p + p { margin-top: 4px; }

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  border: none;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); }
