/* ============================================================
   QuRen — Integrated Systems Design
   Unique palette: Cobalt + Tangerine on warm Ivory, deep slate bands
   ============================================================ */

:root {
  --ink: #1A2233;
  --muted: #5A6474;
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --brand: #274690;
  --brand-deep: #1B3269;
  --accent: #F16A2E;
  --accent-dark: #D8551C;
  --line: #E7E2D8;
  --dark: #141C2B;
  --dark-2: #0E1522;
  --on-dark: #F3F6FB;
  --mint: #2E8B7A;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 45px -20px rgba(20, 28, 43, 0.35);
  --font-head: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Scroll reveal (safe without JS) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.topbar.scrolled {
  background: rgba(250, 248, 243, 0.96);
  box-shadow: 0 8px 24px -18px rgba(20, 28, 43, 0.5);
  padding: 12px 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  transition: color 0.35s ease;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFE2D2 100%);
  color: #1B3269;
  font-weight: 900;
  font-size: 1.05rem;
}

.topbar.scrolled .brand {
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 50px;
  height: 50px;
  padding: 0 12px;
  background: #FFFFFF;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(20, 28, 43, 0.6);
  transition: transform 0.3s ease;
}

.topbar.scrolled .nav-toggle {
  background: var(--ink);
}

.nav-toggle:hover {
  transform: translateY(-2px);
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #1B3269;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.35s ease, opacity 0.35s ease;
}

.topbar.scrolled .nav-toggle span {
  background: #FFFFFF;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: #FFFFFF;
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: #FFFFFF;
}

/* ---------- Overlay nav ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: linear-gradient(160deg, #1B3269 0%, #141C2B 60%, #0E1522 100%);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-101%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  visibility: hidden;
}

.nav-overlay.is-open {
  transform: translateY(0);
  visibility: visible;
}

.nav-overlay-inner {
  width: 100%;
  max-width: 1000px;
  padding: 80px 40px 40px;
  text-align: center;
}

.nav-overlay nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-overlay nav ul li a {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--on-dark);
  padding: 4px 12px;
  transition: color 0.25s ease;
}

.nav-overlay nav ul li a:hover {
  color: #FF9E6E;
}

.nav-overlay-foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.95rem;
  color: #C9D4E8;
}

.nav-overlay-foot a:hover {
  color: #FF9E6E;
}

/* ---------- Hero (full-bleed band with overlay text) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 48px 90px;
  background:
    radial-gradient(1100px 600px at 85% 15%, #274690 0%, #1B3269 45%, #141C2B 100%),
    linear-gradient(135deg, #0E1522 0%, #141C2B 55%, #1B3269 100%);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 90px);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb.one {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -100px;
  background: radial-gradient(circle, #F16A2E 0%, #F16A2E 30%, transparent 70%);
}

.hero-orb.two {
  width: 320px;
  height: 320px;
  left: -60px;
  bottom: -60px;
  background: radial-gradient(circle, #2E8B7A 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFB18A;
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #F16A2E;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  max-width: 780px;
}

.hero h1 em {
  font-style: normal;
  color: #FFA67D;
}

.hero p.lead {
  margin-top: 26px;
  max-width: 620px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #DCE4F2;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: #F16A2E;
  color: #FFFFFF;
  box-shadow: 0 16px 30px -14px rgba(241, 106, 46, 0.75);
}

.btn-primary:hover {
  background: #D8551C;
}

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: #5A6A8A;
}

.btn-ghost:hover {
  border-color: #FFFFFF;
}

.hero-strip {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-stat span {
  font-size: 0.85rem;
  color: #C9D4E8;
  letter-spacing: 0.5px;
}

/* ---------- Shared section scaffolding ---------- */
.section {
  padding: 110px 48px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.section .lead-copy {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
}

/* ---------- Statement band (dark) ---------- */
.statement {
  background: linear-gradient(135deg, #1B3269 0%, #141C2B 100%);
  color: var(--on-dark);
  padding: 110px 48px;
}

.statement-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.statement-inner .section-label {
  color: #FFB18A;
}

.statement-inner h2 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
}

.statement-inner h2 em {
  font-style: normal;
  color: #FFA67D;
}

.statement-cols {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.statement-cols p {
  font-size: 1.05rem;
  color: #D7E0EF;
}

/* ---------- Services — horizontal scroll rows ---------- */
.services-section {
  background: var(--bg);
}

.services-scroll {
  margin-top: 50px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: #C6C2B6 transparent;
}

.services-scroll::-webkit-scrollbar {
  height: 8px;
}

.services-scroll::-webkit-scrollbar-thumb {
  background: #C6C2B6;
  border-radius: 8px;
}

.service-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.service-card .num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
}

.service-card h3 {
  margin-top: 18px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.service-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  flex: 1;
}

.service-card .card-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.service-card .tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
}

.service-card .arrow {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
}

/* ---------- Process — numbered list ---------- */
.process-section {
  background: #F1EEE6;
}

.process-list {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.process-item {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.process-item .big-num {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

.process-item h3 {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.process-item p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Industries ---------- */
.industries-section {
  background: var(--bg);
}

.industry-cloud {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.industry-chip:hover {
  background: var(--brand);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* ---------- Deep dive — alternating two-column ---------- */
.deepdive-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1EEE6 100%);
}

.dd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.dd-row.reverse {
  direction: rtl;
}

.dd-row.reverse > * {
  direction: ltr;
}

.dd-panel {
  background: linear-gradient(135deg, #274690 0%, #1B3269 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #FFFFFF;
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dd-panel .panel-tag {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFB18A;
  font-weight: 800;
}

.dd-panel h3 {
  margin-top: 16px;
  font-size: 1.8rem;
  font-weight: 800;
}

.dd-panel p {
  margin-top: 16px;
  color: #D7E0EF;
}

.dd-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dd-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #E9EEF7;
}

.dd-list li::before {
  content: "→";
  color: #FFA67D;
  font-weight: 800;
}

.dd-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
}

.dd-text p {
  margin-top: 18px;
  color: var(--muted);
}

/* ---------- Stats / counters ---------- */
.stats-section {
  background: linear-gradient(135deg, #141C2B 0%, #0E1522 100%);
  color: var(--on-dark);
}

.stats-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-box .counter {
  font-size: 3.2rem;
  font-weight: 800;
  color: #FFA67D;
  line-height: 1;
}

.stat-box span {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #C9D4E8;
  letter-spacing: 0.5px;
}

/* ---------- Quote band ---------- */
.quote-band {
  background: #F1EEE6;
  padding: 110px 48px;
}

.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.quote-inner blockquote {
  margin-top: 20px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.quote-inner .quote-by {
  margin-top: 26px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.contact-info p {
  margin-top: 16px;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  color: var(--ink);
}

.contact-list a,
.contact-list span {
  color: var(--muted);
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #FBFAF7;
  transition: border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Footer — split dark / light ---------- */
.site-footer {
  margin-top: 0;
}

.footer-dark {
  background: linear-gradient(135deg, #1B3269 0%, #141C2B 60%, #0E1522 100%);
  color: var(--on-dark);
  padding: 80px 48px;
}

.footer-dark-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.footer-cta h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer-cta p {
  margin-top: 16px;
  color: #C9D4E8;
  max-width: 480px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: #E9EEF7;
}

.footer-contact a:hover {
  color: #FFA67D;
}

.footer-light {
  background: #FAF8F3;
  border-top: 1px solid var(--line);
  padding: 44px 48px;
}

.footer-light-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid transparent;
}

.footer-legal-links a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.footer-copy {
  width: 100%;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar {
    padding: 16px 22px;
  }

  .topbar.scrolled {
    padding: 12px 22px;
  }

  .hero {
    padding: 120px 22px 70px;
  }

  .section,
  .statement,
  .quote-band {
    padding: 80px 22px;
  }

  .footer-dark {
    padding: 60px 22px;
  }

  .footer-light {
    padding: 36px 22px;
  }

  .footer-dark-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dd-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dd-row.reverse {
    direction: ltr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    gap: 22px;
  }
}
