/* ==========================================================================
   DPGI — Design System
   Palette derived from the DPGI mark: ink black + signal orange
   Display: Cormorant Garamond (serif, editorial, architectural)
   Body:    Inter (clean corporate sans)
   Signature motif: interlocking "orbit" rings, echoing the logo's infinity form
   ========================================================================== */

:root{
  /* ---- Color tokens ---- */
  --ink:            #0E0E0E;     /* near-black surface, not pure #000 */
  --ink-soft:       #1B1B1B;
  --paper:          #FAF8F5;     /* warm off-white, light mode base */
  --paper-raised:   #FFFFFF;
  --orange:         #F5851F;     /* primary brand accent, from logo */
  --orange-deep:    #C4650F;     /* pressed / gradient end */
  --orange-tint:    #FCEADA;     /* faint accent backgrounds (light mode) */
  --line:           rgba(14,14,14,0.10);
  --line-dark:      rgba(255,255,255,0.12);
  --text-body:      #3A3733;
  --text-muted:     #7A756E;
  --text-inverse:   #ECE7E0;

  /* ---- Type ---- */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Spacing / radius ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --section-pad: clamp(64px, 9vw, 128px);
  --container-w: 1240px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.4,0,.2,1);

  color-scheme: light;
}

html[data-theme="dark"]{
  color-scheme: dark;
  --paper:          #0E0E0E;
  --paper-raised:   #171614;
  --orange-tint:    #241A0F;
  --line:           rgba(255,255,255,0.10);
  --text-body:      #D9D4CC;
  --text-muted:     #948E85;
  --text-inverse:   #0E0E0E;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--text-body);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  transition:background .4s var(--ease), color .4s var(--ease);
  overflow-x:hidden;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container-xl{ max-width:var(--container-w); margin:0 auto; padding:0 24px; }

h1,h2,h3,h4,.font-display{
  font-family:var(--font-display);
  color:var(--ink);
  font-weight:600;
  letter-spacing:-0.01em;
  line-height:1.12;
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4{
  color:#F3EFE9;
}
h1{ font-size:clamp(2.6rem, 5vw, 4.6rem); }
h2{ font-size:clamp(2rem, 3.4vw, 3rem); }
h3{ font-size:clamp(1.4rem, 2vw, 1.9rem); }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body);
  font-size:0.72rem; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--orange); font-weight:600; margin-bottom:18px;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:var(--orange); display:inline-block; }

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 32px; font-family:var(--font-body); font-weight:600; font-size:0.86rem;
  letter-spacing:0.03em; border-radius:var(--radius-sm); border:1px solid transparent;
  cursor:pointer; transition:all .35s var(--ease); white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:var(--orange); color:#fff; transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(245,133,31,.55); }
html[data-theme="dark"] .btn-primary{ background:var(--orange); color:#0E0E0E; }
html[data-theme="dark"] .btn-primary:hover{ background:#fff; }

.btn-outline{ background:transparent; border-color:var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; }
html[data-theme="dark"] .btn-outline{ border-color:var(--text-inverse); color:#F3EFE9; }
html[data-theme="dark"] .btn-outline:hover{ background:#F3EFE9; color:#0E0E0E; }

.btn-ghost-orange{ background:transparent; color:var(--orange); border-color:var(--orange); }
.btn-ghost-orange:hover{ background:var(--orange); color:#fff; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  padding:22px 0; transition:all .4s var(--ease);
  background:transparent;
}
.site-header.is-scrolled{
  background:var(--paper-raised); padding:12px 0;
  box-shadow:0 1px 0 var(--line), 0 20px 40px -30px rgba(0,0,0,.25);
}
.site-header .nav-wrap{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:auto; width:150px; }
.brand-fallback{ font-family:var(--font-display); font-weight:700; font-size:1.5rem; color:var(--ink); }
html[data-theme="dark"] .brand-fallback{ color:#F3EFE9; }

.main-nav{ display:flex; align-items:center; gap:2px; }
.main-nav > ul{ display:flex; list-style:none; margin:0; padding:0; gap:6px; align-items:center; }
.main-nav > ul > li{ position:relative; }
.main-nav a.nav-link{
  display:block; padding:10px 16px; font-size:0.99rem; font-weight:500;
  color:white; border-radius:var(--radius-sm); transition:color .25s;
}
.site-header.is-scrolled .main-nav a.nav-link{ color:var(--ink); }
html[data-theme="dark"] .main-nav a.nav-link, html[data-theme="dark"] .site-header.is-scrolled .main-nav a.nav-link{ color:#EDE8E1; }
.main-nav a.nav-link:hover, .main-nav li.active > a.nav-link{ color:var(--orange); }

.dropdown-menu{
  min-width:220px; margin-top:10px;
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:10px; box-shadow:0 30px 60px -20px rgba(0,0,0,.25);
  font-family:var(--font-body);
}
.dropdown-item{ display:block; padding:10px 14px; font-size:0.85rem; border-radius:var(--radius-sm); color:var(--text-body); }
.dropdown-item:hover, .dropdown-item:focus{ background:var(--orange-tint); color:var(--orange-deep); }
html[data-theme="dark"] .dropdown-menu{ background:var(--paper-raised); border-color:var(--line); }
html[data-theme="dark"] .dropdown-item{ color:var(--text-body); }
.nav-item.dropdown .dropdown-toggle::after{ vertical-align:1px; margin-left:6px; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.theme-toggle{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; cursor:pointer; background:transparent; color:var(--ink);
}
html[data-theme="dark"] .theme-toggle{ color:#F3EFE9; }
.nav-burger{ display:none; }

@media (max-width:991px){
  .main-nav{ display:none; }
  .nav-burger{ display:flex; }
}

/* ==========================================================================
   HERO (Swiper slider + signature orbit motif)
   ========================================================================== */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  background:var(--ink); overflow:hidden;
}
/* Self-contained Swiper layout fallback. .hero uses display:flex, so its child
   (.hero-swiper) is a flex item — without an explicit width it will shrink to
   fit its content instead of filling the row. These rules are written here
   (not left to the CDN's swiper-bundle.min.css) so the hero is always
   full-width even if that external stylesheet is blocked, slow, or fails to
   load — e.g. on a local dev machine with no internet access. */
.hero-swiper.swiper{
  width:100%; position:relative; overflow:hidden; z-index:1;
}
.hero-swiper .swiper-wrapper{
  display:flex; width:100%; position:relative; z-index:1;
  box-sizing:content-box; transition-property:transform;
}
.hero .swiper-slide{ height:auto; width:100%; flex-shrink:0; position:relative; }
.hero-slide-inner{
  position:relative; min-height:100vh; display:flex; align-items:center;
  padding:140px 0 100px;
}
.hero-bg{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0.34; will-change:transform;
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.88) 100%);
}
.hero-content{ position:relative; z-index:3; max-width:760px; }
.hero-content .eyebrow{ color:var(--orange); }
.hero-content .eyebrow::before{ background:var(--orange); }
.hero-content h1{ color:#fff; }
.hero-content p{ color:rgba(255,255,255,.72); font-size:1.15rem; max-width:600px; margin:22px 0 36px; }

/* Signature orbit motif — interlocking rings echoing the DPGI mark */
.orbit-motif{ position:absolute; z-index:2; pointer-events:none; }
.orbit-motif svg{ width:100%; height:100%; }
.orbit-ring{ fill:none; stroke:var(--orange); stroke-width:1.4; opacity:.55; }
.orbit-ring.alt{ stroke:#fff; opacity:.18; }
.orbit-spin-slow{ animation:orbit-spin 60s linear infinite; transform-origin:center; }
.orbit-spin-slow-rev{ animation:orbit-spin-rev 80s linear infinite; transform-origin:center; }
@keyframes orbit-spin{ from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes orbit-spin-rev{ from{transform:rotate(360deg)} to{transform:rotate(0)} }

.hero-orbit-right{ right:-140px; top:50%; transform:translateY(-50%); width:640px; height:640px; }
@media (max-width:1200px){ .hero-orbit-right{ right:-260px; opacity:.6; } }

.swiper-pagination{ position:absolute; left:24px; bottom:40px; z-index:5; display:flex; gap:8px; width:auto !important; }
.swiper-pagination-bullet{ width:28px; height:2px; border-radius:0; background:rgba(255,255,255,.35); opacity:1; transition:all .3s; }
.swiper-pagination-bullet-active{ background:var(--orange); width:44px; }

/* ==========================================================================
   SECTIONS (generic)
   ========================================================================== */
.section{ padding:var(--section-pad) 0; }
.section-alt{ background:var(--paper-raised); }
.section-ink{ background:var(--ink-soft); color:#D9D4CC; border-top:1px solid rgba(255,255,255,.06); }
.section-ink h2, .section-ink h3{ color:#fff; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.centered{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---- About split ---- */
.about-split{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.about-media{ position:relative; }
.about-media img{ border-radius:var(--radius-md); width:100%; aspect-ratio:4/5; object-fit:cover; }
.about-media::before{
  content:""; position:absolute; top:-24px; left:-24px; width:70%; height:70%;
  border:1.5px solid var(--orange); border-radius:var(--radius-md); z-index:-1;
}
.stat-card{
  position:absolute; bottom:-28px; right:-28px; background:var(--ink); color:#fff;
  padding:26px 30px; border-radius:var(--radius-md); box-shadow:0 30px 60px -20px rgba(0,0,0,.4);
}
.stat-card .num{ font-family:var(--font-display); font-size:2.4rem; color:var(--orange); font-weight:700; line-height:1; }
.stat-card .lbl{ font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.65); margin-top:6px; }
@media (max-width:991px){ .about-split{ grid-template-columns:1fr; gap:48px; } }

/* ---- Cards: services / values / industries ---- */
.grid-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:991px){ .grid-cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-cards{ grid-template-columns:1fr; } }

.service-card{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:40px 34px; transition:all .4s var(--ease); position:relative; overflow:hidden;
}
.service-card::before{
  content:""; position:absolute; top:0; left:0; width:100%; height:3px;
  background:var(--orange); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease);
}
.service-card:hover{ transform:translateY(-8px); box-shadow:0 30px 60px -30px rgba(0,0,0,.25); }
.service-card:hover::before{ transform:scaleX(1); }
.service-icon{
  width:56px; height:56px; border-radius:50%; background:var(--orange-tint); color:var(--orange);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:24px;
  transition:all .4s var(--ease);
}
.service-card:hover .service-icon{ background:var(--orange); color:#fff; transform:rotate(-8deg) scale(1.05); }
.service-card h3{ margin:0 0 12px; font-size:1.3rem; }
.service-card p{ color:var(--text-muted); font-size:.94rem; margin:0 0 20px; }
.card-link{ font-size:.82rem; font-weight:600; letter-spacing:.03em; color:var(--ink); display:inline-flex; align-items:center; gap:8px; }
html[data-theme="dark"] .card-link{ color:#F3EFE9; }
.service-card:hover .card-link{ color:var(--orange); gap:12px; }
.card-link i{ transition:transform .3s var(--ease); }

/* ---- Why partner (icon rows) ---- */
.reason-row{ display:flex; gap:22px; padding:26px 0; border-bottom:1px solid var(--line); }
.reason-row:first-child{ padding-top:0; }
.reason-icon{ font-size:1.3rem; color:var(--orange); width:46px; flex-shrink:0; }
.reason-row h4{ margin:0 0 8px; font-size:1.08rem; }
.reason-row p{ margin:0; color:var(--text-muted); font-size:.92rem; }

/* ---- CTA banner ---- */
.cta-banner{
  background:linear-gradient(120deg, var(--ink) 0%, #241a10 100%);
  border-radius:var(--radius-md); padding:72px 60px; text-align:center; position:relative; overflow:hidden;
}
.cta-banner h2{ color:#fff; margin-bottom:18px; }
.cta-banner p{ color:rgba(255,255,255,.68); max-width:560px; margin:0 auto 34px; }

/* ---- Partner logo strip ---- */
.partner-strip{ display:flex; align-items:center; gap:64px; }
.partner-strip img{ height:34px; width:auto; filter:grayscale(1) opacity(.55); transition:all .3s; }
.partner-strip img:hover{ filter:grayscale(0) opacity(1); }
.swiper-partners{ overflow:hidden; }

/* ---- Careers CTA ---- */
.careers-cta{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }

/* ==========================================================================
   BREADCRUMB / PAGE BANNER
   ========================================================================== */
.page-banner{
  position:relative; padding:180px 0 90px; background:var(--ink); overflow:hidden;
}
.page-banner .eyebrow{ color:var(--orange); }
.page-banner h1{ color:#fff; margin:0; }
.breadcrumb-trail{ display:flex; gap:10px; align-items:center; margin-top:18px; font-size:.85rem; color:rgba(255,255,255,.55); }
.breadcrumb-trail a{ color:rgba(255,255,255,.75); }
.breadcrumb-trail a:hover{ color:var(--orange); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.65); padding-top:90px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:48px; padding-bottom:60px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid h5{ color:#fff; font-family:var(--font-body); font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; margin:0 0 22px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-grid a{ font-size:.92rem; color:rgba(255,255,255,.62); }
.footer-grid a:hover{ color:var(--orange); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:26px 0; font-size:.82rem; flex-wrap:wrap; gap:12px; }
.social-icons{ display:flex; gap:12px; }
.social-icons a{ width:38px; height:38px; border:1px solid rgba(255,255,255,.15); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.social-icons a:hover{ background:var(--orange); border-color:var(--orange); color:#fff; }
@media (max-width:991px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---- Back to top ---- */
.back-to-top{
  position:fixed; right:28px; bottom:28px; width:48px; height:48px; border-radius:50%;
  background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  z-index:900; opacity:0; visibility:hidden; transform:translateY(10px); transition:all .3s var(--ease);
  border:none; cursor:pointer;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--orange); }

/* ---- Preloader ---- */
#preloader{ position:fixed; inset:0; background:var(--paper); z-index:9999; display:flex; align-items:center; justify-content:center; transition:opacity .5s, visibility .5s; }
#preloader.hide{ opacity:0; visibility:hidden; }
.loader-mark{ width:52px; height:52px; border:2px solid var(--line); border-top-color:var(--orange); border-radius:50%; animation:spin 0.9s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---- Forms ---- */
.form-control, .form-select{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:13px 16px; font-size:.92rem; color:var(--text-body); width:100%;
}
.form-control:focus, .form-select:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-tint); }
label.form-label{ font-size:.82rem; font-weight:600; color:var(--ink); margin-bottom:8px; display:block; }
html[data-theme="dark"] label.form-label{ color:#EDE8E1; }

/* Contact info list */
.contact-info-item{ display:flex; gap:18px; padding:22px 0; border-bottom:1px solid var(--line); }
.contact-info-item i{ color:var(--orange); font-size:1.2rem; width:24px; }
.contact-info-item h5{ margin:0 0 6px; font-size:.95rem; color:var(--ink); }
html[data-theme="dark"] .contact-info-item h5{ color:#F3EFE9; }
.contact-info-item p, .contact-info-item a{ margin:0; color:var(--text-muted); font-size:.9rem; }

/* Utility */
.text-orange{ color:var(--orange) !important; }
.divider-thin{ height:1px; background:var(--line); border:none; margin:0; }
