/* ==========================================================================
   Jacq of All Trades — site styles
   Palette: navy #071224 · work red #C92532 · white · warm off-white #F6F1E8 · steel #6E7683
   Headlines: Oswald (bold condensed) · Body: Inter
   ========================================================================== */

:root {
  --navy: #071224;
  --red: #C92532;
  --red-dark: #a91d29;
  --white: #ffffff;
  --cream: #F6F1E8;
  --steel: #6E7683;
  --ink: #0f1b30;
  --line: rgba(7, 18, 36, 0.12);

  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(7, 18, 36, 0.08);
  --shadow-lg: 0 18px 50px rgba(7, 18, 36, 0.16);

  --font-head: 'Oswald', 'Arial Narrow', Helvetica, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.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 (accessibility) — visible on keyboard focus */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 0.7rem 1.1rem; border-radius: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; outline: 2px solid #fff; }

/* Visible focus ring for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(201,37,50,0.55); outline-offset: 2px;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.4px; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); text-transform: none; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.2rem; }

.kicker, .eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 0.5rem;
}
.kicker-light { color: #ff7a84; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: #101f38; color: #fff; }
.btn-block { width: 100%; padding: 1rem; font-size: 1.05rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 70px; width: auto; max-width: 360px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px;
  font-weight: 500; font-size: 0.98rem; color: var(--navy);
}
.nav-menu a:hover { color: var(--red); text-decoration: none; }
.nav-phone a {
  background: var(--red); color: #fff !important; padding: 0.55rem 1rem; border-radius: 8px;
}
.nav-phone a:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2.5px; background: var(--navy);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, #14284a 0%, rgba(20,40,74,0) 60%),
    linear-gradient(180deg, #081428 0%, var(--navy) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--red);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.2rem; align-items: center; padding: 5rem 0 5.2rem; }
.hero .eyebrow { color: #ff7a84; }
.hero h1 { color: #fff; max-width: 16ch; }
.lede { font-size: 1.15rem; color: #d7dbe4; max-width: 52ch; margin: 1.1rem 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none;
  padding: 0; margin: 2rem 0 0; color: #c3c9d4; font-size: 0.95rem;
}
.hero-points li { position: relative; padding-left: 1.4rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700;
}
.hero-media { display: flex; justify-content: center; }
.hero-photo {
  width: 100%; max-width: 440px; height: auto; display: block;
  border-radius: 20px; box-shadow: 0 26px 60px rgba(0,0,0,.4);
  border: 6px solid #fff;
}
/* image placeholder (replace .photo-ph with a real <img class="hero-photo">) */
.photo-ph {
  position: relative; margin: 0; width: 100%; max-width: 440px; aspect-ratio: 4/5;
  border-radius: 20px; padding: 2rem; text-align: center; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(160deg, #fbf8f2 0%, #ece4d5 100%);
  box-shadow: 0 26px 60px rgba(0,0,0,.4);
}
.photo-ph::before { content: ""; position: absolute; inset: 16px; border: 2px dashed rgba(110,118,131,.4); border-radius: 12px; }
.photo-ph .ic { width: 66px; height: 66px; color: var(--red); position: relative; }
.photo-ph figcaption { position: relative; }
.photo-ph b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: var(--navy); font-size: 1.1rem; }
.photo-ph span { color: var(--steel); font-size: .92rem; }
.photo-ph .ph-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; font-size: .6rem;
  color: #fff; background: var(--red); padding: .28rem .6rem; border-radius: 20px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: #fff; }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.8rem; }
.section-sub { color: var(--steel); font-size: 1.08rem; margin: 0.7rem 0 0; }
.section-navy .section-sub { color: #c3c9d4; }

/* ---------- Service cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201,37,50,.35); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; background: var(--cream);
  font-size: 1.4rem; margin-bottom: 0.9rem;
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.4rem; letter-spacing: 0.3px; }
.card p { margin: 0; color: var(--steel); font-size: 0.97rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-item { padding: 1.6rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.why-item h3 { margin-bottom: 0.5rem; }
.why-item p { margin: 0; color: var(--steel); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem 1.6rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.9rem;
}
.step h3 { color: #fff; margin-bottom: 0.4rem; }
.step p { margin: 0; color: #c3c9d4; }

/* ---------- Service area ---------- */
.area-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.area-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.area-list li {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  background: var(--navy); color: #fff; padding: 0.6rem 1.1rem; border-radius: 8px; font-size: 0.98rem;
}
.area-note { color: var(--steel); }
.area-cta { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.area-cta h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.area-cta .btn { margin: 0 0.5rem 0.5rem 0; }

/* ==========================================================================
   Contact / form
   ========================================================================== */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.contact-details li { display: flex; flex-direction: column; }
.cd-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; color: var(--steel); }
.cd-value { font-size: 1.15rem; font-weight: 600; color: var(--navy); }
a.cd-value:hover { color: var(--red); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  padding: 0.75rem 0.85rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(201,37,50,.15);
}
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(201,37,50,.12); }
.form-note { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #12703a; }
.form-note.err { color: var(--red); }
.form-fineprint { margin: 0.7rem 0 0; color: var(--steel); font-size: 0.92rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #c3c9d4; padding: 3.2rem 0 1.4rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-plate { display: inline-block; background: #fff; border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow); }
.footer-plate img { width: 240px; max-width: 100%; height: auto; display: block; }
.footer-tagline { margin: 0.9rem 0 0; max-width: 32ch; color: #aeb5c2; }
.footer-col h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: #c3c9d4; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; font-size: 0.86rem; color: #8b93a3; }

/* ==========================================================================
   Sticky mobile bar
   ========================================================================== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0.6rem; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(7,18,36,.1);
}
.mobile-bar-btn { flex: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { order: 2; }
  .photo-ph, .hero-photo { max-width: 380px; }
  .area-inner, .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem 0; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-menu.open { max-height: 460px; }
  .nav-menu li { padding: 0 22px; }
  .nav-menu a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child a { border-bottom: 0; }
  .nav-phone a { text-align: center; margin: 0.6rem 0; }
  .brand-mark { height: 48px; max-width: 220px; }

  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 68px; } /* room for sticky bar */
  .section { padding: 3.2rem 0; }
  .hero-inner { padding: 3.2rem 0 3.4rem; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

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