/* ==========================================================================
   JELK Innovations — Homepage
   Palette from the logo: charcoal, vivid orange (#FF5E14), soft blue-white
   ========================================================================== */

:root {
  --charcoal-950: #0F1011;
  --charcoal-900: #161719;
  --charcoal-800: #1F2023;
  --orange: #FF5E14;
  --orange-600: #E64E08;
  --orange-soft: #FFF0E8;

  --sky: #F4F8FD;             /* site's light background */
  --ink: #1A1A1A;
  --text: #4E5157;
  --muted: #7C8087;
  --line: #E3E7EE;
  --line-dark: rgba(255, 255, 255, .1);
  --white: #FFFFFF;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1220px;
  --gutter: 24px;
  --section-y: clamp(84px, 9vw, 128px);
  --header-h: 82px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-md: 0 20px 44px -22px rgba(15, 16, 17, .3);
  --shadow-lg: 0 44px 90px -36px rgba(15, 16, 17, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
h1 span, h2 span { color: var(--orange); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Animations ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.hero-anim { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-loaded .hero-anim { opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .4; } }

/* Logo lines draw on load */
.mark-lines path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.4s var(--ease-out) forwards; }
.mark-lines path:nth-child(2) { animation-delay: .25s; }
.mark-lines path:nth-child(3) { animation-delay: .45s; }

/* ---------- Helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow .icon { width: 16px; height: 16px; }
.hero .eyebrow::before { display: none; }
.eyebrow-light { color: var(--orange); }
.section-title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; font-weight: 800; }
.section-intro { font-size: 17px; color: var(--muted); max-width: 420px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-head); font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 14px 30px -14px rgba(255, 94, 20, .75); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-outline { color: var(--ink); border-color: #CDD3DC; background: var(--white); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--orange); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: height .3s var(--ease), border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { --header-h: 70px; border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 16, 17, .45); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.logo-text small { margin-top: 3px; font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.site-footer .logo-text strong { color: var(--white); }

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a:not(.btn) { position: relative; display: block; padding: 6px 0; font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--text); transition: color .25s; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 8vw, 112px); background: linear-gradient(180deg, var(--sky), var(--white)); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(255, 94, 20, .08), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.hero-title { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.hero-title span { display: block; }
.hero-text { margin: 24px 0 36px; max-width: 520px; font-size: 18.5px; color: var(--text); }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, transform .3s var(--ease); }
.hero-points li:hover { border-color: var(--orange); transform: translateY(-2px); }
.hero-points .icon { width: 17px; height: 17px; color: var(--orange); }

.hero-visual { position: relative; padding: 0 0 56px 48px; }
.hero-img { aspect-ratio: 5 / 4.4; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s var(--ease-out) both; }

.blueprint { position: absolute; left: 0; bottom: 0; width: 280px; padding: 16px 16px 14px; background: var(--charcoal-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.blueprint svg { width: 100%; height: auto; display: block; }
.bp-grid path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.bp-draw path { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-loaded .bp-draw path { animation: draw 2.4s var(--ease-out) forwards; }
.is-loaded .bp-draw path:nth-child(2) { animation-delay: .4s; }
.is-loaded .bp-draw path:nth-child(3) { animation-delay: .7s; }
.is-loaded .bp-draw path:nth-child(4) { animation-delay: 1s; }
.is-loaded .bp-draw path:nth-child(5) { animation-delay: 1.3s; }
.bp-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.bp-meta i { flex: 1; height: 1px; background: rgba(255, 255, 255, .2); }

.hero-tag { position: absolute; right: -16px; top: 32px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); animation: float 6s ease-in-out -2s infinite; }
.hero-tag .logo-mark { width: 40px; height: 40px; padding: 4px; border-radius: 10px; background: var(--orange-soft); }
.hero-tag strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.hero-tag div span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.section-head .section-title { max-width: 600px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; gap: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about-media { position: relative; padding: 0 70px 70px 0; }
.about-img-a { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); }
.about-img-b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.about-media::before { content: ""; position: absolute; left: -20px; top: -20px; width: 120px; height: 120px; border-radius: 20px; background: repeating-linear-gradient(45deg, rgba(255, 94, 20, .22) 0 2px, transparent 2px 10px); z-index: -1; }
.about-copy .section-title { margin-bottom: 22px; }
.about-copy > p:not(.eyebrow) { font-size: 17px; }
.checks { display: grid; gap: 12px; margin: 28px 0 30px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.checks .icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--orange); color: var(--white); stroke-width: 3; }

/* ---------- Services (dark) ---------- */
.services { background: var(--charcoal-900); color: rgba(255, 255, 255, .7); }
.services .section-title { color: var(--white); }
.services .section-intro { color: rgba(255, 255, 255, .6); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; background: var(--charcoal-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.service:hover { transform: translateY(-8px); border-color: rgba(255, 94, 20, .5); box-shadow: 0 30px 60px -30px rgba(255, 94, 20, .45); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); filter: saturate(.9); }
.service:hover .service-img img { transform: scale(1.08); filter: saturate(1.05); }
.service-body { position: relative; flex: 1; padding: 36px 24px 28px; }
.service-icon { position: absolute; top: -26px; left: 24px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--orange); color: var(--white); box-shadow: 0 12px 24px -10px rgba(255, 94, 20, .7); transition: transform .4s var(--ease); }
.service:hover .service-icon { transform: rotate(-10deg); }
.service-num { position: absolute; top: 14px; right: 22px; font-family: var(--font-head); font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .25); }
.service h3 { font-size: 19px; line-height: 1.3; color: var(--white); margin-bottom: 10px; }
.service p { font-size: 15px; }

/* ---------- Process ---------- */
.process { background: var(--sky); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 36px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 12%; right: 12%; top: 36px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease-out) .3s; }
.steps.is-visible::after { transform: scaleX(1); }
.steps li { position: relative; z-index: 1; text-align: center; }
.step-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--white); color: var(--orange); border: 2px solid var(--orange); box-shadow: 0 0 0 8px var(--sky); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.steps li:hover .step-icon { background: var(--orange); color: var(--white); transform: scale(1.06); }
.step-icon .icon { width: 28px; height: 28px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { font-size: 15px; max-width: 230px; margin-inline: auto; }

/* ---------- CTA ---------- */
.cta { position: relative; padding-block: clamp(96px, 11vw, 150px); text-align: center; color: var(--white); overflow: hidden; isolation: isolate; background: var(--charcoal-950); }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 16, 17, .82), rgba(15, 16, 17, .92)); }
.cta-inner { max-width: 820px; }
.cta-mark { width: 64px; height: 64px; margin: 0 auto 16px; display: block; }
.cta .eyebrow { justify-content: center; }
.cta-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 800; color: var(--white); }
.cta-text { margin: 18px auto 36px; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .75); }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info .section-title { margin-bottom: 18px; }
.contact-info > p:not(.eyebrow) { font-size: 17px; max-width: 420px; }
.info-list { display: grid; gap: 14px; margin-top: 32px; }
.info-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.info-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--orange); color: var(--white); }
.info-label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list div > span:not(.info-label) { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ink); word-break: break-word; }
.info-list a:hover { color: var(--orange); }

.contact-form { display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border-top: 4px solid var(--orange); }
.contact-form h3 { font-size: 26px; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink); background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #A1A6AE; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 94, 20, .14); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-950); color: rgba(255, 255, 255, .55); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 48px; padding-block: 72px 56px; }
.footer-brand p { margin-top: 20px; max-width: 32ch; }
.footer-col h4 { margin-bottom: 18px; font-size: 16px; font-weight: 700; color: var(--white); }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { width: 17px; height: 17px; margin-top: 4px; color: var(--orange); }
.contact-list a { word-break: break-word; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .38); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 22px; }
  .hero-tag { right: 8px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 24px; padding: 20px var(--gutter) 40px; background: var(--white); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { background: var(--white); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { padding: 16px 4px; font-size: 22px; font-weight: 700; color: var(--ink); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 600px; width: 100%; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head-center { align-items: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero-text { font-size: 17px; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row .btn { width: 100%; }
  .cta .btn-row .btn { white-space: normal; height: auto; min-height: 56px; }
  .hero-visual { padding: 0 0 90px 0; }
  .blueprint { width: 220px; left: 12px; padding: 12px; }
  .bp-meta { font-size: 9.5px; gap: 4px; justify-content: space-between; letter-spacing: .04em; }
  .bp-meta i { display: none; }
  .hero-tag { top: 14px; right: 10px; padding: 10px 14px 10px 10px; }
  .hero-tag .logo-mark { width: 34px; height: 34px; }

  .about-media { padding: 0 36px 46px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 44px; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-anim, .reveal { opacity: 1 !important; transform: none !important; }
  .mark-lines path, .bp-draw path { stroke-dashoffset: 0 !important; }
}
