/* ==========================================================
   [Company Name] — one-page marketing site
   Visual language adapted from the Nexella template:
   near-black canvas, signal-yellow accent, Plus Jakarta Sans.
   ========================================================== */

:root {
  --yellow: #fcdb66;
  --yellow-soft: #fee17c;
  --black: #000;
  --bg: #0a0a0a;
  --bg-2: #111;
  --surface: #161616;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #a1a1a1;
  --heading: #fff;
  --glow: #a2441b;

  --font-body: "Noto Sans", system-ui, sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;

  --container: 1320px;
  --gutter: 24px;
  --section-y: clamp(80px, 10vw, 130px);
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.8 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p { margin: 0 0 20px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--heading); font-weight: 600; }

::selection { background: var(--yellow); color: var(--black); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }

.ico { width: 1em; height: 1em; flex: none; }

.accent { color: var(--yellow); }

/* ---------- Eyebrow + section header ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--heading);
  font: 500 15px/1 var(--font-head);
}
.eyebrow .ico { color: var(--yellow); width: 14px; height: 14px; }

.section-header { max-width: 720px; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.2; }
.section-header > p:not(.eyebrow) { margin-top: 22px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 500 16px/1 var(--font-head);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: #fff; }
.btn-secondary { border-color: var(--line-strong); color: var(--heading); }
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; padding: 19px 32px; }

/* Pill + detached circle, as in the template's "Discover More" button */
.btn-group { display: inline-flex; align-items: center; }
.btn-circle {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 18px;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.btn-group:hover .btn-primary,
.btn-group:hover .btn-circle { background: #fff; }
.btn-group:hover .btn-circle { transform: rotate(45deg); }

/* ==========================================================
   1. HEADER
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 22px 0;
  transition: background-color 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.header-inner { display: flex; align-items: center; gap: 40px; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo-img { width: auto; height: 38px; }
.site-header.is-scrolled .logo-img { height: 34px; }
#site-footer .logo-img { height: 46px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  color: var(--heading);
  font: 500 16px/1 var(--font-head);
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--yellow); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   2. HERO
   ========================================================== */
#hero {
  position: relative;
  min-height: clamp(760px, 100vh, 1080px);
  padding-top: 170px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.9;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 90px;
}

#hero h1 {
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
#hero h1 .accent { display: block; font-weight: 500; }

.lead { max-width: 560px; margin: 30px 0 42px; font-size: 18px; }
.lead strong { color: var(--yellow); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-orb {
  width: auto;
  max-width: 100%;
  max-height: min(620px, 70vh);
  filter: drop-shadow(0 30px 60px rgba(252, 219, 102, 0.14));
  animation: float 7s ease-in-out infinite;
}

.spin-badge {
  position: absolute;
  left: 0;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
}
.spin-text {
  position: absolute;
  inset: 0;
  animation: spin 16s linear infinite;
}
.spin-text text {
  fill: var(--black);
  font: 700 10px var(--font-head);
}
.spin-arrow { font-size: 30px; line-height: 1; }


/* Marquee band */
.marquee {
  position: relative;
  margin-top: auto;
  padding: 22px 0;
  background: var(--yellow);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  padding: 10px 34px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-pill);
  color: var(--black);
  font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--font-head);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i { display: grid; color: var(--black); font-size: 30px; }

/* ==========================================================
   3. SERVICES
   ========================================================== */
#services { background: var(--bg); }

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 68, 27, 0.55) 0%, rgba(162, 68, 27, 0) 65%);
  pointer-events: none;
}
.glow-left { left: -180px; top: 10%; }
.glow-right { right: -200px; bottom: -120px; }

.float-shape { position: absolute; pointer-events: none; animation: float 9s ease-in-out infinite; }
.services-shape { right: 4%; top: 60px; width: 230px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.service-card {
  position: relative;
  padding: 48px 40px 52px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 0.4s;
}
.service-card:last-child { border-right: 0; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { transform: scaleX(1); }

.card-num {
  position: absolute;
  top: 34px;
  right: 36px;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  font: 800 54px/1 var(--font-head);
  transition: -webkit-text-stroke-color 0.4s;
}
.service-card:hover .card-num { -webkit-text-stroke-color: var(--yellow); }

.service-icon { width: 54px; height: 54px; margin-bottom: 70px; color: var(--yellow); }
.service-card h3 { margin-bottom: 16px; font-size: 24px; line-height: 1.3; }
.service-card p { margin: 0; }

/* ==========================================================
   4. RESULTS (yellow band, like the template's "Why Choose Us")
   ========================================================== */
#results {
  background: var(--yellow) url("../images/choose-us-shape.png") center / cover no-repeat;
  color: rgba(0, 0, 0, 0.72);
}
#results h2,
#results h3,
#results .eyebrow,
#results strong { color: var(--black); }
#results .eyebrow .ico { color: var(--black); }

.results-shape { right: 4%; top: 50px; width: 190px; }

.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-study {
  display: flex;
  flex-direction: column;
  padding: 36px 34px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.28);
}

.case-tag {
  align-self: flex-start;
  margin-bottom: 26px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  color: var(--black);
  font: 500 13px/1 var(--font-head);
}
.case-study h3 { font-size: 22px; margin-bottom: 34px; }
.case-metric { margin: 0; font-size: 15px; }
.case-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--black);
  font: 600 14px/1.4 var(--font-head);
}

.testimonial {
  position: relative;
  margin: 24px 0 0;
  padding: 56px 60px 52px 150px;
  background: var(--black);
  color: var(--text);
}
.quote-icon { position: absolute; left: 56px; top: 56px; width: 58px; height: 58px; color: var(--yellow); }
.testimonial > p {
  margin-bottom: 34px;
  color: #fff;
  font: 500 clamp(22px, 2.4vw, 30px)/1.45 var(--font-head);
  letter-spacing: -0.01em;
}
.testimonial footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.testimonial footer::before { content: ""; width: 46px; height: 1px; background: var(--yellow); }
.testimonial cite { color: #fff; font: 600 18px/1 var(--font-head); font-style: normal; }
.testimonial footer span { font-size: 15px; }
.case-metric strong {
  display: block;
  margin-bottom: 6px;
  font: 700 clamp(32px, 3.2vw, 44px)/1.1 var(--font-head);
  letter-spacing: -0.03em;
}

/* ==========================================================
   5. CONTACT
   ========================================================== */
#contact { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .section-header { margin-bottom: 0; position: relative; }
.contact-orb { width: 300px; margin-top: 40px; animation: float 8s ease-in-out infinite; }

.contact-form {
  padding: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}
.field { margin-bottom: 26px; }
.field label {
  display: block;
  margin-bottom: 10px;
  color: var(--heading);
  font: 500 15px/1 var(--font-head);
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: #fff;
  font: 400 16px/1.5 var(--font-body);
  transition: border-color 0.3s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #5f5f5f; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--yellow); }
.field.has-error input { border-color: #ff7a6b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }

.form-status { margin: 18px 0 0; min-height: 1.8em; font-size: 15px; }
.form-status.is-ok { color: var(--yellow); }
.form-status.is-error { color: #ff7a6b; }

/* ==========================================================
   6. FOOTER
   ========================================================== */
#site-footer {
  position: relative;
  padding: 90px 0 30px;
  background: #050505 url("../images/footer-bg.png") center / cover no-repeat;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-top p { margin: 16px 0 0; }
.contact-info { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.contact-info li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-name { padding-left: 22px; color: var(--text); font: 500 14px/1.2 var(--font-head); }
.contact-info a {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: #fff;
  font: 500 15px/1 var(--font-head);
  transition: border-color 0.3s, color 0.3s;
}
.contact-info a:hover { border-color: var(--yellow); color: var(--yellow); }

.footer-wordmark {
  margin: 50px 0 20px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  font: 800 clamp(44px, 11.5vw, 170px)/0.9 var(--font-head);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-bottom .legal { margin-top: 6px; color: #6f6f6f; font-size: 13px; line-height: 1.6; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; transition: color 0.3s; }
.to-top .ico { transform: rotate(-45deg); }
.to-top:hover { color: var(--yellow); }

/* ==========================================================
   Motion
   ========================================================== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .services-shape, .results-shape { display: none; }
  .service-card { padding: 40px 30px 44px; }
  .contact-grid { gap: 50px; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 100px var(--gutter) 40px;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: -1;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .main-nav a { font-size: 24px; }

  #hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
  .hero-orb { max-height: 340px; }
  .spin-badge { width: 112px; height: 112px; left: -10px; bottom: -14px; }

  .services-grid, .case-studies { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-icon { margin-bottom: 40px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-orb { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero-actions .btn-group { width: 100%; }
  .hero-actions .btn-group .btn { flex: 1; padding-inline: 20px; }
  .hero-actions .btn-secondary { width: 100%; }
  .lead { font-size: 16px; }
  .testimonial { padding: 110px 26px 36px; }
  .quote-icon { left: 26px; top: 36px; width: 46px; height: 46px; }
  .contact-form { padding: 30px 22px; }
  .case-study { padding: 30px 26px; }
}
