/* J & A Corporation site styles */

:root {
  --ink: #1b1d21;
  --ink-soft: #3c4048;
  --muted: #6b707a;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e6e2d8;
  --gold: #b88a2a;        /* decorative gold, from the logo */
  --gold-text: #8a6516;   /* gold that passes contrast on white */
  --gold-bright: #d9b45a; /* gold on dark backgrounds */
  --dark: #17191d;
  --dark-2: #22252b;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --max: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--gold-text); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-text); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 56px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform 0.2s, opacity 0.2s; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: #f4f1e9; }
.main-nav .nav-cta { margin-left: 8px; }
.main-nav .nav-cta a { background: var(--gold); color: #fff; padding: 10px 18px; }
.main-nav .nav-cta a:hover { background: var(--gold-text); color: #fff; }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; display: none; flex-direction: column;
}
.main-nav .submenu { display: none; }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { display: flex; }

.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
  .main-nav .submenu,
  .has-sub:hover > .submenu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .main-nav .nav-cta { margin: 10px 0 0; }
  .main-nav .nav-cta a { text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(84vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--dark) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 19, 0.15) 0%, rgba(15, 16, 19, 0.45) 45%, rgba(15, 16, 19, 0.85) 100%);
}
.hero .container { position: relative; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { max-width: 16ch; color: #fff; }
.hero p { max-width: 54ch; font-size: 1.15rem; color: #ecebe6; }
.hero .eyebrow { color: var(--gold-bright); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.page-hero { background: var(--dark); color: #fff; padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero.has-image { background-size: cover; background-position: center; padding: 120px 0 64px; }
.page-hero.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 19, 0.35), rgba(15, 16, 19, 0.85));
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e4e2dc; max-width: 60ch; font-size: 1.1rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-bright); }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; color: #cfccc4; }
.breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: #f3f0e8; }
.section-dark { background: var(--dark); color: #e9e7e1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-bright); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #bdbab2; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--dark-2); color: #e8e6e0; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust li { font-weight: 500; font-size: 0.97rem; }
.trust strong { display: block; color: var(--gold-bright); font-family: var(--serif); font-size: 1.25rem; }
@media (max-width: 760px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.service-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 0.35em; }
.service-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-link { font-weight: 600; color: var(--gold-text); }
.service-card.wide { grid-column: span 1; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 12px; border-radius: 2px; background: var(--gold);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; counter-increment: step; }
.section-dark .steps li { background: var(--dark-2); border-color: #33373f; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); margin-bottom: 8px; line-height: 1;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: 0.97rem; color: var(--muted); }
.section-dark .steps p { color: #bdbab2; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  font: inherit; font-size: 0.95rem; font-weight: 500;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-item[hidden] { display: none; }
.gallery-item a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e7e3da; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 12px 14px; font-size: 0.93rem; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.gallery-item figcaption span { color: var(--muted); font-weight: 400; text-transform: capitalize; }
.gallery-more { text-align: center; margin-top: 36px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 11, 13, 0.94);
  display: none; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e6e3dc; margin-top: 14px; text-align: center; font-size: 0.98rem; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 64px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: #fff; padding: 72px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.25em; }
.cta-band p { color: #cfccc4; margin: 0; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

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

.quote-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .quote-form { padding: 22px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cfc9bb; border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status.error { color: #a12a1f; }
.hp-field { position: absolute; left: -9999px; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 1.2rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-list a { font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--gold-text); }

/* ---------- Service page extras ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.other-services { display: flex; flex-wrap: wrap; gap: 10px; }
.other-services a {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  color: var(--ink); background: var(--surface); font-weight: 500;
}
.other-services a:hover { border-color: var(--gold); }

.placeholder-note {
  background: #fff7e3; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px 18px; color: #5c4610; font-size: 0.95rem;
}

/* ---------- Simple pages ---------- */
.center-page { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.center-page .container { max-width: 640px; }
.center-page .big { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 1; margin-bottom: 0.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #bdbab2; padding: 64px 0 28px; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 0.4em; }
.footer-brand span { color: var(--gold-bright); }
.site-footer h3 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e9e7e1; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #30333a; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Phone layout ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 1rem; }
  .eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; }

  .header-inner { min-height: 64px; }
  .brand img { height: 46px; }
  .main-nav a { padding: 12px; font-size: 1.05rem; }

  /* Hero */
  .hero { min-height: 0; }
  .hero .container { padding-top: 88px; padding-bottom: 44px; }
  .hero p { font-size: 1.02rem; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero.has-image { padding: 88px 0 44px; }
  .page-hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Trust strip */
  .trust ul { padding: 18px 0; gap: 14px 10px; }
  .trust li { font-size: 0.9rem; }
  .trust strong { font-size: 1.1rem; }

  /* Service cards turn into compact rows: photo left, text right */
  .services-grid { gap: 12px; }
  .service-card { flex-direction: row; }
  .service-card .media { flex: 0 0 116px; aspect-ratio: auto; }
  .service-card .body { padding: 14px 14px 16px; }
  .service-card h3 { font-size: 1.15rem; }
  .service-card p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.5em; }
  .card-link { font-size: 0.92rem; }

  /* Photos two across */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item figcaption { padding: 8px 10px; font-size: 0.82rem; line-height: 1.35; }
  .gallery-item figcaption span { display: none; }
  .gallery-more { margin-top: 24px; }
  .gallery-more .btn { width: 100%; }

  /* Gallery filters scroll sideways in one row */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; padding: 10px 16px; }

  /* Split sections and lists */
  .split { gap: 24px; }
  .split .btn { width: 100%; }
  .feature { padding: 18px; }
  .steps li { padding: 20px 18px; }

  /* Call to action band */
  .cta-band { padding: 48px 0; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  /* Contact page */
  .contact-grid { gap: 28px; }
  .quote-form { padding: 20px 16px; }
  .quote-form .btn { width: 100%; }
  .field input, .field select, .field textarea { font-size: 16px; } /* stops iPhone zooming in */
  .info-card { padding: 20px; }
  .info-list a { display: inline-block; padding: 8px 0; }

  /* Other services pills */
  .other-services a { padding: 11px 16px; }

  /* Footer */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding: 7px 0; }
  .footer-bottom { margin-top: 28px; flex-direction: column; gap: 4px; }
  .footer-bottom p { margin: 0; }
  .footer-bottom a { display: inline-block; padding: 8px 0; }
  .center-page .big { font-size: 3.6rem; }
}

/* Lightbox on phones: use the full screen */
@media (max-width: 640px) {
  .lightbox img { max-height: calc(100vh - 170px); }
}

/* Form fields: same height everywhere, even spacing on phones */
.field input,
.field select { min-height: 48px; }
@media (max-width: 600px) {
  .form-row { gap: 0; }
}

/* Links inside the dark "How it works" steps */
.section-dark .steps a { color: var(--gold-bright); font-weight: 600; white-space: nowrap; }
.section-dark .steps a:hover { color: #fff; }
