/* ============================================================
   JE Technology · Shared Stylesheet
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  --brand:    #c7a35b;
  --brand-dk: #b89350;
  --ink:      #0f1115;
  --ink-2:    #1a1f2b;
  --muted:    #5e6675;
  --bg:       #ffffff;
  --light:    #f7f8fa;
  --line:     #e8ebf2;
  --dark-bg:  #0f1115;
  --dark-txt: #e8edf2;
  --dark-sub: #c3c9d6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Utility ===== */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-sm { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--brand-dk); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--ink);
}
.btn.ghost:hover { background: var(--brand); }

/* ===== NAV ===== */
.nav {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}
.brand img { max-height: 50px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--brand); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  border: 1px solid rgba(0,0,0,.2);
  background: rgba(255,255,255,.9);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* ===== HERO — Video (index) ===== */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero--video { height: 100vh; }
.hero--video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

/* ===== HERO — Image variant ===== */
.hero--image { min-height: 480px; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: brightness(.55);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

/* Hero overlay (right-side card, index) */
.hero-content {
  position: absolute; top: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: 0 5%;
}
.hero-overlay {
  background: rgba(255,255,255,.88);
  padding: 40px; border-radius: 16px;
  max-width: 500px; margin-left: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.kicker {
  letter-spacing: .18em; text-transform: uppercase;
  font-size: 11px; color: var(--ink); font-weight: 700;
}
.h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; margin: 8px 0; color: var(--ink); }
.lead { color: var(--muted); line-height: 1.7; }

/* Hero center (services, contact, dark) */
.hero-center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px;
}
.hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800; color: #fff; margin-bottom: 10px;
}
.hero-sub { font-size: 18px; color: rgba(255,255,255,.9); max-width: 680px; margin: 0 auto 20px; }
.hero-cta {
  display: inline-block; padding: 14px 28px; border-radius: 12px;
  background: var(--brand); color: var(--ink); font-weight: 800;
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: var(--brand-dk); transform: translateY(-2px); }

/* Dark header variant (smart-homes-services etc) */
.header-dark {
  background: var(--dark-bg);
  color: #fff;
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 60px;
  position: relative;
}
.header-dark h1 { font-size: clamp(32px,4vw,48px); font-weight: 800; margin-bottom: 10px; }
.header-dark p { font-size: 18px; color: var(--dark-sub); max-width: 900px; margin: 0 auto; }

/* ===== WHO WE ARE (dark section) ===== */
.who { background: var(--dark-bg); color: var(--dark-txt); padding: 90px 20px; }
.who .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.who .title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px 0; }
.who .title .bar { width: 6px; height: 28px; background: var(--brand); border-radius: 2px; }
.who h2 { margin: 0; }
.who p { color: var(--dark-sub); line-height: 1.75; }

/* ===== STATS ===== */
.stats-section { padding: 70px 20px; background: var(--light); }
.stats-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;
}
.stat-card {
  text-align: center; padding: 40px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.stat-number { font-size: 48px; font-weight: 800; color: var(--brand); margin-bottom: 10px; }
.stat-label { color: #333; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }

/* ===== PARTNERS / GOLD BAND ===== */
.gold-band { background: var(--brand); color: var(--ink); padding: 40px 20px 28px; }
.partners-title {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 18px; text-align: center; font-size: 13px;
}
.partners-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; max-width: 1100px; margin: 0 auto; }
.partner {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  min-height: 68px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background .2s;
}
.partner:hover { background: rgba(255,255,255,.28); }
.partner img { max-height: 42px; max-width: 120px; width: auto; height: auto; object-fit: contain; }

/* ===== PROCESS GLOW CARDS ===== */
.glow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}
.process-card {
  position: relative; padding: 92px 24px 24px;
  border-radius: 20px; color: var(--dark-txt);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: visible; min-height: 260px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.process-card::after {
  content: "";
  position: absolute; left: 10%; right: 10%; bottom: -16px; height: 40px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(199,163,91,.45), rgba(199,163,91,0) 70%);
  filter: blur(6px); pointer-events: none;
}
.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.pc-badge {
  position: absolute; top: -30px; left: 20px;
  width: 72px; height: 72px; border-radius: 20px;
  display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(130% 130% at 0% 0%, #ffe9ad 0%, var(--brand) 70%, #b88d3c 100%);
  box-shadow: 0 14px 28px rgba(199,163,91,.45), inset 0 0 0 1px rgba(0,0,0,.18);
}
.pc-title { margin: 6px 0; font-size: 18px; font-weight: 800; color: #fff; }
.pc-text  { margin: 0; font-size: 15px; color: #cbd2dc; line-height: 1.7; }

/* ===== SERVICES SELECT PAGE ===== */
.select { padding: 80px 20px; background: var(--bg); }
.select .intro { text-align: center; margin-bottom: 50px; }
.select .intro .title { font-size: clamp(26px,3vw,38px); font-weight: 800; margin-bottom: 10px; }
.select .intro .sub  { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

.card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.svc-card {
  position: relative; border-radius: 20px; overflow: hidden;
  display: block; min-height: 460px; text-decoration: none;
  box-shadow: 0 10px 40px rgba(0,0,0,.14);
  transition: transform .3s, box-shadow .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.svc-card .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.svc-card:hover .bg { transform: scale(1.04); }
.svc-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.svc-card .content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px; color: #fff;
}
.svc-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.svc-card ul { list-style: none; margin-bottom: 16px; }
.svc-card ul li { font-size: 14px; padding: 3px 0 3px 18px; position: relative; opacity: .9; }
.svc-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.svc-card .cta {
  display: inline-block; font-weight: 800; color: var(--brand);
  font-size: 15px; letter-spacing: .04em;
}

/* ===== PRODUCT LAYOUT (smart-home-services) ===== */
.product-section { padding: 80px 20px; }
.product-section.alt { background: var(--light); }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 {
  font-size: clamp(28px,3.6vw,42px); font-weight: 800; color: var(--ink);
  margin-bottom: 12px; position: relative; display: inline-block; padding-bottom: 12px;
}
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
  border-radius: 2px;
}
.section-title p { font-size: 18px; color: var(--muted); max-width: 900px; margin: 0 auto; }
.container { max-width: 1400px; margin: 0 auto; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.product.reverse { direction: rtl; }
.product.reverse .product-info { direction: ltr; }
.product-image {
  border-radius: 20px; overflow: hidden; position: relative;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.product-image.media-16x9 { aspect-ratio: 16/9; }
.product-image.focus-top img { object-position: 50% 0%; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95); padding: 8px 12px;
  border-radius: 999px; font-weight: 700; font-size: 14px;
}
.product-info { max-width: 640px; }
.product-info h3 { font-size: clamp(22px,3vw,36px); font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.subtitle { font-size: 17px; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
.product-info p { font-size: 16px; color: #555; margin-bottom: 12px; }
.icon-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 10px 22px; margin-top: 6px; }
.icon-list li { position: relative; padding-left: 22px; color: #555; font-size: 15px; }
.icon-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.mini-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--ink); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 28px; }
.card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.08); transition: transform .25s; }
.card:hover { transform: translateY(-8px); }
.card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-content { padding: 26px; }
.card h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card p { color: #555; margin-bottom: 12px; font-size: 15px; }
.card-features { list-style: none; }
.card-features li { color: #555; margin-bottom: 8px; padding-left: 22px; position: relative; font-size: 15px; }
.card-features li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ===== PROJECTS PAGE ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.project-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.project-meta { padding: 16px; }
.project-meta h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.project-meta p { font-size: 13px; color: var(--muted); }
.project-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--light); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-top: 8px; }

/* ===== SUPPORT PAGE ===== */
.support-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.support-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.support-card .icon { font-size: 36px; margin-bottom: 12px; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 70px 20px; background: var(--light); }
.contact-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 34px; }
.contact-card h2 { margin-bottom: 16px; color: #000; font-size: 26px; }
.form-group { margin: 14px 0; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font: inherit; border: 1px solid #cfd3d8; border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit { background: var(--brand); color: var(--ink); border: none; border-radius: 12px; padding: 14px 24px; font-weight: 800; cursor: pointer; font-size: 16px; width: 100%; transition: background .2s; }
.btn-submit:hover { background: var(--brand-dk); }
.contact-info h3 { font-weight: 800; color: #000; margin-bottom: 8px; font-size: 17px; }
.contact-info p { margin: 4px 0; color: #444; }
.contact-info a { color: var(--ink); font-weight: 700; }
.map-embed { margin-top: 16px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.1); }

/* ===== FOOTER ===== */
.site-footer { background: linear-gradient(180deg, var(--brand) 0%, #111 100%); color: #fff; padding-top: 40px; }
.footer-cta {
  background: var(--brand); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; max-width: 1100px; margin: 36px auto 0;
  border-radius: 10px; font-weight: 600; border: 1px solid rgba(255,255,255,.7);
}
.footer-cta .cta-btn {
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 6px;
  font-weight: 700; text-decoration: none; transition: background .2s;
}
.footer-cta .cta-btn:hover { background: #333; }
.footer-main {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 30px; max-width: 1100px; margin: auto; padding: 40px 20px;
}
.footer-logo { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.footer-logo img { height: 42px; margin-bottom: 8px; }
.footer-tagline { font-size: .9rem; font-weight: 600; color: #fff; margin-top: 6px; text-align: center; }
.footer-col h4 { font-weight: 700; margin-bottom: 12px; color: #fff; font-size: 15px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.social-icons { display: flex; gap: 10px; margin-top: 12px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .2s; }
.social-icons a:hover { background: rgba(255,255,255,.25); }
.social-icons img { height: 18px; width: 18px; filter: invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2); padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: auto; font-size: .875rem; color: rgba(255,255,255,.75);
}
.footer-bottom a { margin-left: 12px; color: rgba(255,255,255,.75); }
.footer-bottom a:hover { color: #fff; }

/* ===== PRIVACY / TERMS PAGES ===== */
.prose-page { max-width: 820px; margin: 0 auto; padding: 60px 20px 100px; }
.prose-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.prose-page .last-updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.prose-page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 8px; }
.prose-page p { color: #444; line-height: 1.75; margin-bottom: 16px; }
.prose-page ul { color: #444; line-height: 1.75; margin-bottom: 16px; padding-left: 20px; }
.prose-page a { color: var(--brand); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .glow-cards { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 968px) {
  .product { grid-template-columns: 1fr; gap: 40px; }
  .product.reverse { direction: ltr; }
  .who .wrap { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,17,21,.97);
    flex-direction: column; padding: 20px;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav-links a { color: #fff; display: block; padding: 8px 0; }
  .nav-links .btn { background: var(--brand); color: var(--ink); margin-top: 6px; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .hero-content { position: relative; height: auto; padding: 20px; }
  .hero-overlay { max-width: 100%; margin: 0; }
  .hero--video { height: auto; min-height: 100vh; }

  .partners-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .glow-cards { grid-template-columns: 1fr; }

  .footer-cta { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom a { margin: 0; }

  .hero-title { font-size: 32px; }
  .h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-card, .stat-card, .svc-card, .project-card, .card { transition: none; }
  .process-card:hover, .stat-card:hover, .svc-card:hover { transform: none; }
}
