/* ============================================================
   JML Connection Inc — landing page styles
   Light, warm, informative. No frameworks, no build step.
   ============================================================ */

:root {
  --bg:          #fdfbf8;
  --bg-tint:     #f5f0e8;
  --surface:     #ffffff;
  --ink:         #2b2723;
  --ink-soft:    #5f574f;
  --ink-faint:   #8a8079;
  --accent:      #b4522f;
  --accent-dark: #94411f;
  --accent-soft: #f6e6de;
  --line:        #e6ddd2;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 39, 35, .06), 0 4px 14px rgba(43, 39, 35, .05);
  --shadow-md: 0 2px 6px rgba(43, 39, 35, .07), 0 18px 40px rgba(43, 39, 35, .08);

  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 248, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; }
.brand-text small { font-size: .72rem; color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: .5rem .8rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
}
.primary-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.primary-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  margin-left: .4rem;
  padding-inline: 1.1rem;
}
.primary-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; color: var(--accent-dark); border-color: var(--accent); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-light:hover { color: var(--accent-dark); }

/* ── Hero ─────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; }

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(253, 251, 248, .97) 0%, rgba(253, 251, 248, .92) 42%,
                    rgba(253, 251, 248, .55) 68%, rgba(253, 251, 248, .28) 100%),
    linear-gradient(to bottom, rgba(253, 251, 248, .35), rgba(253, 251, 248, .6));
}

.hero-inner {
  padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  max-width: 720px;
  margin-inline: auto;
}
.hero-inner > * { max-width: 40ch; }
.hero-inner .hero-badges { max-width: none; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.9rem 0 2.4rem;
  max-width: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ── Sections ─────────────────────────────────────────── */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--bg-tint); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}
.section-head h2 { margin-bottom: .4rem; }
.section-sub { color: var(--ink-soft); margin: 0; }

/* ── Split (about) ────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.split-body p { color: var(--ink-soft); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stats div { margin: 0; }
.stats dt {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.1;
}
.stats dd {
  margin: .3rem 0 0;
  font-size: .85rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

/* ── Product cards ────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 1.5rem 1.6rem 1.7rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body > p { color: var(--ink-soft); font-size: .96rem; }

.tick { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .92rem; }
.tick li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .45rem;
  color: var(--ink-soft);
}
.tick li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-weight: 700;
}

.products-note {
  margin: 2.4rem auto 0;
  max-width: 56ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* ── Features ─────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.features h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.features p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

/* ── Banner ───────────────────────────────────────────── */

.banner { position: relative; isolation: isolate; }
.banner > img {
  width: 100%;
  height: clamp(300px, 40vw, 420px);
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background: linear-gradient(90deg, rgba(43, 39, 35, .68) 0%, rgba(43, 39, 35, .38) 60%, rgba(43, 39, 35, .2) 100%);
}
.banner-inner { color: #fff; max-width: 620px; margin-inline: auto; }
.banner-inner h2 { color: #fff; }
.banner-inner p { color: rgba(255, 255, 255, .9); margin-bottom: 1.6rem; max-width: 42ch; }

/* ── Contact ──────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.contact-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--ink);
}
.contact-card--static { background: var(--accent-soft); border-color: transparent; box-shadow: none; }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}
.contact-card--static .contact-icon { background: var(--accent-dark); }

.contact-card h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .5rem;
}

.contact-value {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 .7rem;
  overflow-wrap: anywhere;
}

.contact-action { font-size: .85rem; color: var(--accent); font-weight: 600; }
.contact-card--static .contact-action { color: var(--ink-soft); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: clamp(2.8rem, 6vw, 4rem) 0 1.6rem;
  font-size: .93rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-soft); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-brand { display: flex; gap: 1rem; max-width: 420px; }
.footer-brand p { margin: 0; line-height: 1.6; }
.footer-brand strong { color: #fff; font-size: 1rem; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-style: normal;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}
.footer-bottom p { margin: 0; }
.back-to-top { font-weight: 600; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .hero-inner > * { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 1.25rem 1.2rem;
  }
  .primary-nav a { padding: .8rem .6rem; font-size: 1rem; }
  .primary-nav .nav-cta { margin: .6rem 0 0; text-align: center; }

  .hero-media::after {
    background: linear-gradient(to bottom, rgba(253, 251, 248, .92) 0%,
                rgba(253, 251, 248, .95) 55%, rgba(253, 251, 248, .88) 100%);
  }

  .stats { grid-template-columns: 1fr; gap: .9rem; }
  .stats div { display: flex; align-items: baseline; gap: .7rem; }
  .stats dd { margin-top: 0; }

  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
