/* ============================================================
   KRERMAR Handyman Services LLC — site styles
   Brand: near-black + golden amber + warm cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap');

:root {
  --ink:        #141312;
  --ink-2:      #1d1b19;
  --ink-3:      #272421;
  --amber:      #d6982f;
  --amber-2:    #e7a838;
  --amber-deep: #b97e1d;
  --cream:      #f6f1e7;
  --cream-2:    #ece3d3;
  --cream-3:    #ddd1bb;
  --paper:      #fbf8f2;

  --on-dark:        #f6f1e7;
  --on-dark-soft:   rgba(246,241,231,0.66);
  --on-dark-faint:  rgba(246,241,231,0.40);
  --on-light:       #1a1816;
  --on-light-soft:  #5c554b;

  --line-dark:  rgba(246,241,231,0.12);
  --line-light: rgba(20,19,18,0.10);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-card: 0 1px 2px rgba(0,0,0,0.06), 0 18px 40px -24px rgba(20,19,18,0.30);
  --shadow-lift: 0 2px 4px rgba(0,0,0,0.08), 0 30px 60px -28px rgba(20,19,18,0.42);

  --ease: cubic-bezier(.22,.61,.36,1);

  font-family: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-light);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
}
.kicker.on-dark { color: var(--amber-2); }

/* Section heading scale */
.h-display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.h-section {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--on-light-soft);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--amber);
  --fg: #1a1206;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(214,152,47,0.6); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--on-dark);
  border-color: var(--line-dark);
}
.btn--ghost:hover { background: rgba(246,241,231,0.06); border-color: rgba(246,241,231,0.4); box-shadow: none; }
.btn--dark {
  --bg: var(--ink);
  --fg: var(--cream);
  border-color: var(--ink);
}
.btn--dark:hover { background: #000; border-color: #000; box-shadow: none; }
.btn--lg { padding: 19px 34px; font-size: 1.1rem; }
.btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20,19,18,0.0);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20,19,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
}
.nav {
  display: flex; align-items: center; gap: 22px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark .b1 { font-weight: 900; font-size: 1.18rem; letter-spacing: 0.02em; color: var(--cream); }
.brand .wordmark .b2 { font-weight: 600; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber-2); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  font-size: 0.95rem; font-weight: 600;
  color: var(--on-dark-soft);
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--cream); background: rgba(246,241,231,0.07); }

.nav-call {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 4px;
  background: var(--amber); color: #1a1206;
  font-weight: 800; font-size: 0.98rem;
  transition: transform .16s var(--ease), background .16s;
}
.nav-call:hover { background: var(--amber-2); transform: translateY(-1px); }
.nav-call svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  background: rgba(246,241,231,0.04);
  border-radius: 6px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--cream); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 70;
  width: min(86vw, 360px);
  background: var(--ink-2);
  border-left: 1px solid var(--line-dark);
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-menu a.mm-link {
  padding: 14px 12px; font-size: 1.2rem; font-weight: 700; color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a.mm-link:hover { color: var(--amber-2); }
.mm-close { width:44px;height:44px;border:none;background:none;cursor:pointer; }
.mm-close svg { width: 26px; height: 26px; stroke: var(--cream); }
.scrim {
  position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  margin-top: -76px;
  padding-top: 76px;
  overflow: hidden;
}
.hero::before {
  /* subtle amber glow */
  content: "";
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(214,152,47,0.16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero h1 { margin: 22px 0 0; }
.hero h1 .amber { color: var(--amber-2); }
.hero .lede { color: var(--on-dark-soft); margin-top: 22px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-phone {
  display: flex; align-items: center; gap: 14px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.hero-phone .pill {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  background: rgba(214,152,47,0.14); border: 1px solid rgba(214,152,47,0.4);
  display: grid; place-items: center;
}
.hero-phone .pill svg { width: 22px; height: 22px; stroke: var(--amber-2); }
.hero-phone .ph-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint); font-weight: 700; }
.hero-phone .ph-num { font-size: 1.5rem; font-weight: 900; color: var(--cream); letter-spacing: -0.01em; }
.hero-phone .ph-num:hover { color: var(--amber-2); }

/* hero image side */
.hero-media { position: relative; z-index: 2; }
.hero-media image-slot {
  width: 100%; height: clamp(360px, 46vw, 560px);
  box-shadow: var(--shadow-lift);
}
.hero-media .badge {
  position: absolute; left: -22px; bottom: -22px;
  background: var(--amber); color: #1a1206;
  padding: 16px 20px; border-radius: 6px;
  box-shadow: var(--shadow-lift);
  max-width: 230px;
}
.hero-media .badge .big { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.hero-media .badge .small { font-size: 0.8rem; font-weight: 700; margin-top: 4px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--amber);
  color: #1a1206;
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 30px;
  padding-block: 22px;
}
.trust-item { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; }
.trust-item svg { width: 22px; height: 22px; flex: none; }

/* ---------- Section frame ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .h-section { margin-top: 16px; }
.section-head p { margin-top: 18px; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .lede { color: var(--on-dark-soft); }
.cream { background: var(--cream); }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.svc-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 26px 24px 28px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(214,152,47,0.5); }
.svc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-ico {
  width: 50px; height: 50px; border-radius: 8px;
  background: var(--ink); color: var(--amber-2);
  display: grid; place-items: center; margin-bottom: 18px;
}
.svc-ico svg { width: 26px; height: 26px; stroke: var(--amber-2); }
.svc-card h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; }
.svc-card p { margin-top: 9px; font-size: 0.95rem; color: var(--on-light-soft); line-height: 1.5; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 12px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-dark); }
.step .num { font-size: 2.4rem; font-weight: 900; color: var(--amber-2); line-height: 1; }
.step h3 { margin-top: 14px; font-size: 1.3rem; color: var(--cream); }
.step p { margin-top: 10px; color: var(--on-dark-soft); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.about-media image-slot { width: 100%; height: clamp(380px, 42vw, 520px); box-shadow: var(--shadow-card); }
.about-copy .h-section { margin-top: 16px; }
.about-copy p { margin-top: 18px; }
.sig { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.sig .av { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--amber-2); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; flex: none; }
.sig .nm { font-weight: 800; font-size: 1.05rem; }
.sig .rl { font-size: 0.88rem; color: var(--on-light-soft); }
.stat-row { display: flex; gap: 38px; margin-top: 30px; flex-wrap: wrap; }
.stat .n { font-size: 2.3rem; font-weight: 900; color: var(--on-light); line-height: 1; }
.stat .l { font-size: 0.86rem; color: var(--on-light-soft); margin-top: 6px; font-weight: 600; }
.dark .stat .n { color: var(--cream); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery .gphoto {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform .35s ease;
}
.gallery .gphoto:hover img { transform: scale(1.05); }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev-card {
  background: var(--paper); border: 1px solid var(--line-light);
  border-radius: 10px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--amber); }
.rev-card .quote { font-size: 1.06rem; line-height: 1.55; font-weight: 500; color: var(--on-light); flex: 1; }
.rev-who { display: flex; align-items: center; gap: 12px; }
.rev-who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--cream-2); color: var(--amber-deep); display: grid; place-items: center; font-weight: 800; flex: none; }
.rev-who .nm { font-weight: 700; font-size: 0.96rem; }
.rev-who .loc { font-size: 0.82rem; color: var(--on-light-soft); }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 6px;
  background: rgba(246,241,231,0.04);
  border: 1px solid var(--line-dark);
  font-weight: 600; font-size: 0.98rem; color: var(--cream);
  transition: border-color .2s, background .2s;
}
.area-chip:hover { border-color: rgba(214,152,47,0.5); background: rgba(214,152,47,0.07); }
.area-chip svg { width: 16px; height: 16px; stroke: var(--amber-2); flex: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--amber); color: #1a1206; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 900; letter-spacing: -0.02em; }
.cta-band p { margin-top: 14px; font-weight: 600; font-size: 1.1rem; opacity: 0.82; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-phone {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  padding: 22px; border-radius: 8px; font-weight: 900; font-size: 1.6rem;
  transition: transform .18s var(--ease);
}
.cta-phone:hover { transform: translateY(-2px); }
.cta-phone svg { width: 26px; height: 26px; stroke: var(--amber-2); }
.cta-note { text-align: center; font-weight: 700; font-size: 0.9rem; opacity: 0.7; }

/* ---------- Footer ---------- */
.footer { background: #0e0d0c; color: var(--on-dark); padding-block: clamp(48px,6vw,72px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer .brand .wordmark .b1 { font-size: 1.3rem; }
.footer-about { margin-top: 18px; color: var(--on-dark-soft); max-width: 320px; font-size: 0.96rem; }
.foot-col h4 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-2); margin-bottom: 16px; font-weight: 800; }
.foot-col a, .foot-col p { display: block; color: var(--on-dark-soft); font-size: 0.98rem; padding: 5px 0; }
.foot-col a:hover { color: var(--cream); }
.foot-contact a { display: flex; align-items: center; gap: 10px; }
.foot-contact svg { width: 16px; height: 16px; stroke: var(--amber-2); flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; color: var(--on-dark-faint); font-size: 0.86rem; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  background: var(--ink); border-top: 1px solid var(--line-dark);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--amber); color: #1a1206;
  padding: 16px; border-radius: 6px; font-weight: 900; font-size: 1.15rem;
}
.call-bar svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,9,8,0.92);
  display: none; align-items: center; justify-content: center; padding: 5vw;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lift); }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; border: none; background: rgba(246,241,231,0.12); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 24px; height: 24px; stroke: var(--cream); }

/* ---------- Image slot empty-state polish ---------- */
image-slot::part(frame) {
  background: rgba(20,19,18,0.04);
  border: 1.5px dashed rgba(214,152,47,0.55);
}
image-slot::part(empty) { color: #9a8455; }
.hero-media image-slot::part(frame),
.dark image-slot::part(frame) {
  background: rgba(246,241,231,0.05);
  border-color: rgba(214,152,47,0.45);
}
.hero-media image-slot::part(empty),
.dark image-slot::part(empty) { color: rgba(246,241,231,0.74); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .nav-call.desktop { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { order: -1; }
  .hero-media .badge { left: auto; right: 16px; bottom: -18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 24px; }
  .rev-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .call-bar { display: block; }
  .nav { height: 66px; }
  .hero { margin-top: -66px; padding-top: 66px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .area-list { grid-template-columns: 1fr; }
  .stat-row { gap: 26px; }
}
@media (max-width: 460px) {
  .svc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
