/* ==========================================================================
   OC Local Handyman
   Palette: harbor navy into electric blue, safety orange and hard-hat yellow.
   Type: Lexend throughout (built for readability).
   ========================================================================== */

:root {
  --navy-900: #131d4a;
  --navy-800: #1d2b6b;
  --blue-600: #2f5bea;
  --blue-300: #7d97ff;
  --lav-50: #f5f7ff;
  --lav-100: #eef1ff;
  --lav-200: #d3dafd;
  --orange: #ff7a1a;
  --orange-deep: #f06208;
  --yellow: #ffc93c;
  --white: #ffffff;
  --text: #131d4a;
  --muted: #4b5578;
  --on-blue-muted: #d9e0ff;

  --grad: linear-gradient(125deg, #1d2b6b 0%, #2a43b8 55%, #2f5bea 100%);
  --grad-tile: linear-gradient(140deg, #2f5bea, #1d2b6b);

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(29, 43, 107, .35);
}

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding keeps keyboard focus clear of the sticky call bar on phones */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.on-blue :focus-visible, .top :focus-visible { outline-color: var(--yellow); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--yellow); color: var(--navy-900);
  font-weight: 600; text-decoration: none; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 10px;
  font: 600 var(--step-0)/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-orange { background: var(--orange); color: var(--navy-900); }
.btn-orange:hover { background: var(--yellow); }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-800); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--blue-600); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

.text-link { color: var(--blue-600); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy-800); }

/* Icon tiles: the mockup's glossy squares, used for every icon on the site */
.icon-tile {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad-tile); color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(47, 91, 234, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.is-orange { background: linear-gradient(140deg, #ffa25c, #f06208); box-shadow: 0 10px 22px -10px rgba(240, 98, 8, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.icon-tile.is-large { width: 96px; height: 96px; border-radius: 26px; }
.icon-tile.is-large svg { width: 44px; height: 44px; }

/* Top band: header + hero on the blue gradient, curved bottom edge -------- */

.top {
  position: relative;
  background: var(--grad);
  color: var(--white);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.top-curve {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(40px, 7vw, 110px);
  color: var(--white);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.brand-logo { width: 52px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.site-nav ul a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-size: 1rem; color: var(--on-blue-muted);
}
.site-nav ul a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.site-nav ul a[aria-current="page"] { color: var(--white); font-weight: 600; box-shadow: inset 0 -3px 0 var(--orange); border-radius: 8px 8px 0 0; }
.site-nav .btn { margin-left: 12px; min-height: 46px; padding: 0 18px; font-size: 1rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .6); background: transparent; color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* Home hero */
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
  padding-top: clamp(24px, 4vw, 56px);
}
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.hero-lede { margin-top: 20px; max-width: 44ch; color: var(--on-blue-muted); font-size: var(--step-1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: relative; z-index: 2; margin-bottom: calc(-1 * clamp(56px, 9vw, 150px)); }
.hero-art img { width: 100%; max-width: 560px; margin-left: auto; }

/* One orchestrated moment: the house settles into place on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: settle 1s cubic-bezier(.2, .8, .2, 1) both .1s; }
  @keyframes settle { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* Inner-page hero */
.page-hero .container {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
  padding-top: clamp(16px, 3vw, 40px);
}
.page-hero h1 { font-size: var(--step-4); }
.page-hero p { margin-top: 16px; max-width: 50ch; color: var(--on-blue-muted); font-size: var(--step-1); }
.page-hero-art img { width: 100%; max-width: 340px; margin-left: auto; }

/* Sections --------------------------------------------------------------- */

.section { padding: var(--section) 0; }
.section-tint { background: var(--lav-50); }
.section-title { font-size: var(--step-3); }
.section-intro { margin-top: 14px; color: var(--muted); max-width: 58ch; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* Why us */
.why .container {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px 72px; align-items: start;
}
.why-intro .text-link { display: inline-block; margin-top: 24px; }
.feature-list { list-style: none; padding: 0; display: grid; gap: 28px; }
.feature-list li { display: flex; gap: 20px; align-items: flex-start; }
.feature-list h3 { font-size: var(--step-1); }
.feature-list p { color: var(--muted); margin-top: 4px; }

/* The "Two direct lines" item is clickable and opens the call dialog */
.feature-link {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
  margin: -14px; padding: 14px; border-radius: 16px;
  color: inherit; text-decoration: none;
  border: 2px solid var(--lav-200);
  transition: background-color .15s ease, border-color .15s ease;
}
.feature-list li > .feature-link { flex: 1; }
.feature-link > div { flex: 1; min-width: 0; }
.feature-link:hover { background: var(--lav-50); border-color: var(--blue-300); }
.feature-cta {
  flex-basis: 100%; padding-left: 76px;
  color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}

/* Call dialog */
.call-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 32px clamp(20px, 5vw, 36px) 36px;
  border: 0; border-radius: 24px;
  background: var(--white); color: var(--text);
  box-shadow: 0 30px 70px -20px rgba(19, 29, 74, .55);
}
.call-dialog::backdrop { background: rgba(19, 29, 74, .6); }
.call-dialog h2 { font-size: var(--step-2); padding-right: 48px; }
.call-dialog .muted { color: var(--muted); margin-top: 6px; }
.call-dialog .big-number { margin: 6px 0 0; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); }
.dialog-close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--lav-100); color: var(--navy-800); cursor: pointer;
}
.dialog-close svg { width: 22px; height: 22px; }
.dialog-close:hover { background: var(--lav-200); }
@media (prefers-reduced-motion: no-preference) {
  .call-dialog[open] { animation: dialog-in .2s cubic-bezier(.2, .8, .2, 1); }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* Service icon row */
.services-card {
  background: var(--white); border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  text-align: center;
}
.service-icons {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  margin-top: 40px;
}
.service-icons a {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 16px 8px; border-radius: 16px;
  text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3;
}
.service-icons a:hover { background: var(--lav-100); }
.services-card .btn { margin-top: 36px; }

/* How it works */
.steps { list-style: none; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); margin-top: 56px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: center;
  counter-increment: step;
}
.step:nth-child(even) .step-art { order: 2; }
.step-art img { width: 100%; max-width: 380px; margin: 0 auto; }
.step-text { max-width: 44ch; }
.step-text h3 { font-size: var(--step-2); }
.step-text h3::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-right: 14px; vertical-align: 4px;
  border-radius: 50%; background: var(--orange); color: var(--navy-900);
  font-size: 1rem;
}
.step-text p { color: var(--muted); margin-top: 12px; }

/* Team */
.team-band {
  position: relative;
  background: linear-gradient(var(--white) 0 38%, transparent 38%), var(--grad);
  padding-bottom: var(--section);
}
.team-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: 24px;
  margin-top: 40px;
}
.person {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center;
}
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: 50% 100%; padding: 20px 20px 0; background: var(--lav-100); }
.person h3 { font-size: var(--step-1); padding: 18px 16px 2px; }
.person p { color: var(--muted); padding: 0 16px; font-size: 1rem; }
.person-phone {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 6px 0 14px; padding: 0 14px; border-radius: 10px;
  color: var(--blue-600); font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.person-phone svg { width: 18px; height: 18px; }
.person-phone:hover { background: var(--lav-100); text-decoration: underline; text-underline-offset: 4px; }
.team-note { margin-top: 32px; text-align: center; color: var(--on-blue-muted); }
.team-note a { color: var(--white); }

/* Service area */
.area { background: var(--grad); color: var(--white); padding: var(--section) 0; }
.area .section-intro { color: var(--on-blue-muted); }
.city-list {
  list-style: none; padding: 0; margin-top: 40px;
  columns: 4 180px; column-gap: 32px;
}
.city-list li { padding: 6px 0; color: var(--on-blue-muted); break-inside: avoid; }
.city-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--orange); vertical-align: 2px; }
.area-note { margin-top: 28px; color: var(--on-blue-muted); }

/* Call band */
.call-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  background: var(--lav-100); border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
}
.call-band h2 { font-size: var(--step-3); }
.call-band p { color: var(--muted); margin-top: 8px; }
.big-number {
  display: block; color: var(--navy-800);
  font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); line-height: 1.05;
  font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap;
}
.big-number:hover { color: var(--blue-600); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Services page ------------------------------------------------------------ */

.jump-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--lav-100); color: var(--navy-800);
  text-decoration: none; font-weight: 500; font-size: 1rem;
}
.jump-list a:hover { background: var(--lav-200); }

.service-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  scroll-margin-top: 24px;
}
.service-detail + .service-detail { border-top: 1px solid var(--lav-200); }
.service-detail:nth-child(even) .service-media { order: 2; }
.service-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-media.is-art {
  display: grid; place-items: center; aspect-ratio: 3 / 2;
  border-radius: var(--radius); background: var(--lav-100);
}
.service-text h2 { font-size: var(--step-3); }
.service-text > p { margin-top: 14px; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 15px; height: 8px;
  border-left: 3px solid var(--blue-600); border-bottom: 3px solid var(--blue-600);
  transform: rotate(-45deg);
}

.faq-list { display: grid; gap: 12px; margin-top: 32px; max-width: 820px; }
.faq-item { background: var(--white); border-radius: 14px; box-shadow: 0 6px 18px -12px rgba(29, 43, 107, .35); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 22px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lav-100); color: var(--blue-600); font-size: 1.25rem; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }

/* About page --------------------------------------------------------------- */

.story .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.story p + p { margin-top: 16px; }
.story .section-title + p { margin-top: 18px; }
.story p { color: var(--muted); }

/* Gallery page ------------------------------------------------------------- */

.empty-state { max-width: 640px; margin: 0 auto; text-align: center; }
.empty-state img { width: 100%; max-width: 360px; margin: 0 auto 32px; }
.empty-state p { color: var(--muted); margin-top: 14px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }

/* Contact page ------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.contact-card {
  background: var(--white); border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
}
.contact-person { margin-top: 28px; }
.contact-person + .contact-person { padding-top: 28px; border-top: 1px solid var(--lav-200); }
.contact-person h3 { font-size: var(--step-1); }
.contact-card .big-number { margin: 6px 0 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.contact-person .contact-actions { margin-top: 16px; }
.contact-card .muted { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ready-list { margin-top: 18px; padding-left: 1.2em; color: var(--muted); display: grid; gap: 8px; }
.ready-list li::marker { color: var(--orange-deep); }
.contact-card h2 { font-size: var(--step-2); }
.contact-card .city-list { columns: 2 140px; margin-top: 18px; }
.contact-card .city-list li { color: var(--muted); }

/* Privacy page ------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 40px; }
.prose p, .prose ul { margin-top: 12px; color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose .updated { margin-top: 0; font-size: var(--step--1); }

/* Footer ------------------------------------------------------------------- */

.site-footer { background: var(--navy-900); color: var(--on-blue-muted); padding: 56px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 120px; height: auto; margin-bottom: 20px; }
.site-footer h2 { color: var(--white); font-size: 1.0625rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-blue-muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-phones { margin-top: 12px; }
.footer-phone { color: var(--white) !important; font-weight: 600; font-size: var(--step-1); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--step--1); }

/* Mobile call bar ---------------------------------------------------------- */

.mobile-call { display: none; }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1000px) {
  .service-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    display: none;
    position: absolute; top: 84px; left: var(--gutter); right: var(--gutter); z-index: 50;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px; border-radius: 16px;
    background: var(--navy-900); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: 12px 14px; }
  .js .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); border-radius: 0 8px 8px 0; }
  .js .site-nav .btn { margin: 4px 0 0; }
  .site-nav { flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; }

  .hero .container, .page-hero .container, .why .container, .step, .service-detail, .story .container, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-art { margin-bottom: 0; }
  .hero-art img, .page-hero-art img { margin: 0 auto; max-width: 420px; }
  .page-hero-art { display: none; }
  .step:nth-child(even) .step-art, .service-detail:nth-child(even) .service-media { order: 0; }
  .step-art img { max-width: 300px; }
}

@media (max-width: 767px) {
  html { scroll-padding-bottom: 88px; }
  body { padding-bottom: 76px; }
  .site-nav .btn { display: none; }
  .js .site-nav .btn { display: inline-flex; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    min-height: 54px; border-radius: 12px;
    background: var(--orange); color: var(--navy-900);
    font-weight: 600; font-size: 1.125rem; text-decoration: none;
    box-shadow: 0 10px 24px -6px rgba(19, 29, 74, .45);
  }
  .mobile-call svg { width: 22px; height: 22px; }
  .service-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .person h3 { font-size: 1.0625rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .big-number { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
