/* ============================================================
   JTF HOME GROUP — SHARED DESIGN SYSTEM
   Palette: Navy #162459 · Red #CC2229 · Steel #8a9bb0
   Type: Barlow Condensed (display) · DM Sans (body)
============================================================ */

/* ── Custom Properties ── */
:root {
  --navy:        #162459;
  --navy-dark:   #0d1835;
  --navy-deeper: #08102a;
  --navy-light:  #1e3070;
  --red:         #CC2229;
  --red-dark:    #a01a20;
  --red-glow:    rgba(204,34,41,0.28);
  --white:       #ffffff;
  --off-white:   #f4f5f7;
  --steel:       #8a9bb0;
  --steel-light: #b8c5d4;
  --steel-dark:  #5a6b80;
  --text-dark:   #0d1835;
  --text-body:   #2a3550;
  --text-muted:  #6b7a94;
  --border:      rgba(138,155,176,0.2);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-ui:      'Barlow', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:      0.25s var(--ease);
  --t-base:      0.35s var(--ease);
  --t-slow:      0.65s var(--ease);

  --shadow-sm:   0 2px 8px rgba(13,24,53,0.10);
  --shadow-md:   0 8px 32px rgba(13,24,53,0.16);
  --shadow-lg:   0 24px 64px rgba(13,24,53,0.22);
  --shadow-red:  0 8px 32px rgba(204,34,41,0.28);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-ui); border: none; outline: none; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section labels ── */
.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }
.section-label.light { color: var(--steel-light); }
.section-label.light::before { background: var(--steel-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}
.section-title span { color: var(--red); }
.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-top: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn:hover::after { left: 160%; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(204,34,41,0.38); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ── Reveal animations ── */
.reveal       { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* ── Service cards ── */
.svc-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.1rem 2rem;
  position: relative;
  border: 1px solid var(--border);
  border-left: 4px solid var(--steel);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  overflow: hidden;
}
.svc-card::before {
  content: attr(data-num);
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: rgba(22,36,89,0.04);
  transition: color var(--t-base);
  pointer-events: none;
}
.svc-card:hover { border-left-color: var(--red); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-card:hover::before { color: rgba(204,34,41,0.055); }
.svc-icon {
  width: 50px; height: 50px;
  background: rgba(22,36,89,0.06);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: 1.15rem;
  transition: background var(--t-base), color var(--t-base);
}
.svc-card:hover .svc-icon { background: var(--red); color: var(--white); }
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}
.svc-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.72; }

/* ── Float badges ── */
.fbadge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: 5px;
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--red);
  white-space: nowrap;
}
.fbadge-icon { color: var(--red); }
.fbadge strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--text-dark); }
.fbadge span { font-size: 0.72rem; color: var(--text-muted); }

/* ── Page hero band (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy) 60%, var(--navy-dark) 100%);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -53deg,
    transparent 0px, transparent 48px,
    rgba(138,155,176,0.04) 48px, rgba(138,155,176,0.04) 49px,
    transparent 49px, transparent 96px,
    rgba(138,155,176,0.065) 96px, rgba(138,155,176,0.065) 97px
  );
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(204,34,41,0.13);
  border: 1px solid rgba(204,34,41,0.28);
  border-radius: 2px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.page-hero h1 span { color: var(--red); }
.page-hero-desc {
  font-size: 1.1rem;
  color: var(--steel-light);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: var(--red); }

/* ── CTA Band ── */
.cta-band {
  background: var(--navy);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(255,255,255,0.013) 80px, rgba(255,255,255,0.013) 81px);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.75rem); text-transform: uppercase; color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: var(--steel-light); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(8,16,42,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav.opaque {
  background: rgba(8,16,42,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}
.nav-logo img { height: 54px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45)); transition: transform var(--t-fast); }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  position: relative;
  transition: color var(--t-fast);
}
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--red); transition: width var(--t-base); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,16,42,0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  min-width: 220px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast), background var(--t-fast);
  border-bottom: none !important;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--t-base); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: rgba(8,16,42,0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--t-fast);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu a.sub { font-size: 0.9rem; padding-left: 1rem; color: rgba(255,255,255,0.6); }
.mobile-menu .btn { margin-top: 1.25rem; justify-content: center; }

/* ── Footer ── */
.footer { background: var(--navy-deeper); padding: 4.5rem 0 0; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0%, rgba(204,34,41,0.4) 50%, var(--red) 100%); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 62px; width: auto; margin-bottom: 1rem; }
.footer-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.25rem; }
.footer-desc { font-size: 0.87rem; color: var(--steel-dark); line-height: 1.72; max-width: 320px; margin-bottom: 1.5rem; }
.socials { display: flex; gap: 0.6rem; }
.social { width: 38px; height: 38px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--steel-light); transition: var(--t-base); }
.social:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.88rem; color: var(--steel); display: flex; align-items: center; gap: 0.5rem; transition: color var(--t-fast); }
.footer-links a::before { content: '—'; color: var(--red); font-size: 0.7rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { font-size: 0.82rem; color: var(--steel-dark); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--steel-dark); transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: var(--white); }

/* ── Forms (shared) ── */
.fg { display: flex; flex-direction: column; gap: 0.38rem; margin-bottom: 1.1rem; }
.fg label { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.fg input, .fg textarea, .fg select {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,36,89,0.09); }
.fg textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chk { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.25rem; }
.chk input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }
.chk label { font-size: 0.88rem; color: var(--text-body); cursor: pointer; }

/* ── FAQ accordion ── */
details.faq { border-bottom: 1px solid var(--border); }
details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--red); font-weight: 300; flex-shrink: 0; transition: transform var(--t-base); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 0 1.25rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

/* ── Step process (inner pages) ── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 35px; left: calc(12.5% + 35px); right: calc(12.5% + 35px); height: 2px; background: linear-gradient(90deg, var(--navy) 0%, var(--red) 50%, var(--navy) 100%); z-index: 0; }
.step { padding: 0 1rem; text-align: center; position: relative; z-index: 1; }
.step-num { width: 70px; height: 70px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.75rem; box-shadow: 0 4px 18px rgba(22,36,89,0.28); transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base); position: relative; }
.step-num::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(204,34,41,0.35); }
.step-num span { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; color: var(--white); }
.step:hover .step-num { background: var(--red); transform: scale(1.08); box-shadow: 0 8px 28px rgba(204,34,41,0.38); }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dark); margin-bottom: 0.65rem; }
.step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.72; }

/* ── Responsive ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) {
  .nav-links, .nav-links + .btn { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
