/* ==========================================================================
   Hugo's Framing and General Contractor LLC — main stylesheet
   ========================================================================== */

:root {
  --ink: #0b0b09;
  --ink-2: #141210;
  --ink-3: #1e1c1a;
  --cyan: #0d8fa8;
  --cyan-deep: #0b7488;
  --cream: #f5f2ee;
  --cream-line: #e8e4de;
  --cream-line-2: #e0dbd4;
  --text-light: #d8d4cc;
  --text-mid: #968f85;
  --text-dark: #2a2826;
  --text-body: #4a4844;
  --text-muted: #7a756e;
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: #fff;
  line-height: 1.5;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--cyan);
  color: #fff;
  padding: 10px 18px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- NAV ---------- */
.nav {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 64px;
  border-bottom: 1px solid var(--ink-3);
  position: relative;
  flex-wrap: wrap;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 0; }
.nav-name { font-size: 16px; font-weight: 600; color: var(--text-light); line-height: 1.3; }
.nav-name em { color: var(--cyan); font-style: normal; }
.nav-sub { display: block; font-size: 11px; color: #8a857c; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text-light); }
.nav-menu { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #8a857c; font-size: 15px; text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-phone { font-size: 14px; color: var(--text-light); font-weight: 600; text-decoration: none; }
.nav-btn { background: var(--cyan); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 3px; text-decoration: none; white-space: nowrap; }
.nav-btn:hover { background: #0b7488; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; min-height: 400px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 70%; z-index: 0; }
.hero-ov { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,11,9,0.93) 45%, rgba(11,11,9,0.72) 100%); z-index: 1; }
.hero-in { position: relative; z-index: 2; width: 100%; padding: 56px 24px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 280px; }
.hero-kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; color: var(--text-light); text-transform: uppercase; margin-bottom: 18px; }
.hero-sub { font-size: 18px; color: var(--text-mid); line-height: 1.75; margin-bottom: 28px; max-width: 420px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cyan { background: var(--cyan); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 26px; border-radius: 3px; text-decoration: none; }
.btn-cyan:hover { background: #0b7488; }
.btn-ghost { border: 1px solid #3a3835; color: var(--text-mid); font-size: 14px; font-weight: 500; padding: 12px 26px; border-radius: 3px; text-decoration: none; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-contact { flex: 0 0 256px; background: var(--ink-2); border: 1px solid #2a2826; }
.hc-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a857c; padding: 20px 20px 0; margin-bottom: 14px; }
.hc-rows { padding: 0 20px; }
.hc-row { padding: 13px 0; border-bottom: 1px solid var(--ink-3); }
.hc-row:last-of-type { border-bottom: none; padding-bottom: 20px; }
.hc-key { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: #8a857c; margin-bottom: 4px; font-weight: 600; }
.hc-val { font-size: 16px; color: #8a857c; }
.hc-val a { text-decoration: none; }
.hc-val.cyan { color: var(--cyan); font-weight: 700; }
.hc-val.sm { font-size: 12px; }
.hc-btn { background: var(--cyan); color: #fff; font-size: 16px; font-weight: 700; padding: 16px 20px; text-decoration: none; display: block; text-align: center; }
.hc-btn:hover { background: #0b7488; }

/* ---------- TRUST BAR ---------- */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--cream-line); padding: 13px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.trust-item { font-size: 14px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.trust-item em { color: var(--cyan); font-style: normal; margin-right: 5px; }

/* ---------- SERVICES ---------- */
.svc-section { background: #fff; }
.svc-head { padding: 48px 24px 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svc-head h2 { font-family: var(--font-display); font-size: 27px; color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.03em; }
.svc-head a { font-size: 13px; color: var(--cyan); text-decoration: none; font-weight: 600; }
.svc-2col { display: grid; grid-template-columns: 1fr 1fr; }
.svc-cell { padding: 24px 28px; border-top: 1px solid var(--cream-line); border-right: 1px solid var(--cream-line); transition: background 0.15s; background: #fff; }
.svc-cell:nth-child(2n) { border-right: none; }
.svc-cell:hover { background: #f9f7f4; }
.svc-cell.feat { border-top: 2px solid var(--cyan); background: #f0fafc; }
.svc-cell.feat:hover { background: #e8f7fa; }
.svc-photo { width: 100%; aspect-ratio: 16/7; object-fit: cover; margin-bottom: 16px; }
.svc-photo-sm { width: 100%; aspect-ratio: 16/6; object-fit: cover; margin-bottom: 12px; }
.svc-cell-num { font-size: 11px; color: #c0bbb4; font-weight: 600; margin-bottom: 8px; }
.svc-cell.feat .svc-cell-num { color: #b3e0e8; }
.svc-cell-name { font-family: var(--font-display); font-size: 19px; font-weight: 400; color: #2a2826; margin-bottom: 10px; }
.svc-cell.feat .svc-cell-name { color: var(--cyan); }
.svc-cell.sm .svc-cell-name { font-size: 17px; color: #4a4844; }
.svc-cell-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.svc-pill { display: inline-block; background: rgba(13,143,168,0.08); color: var(--cyan); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; margin-left: 8px; font-weight: 600; }
.svc-cell-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--cyan); text-decoration: none; font-weight: 700; }
.svc-cell.sm { padding: 18px 28px; }
.svc-cell.sm .svc-cell-desc { font-size: 14px; color: #8a8580; }

/* ---------- WHY ---------- */
.why-section { background: var(--cream); padding: 56px 24px; }
.why-h { font-family: var(--font-display); font-size: 27px; color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 32px; font-weight: 400; }
.why-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.why-rows { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: start; padding: 20px 0; border-top: 1px solid var(--cream-line-2); }
.why-row:last-child { border-bottom: 1px solid var(--cream-line-2); }
.why-row-title { font-family: var(--font-display); font-size: 15px; color: var(--text-dark); font-weight: 400; }
.why-row-body { font-size: 16px; color: var(--text-muted); line-height: 1.8; }
.why-photo { border: 1px solid var(--cream-line-2); background: #fff; }
.why-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.why-photo figcaption { font-size: 13px; color: var(--text-muted); padding: 14px 16px; line-height: 1.6; font-style: italic; }

/* ---------- PORTFOLIO ---------- */
.port-section { background: var(--ink); padding: 56px 0; }
.port-head { padding: 0 24px 24px; display: flex; align-items: flex-end; justify-content: space-between; }
.port-h { font-family: var(--font-display); font-size: 27px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; }
.port-mosaic { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; margin-bottom: 3px; height: clamp(320px, 38vw, 560px); }
.port-main { position: relative; overflow: hidden; height: 100%; }
.port-main picture, .port-side-sm picture, .port-grid-item picture { height: 100%; }
.port-main img, .port-side-sm img { width: 100%; height: 100%; object-fit: cover; }
.port-side-stack { display: flex; flex-direction: column; gap: 3px; height: 100%; }
.port-side-sm { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3px; }
.port-grid-item { aspect-ratio: 5/3; position: relative; overflow: hidden; cursor: zoom-in; }
.port-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.port-grid-item:hover img { transform: scale(1.03); }
.port-main, .port-side-sm { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,11,9,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.port-lbl { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(11,11,9,0.96)); }
.port-lbl strong { font-size: 14px; font-weight: 700; color: var(--text-light); display: block; }
.port-lbl span { font-size: 11px; color: var(--cyan); font-weight: 500; }

/* ---------- SERVICE AREA ---------- */
.area-section { background: var(--cream); padding: 48px 24px; text-align: center; }
.area-section h2 { font-family: var(--font-display); font-size: 25px; color: #1a1a1a; text-transform: uppercase; margin-bottom: 10px; font-weight: 400; }
.area-lede { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }
.area-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-list li { font-size: 14px; color: var(--text-dark); background: #fff; border: 1px solid var(--cream-line-2); padding: 6px 16px; border-radius: 20px; font-weight: 600; }

/* ---------- CTA / CONTACT ---------- */
.cta-band { background: var(--cyan-deep); padding: 44px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-display); font-size: 31px; color: #fff; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; }
.cta-text p { font-size: 16px; color: #fff; margin-top: 4px; }
.cta-form { background: rgba(11,11,9,0.15); padding: 20px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; flex: 0 1 340px; min-width: 260px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; flex-direction: column; gap: 4px; }
.form-row label { font-size: 13px; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  background: rgba(255,255,255,0.95);
  color: var(--text-dark);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.cta-dark { background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; padding: 14px 30px; border-radius: 3px; text-decoration: none; border: none; cursor: pointer; white-space: nowrap; }
.cta-dark:hover { background: #000; }
.form-note { font-size: 13px; color: #fff; min-height: 14px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); padding: 40px 24px 20px; border-top: 1px solid var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-bname { font-family: var(--font-display); font-size: 16px; color: var(--text-light); margin-bottom: 10px; font-weight: 400; }
.footer-bdesc { font-size: 15px; color: #a39d92; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 15px; color: #a39d92; text-decoration: none; }
.footer-col a:hover { color: var(--cyan); }
.footer-bot { border-top: 1px solid var(--ink-3); padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bot p { font-size: 12px; color: #968f85; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--ink-3);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-links a { padding: 10px 4px; border-bottom: 1px solid var(--ink-3); }
  .nav-right { padding: 14px 4px; justify-content: space-between; }

  .hero-in { padding: 40px 20px; }
  .hero-contact { flex: 1 1 100%; }

  .svc-2col { grid-template-columns: 1fr; }
  .svc-cell { border-right: none !important; }

  .why-wrap { grid-template-columns: 1fr; }
  .why-photo { order: -1; }

  .port-mosaic { grid-template-columns: 1fr; height: auto; }
  .port-main { height: auto; aspect-ratio: 16/9; }
  .port-side-stack { height: auto; }
  .port-side-sm { flex: none; aspect-ratio: 16/9; min-height: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .cta-band { flex-direction: column; }
  .cta-form { width: 100%; }
}

@media (max-width: 520px) {
  .why-row { grid-template-columns: 1fr; gap: 6px; }
  .trust-bar { justify-content: flex-start; }
}
