/*
Theme Name: Nexus Delivery
Theme URI: https://nexus.delivery
Author: Nexus it
Author URI: https://nexusit.today
Description: Clean, modern production WordPress theme for Nexus Delivery. Shared Nexus visual language with a dedicated delivery proposition.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: nexus-delivery
*/

:root{
  --ink:#0b1020;
  --navy:#0a1020;
  --muted:#647084;
  --line:#e6eaf1;
  --soft:#f6f8fc;
  --soft2:#eef4fb;
  --white:#fff;
  --cyan:#08cbd1;
  --blue:#1299f5;
  --violet:#9f2cf4;
  --pink:#f32379;
  --orange:#ff8b1f;
  --radius:20px;
  --radius-lg:32px;
  --shadow:0 22px 70px rgba(13,26,58,.10);
  --shadow-sm:0 10px 34px rgba(13,26,58,.08);
  --focus:#126cf4;
  --gradient:linear-gradient(115deg,var(--cyan) 0%,var(--blue) 30%,var(--violet) 58%,var(--pink) 78%,var(--orange) 100%);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--white);line-height:1.6;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-weight:850;margin:0 0 .5em;letter-spacing:-.025em}
p{margin:0 0 1em} ul,ol{margin:0}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.wrap{width:min(1200px,calc(100% - 36px));margin:auto}
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:var(--ink);padding:12px 18px;z-index:9999}.skip-link:focus{left:0}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:-1px}

/* brand */
.topbar{background:#09101f;color:#d7deeb;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 0;flex-wrap:wrap}
.topbar a{color:#fff;font-weight:700}.topbar a:hover{color:#38c8f3}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(230,234,241,.9)}
.nav{min-height:82px;display:flex;align-items:center;gap:24px;padding:10px 0}
.brand{display:flex;align-items:center;gap:12px;margin-right:auto;min-width:220px}
.brand-mark{width:58px;height:58px;object-fit:contain}
.brand-word{display:flex;flex-direction:column;line-height:1}
.brand-main{font-size:23px;font-weight:900;letter-spacing:-.045em;color:#080e1d}
.brand-main em{font-style:normal;background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand-sub{font-size:11px;letter-spacing:.28em;text-transform:lowercase;color:#596476;margin-top:5px;padding-left:1px}
.menu{display:flex;gap:20px;font-weight:750;font-size:14px;list-style:none;margin:0;padding:0;align-items:center}
.menu a{padding:9px 2px}.menu a:hover,.menu a[aria-current="page"]{color:#6d46ee}
.menu-toggle{display:none;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 13px;font-weight:800}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:999px;font-weight:850;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:15px;transition:.2s transform,.2s box-shadow,.2s border-color}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm);border-color:#b9c4d5}
.btn.primary{background:var(--gradient);border:0;color:#fff;box-shadow:0 10px 28px rgba(127,55,235,.22)}
.btn.dark{background:#0b1020;color:#fff;border-color:#0b1020}
.btn.ghost-dark{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18);color:#fff}

/* hero */
.hero{position:relative;overflow:hidden;padding:76px 0 62px;background:linear-gradient(180deg,#fff 0%,#f8fbff 64%,#f4f7fb 100%)}
.hero:before{content:"";position:absolute;width:620px;height:620px;border-radius:50%;right:-170px;top:-300px;background:radial-gradient(circle,rgba(16,200,212,.18),rgba(139,61,236,.08) 45%,transparent 70%)}
.hero:after{content:"";position:absolute;width:500px;height:500px;border-radius:50%;left:-290px;bottom:-370px;background:radial-gradient(circle,rgba(242,35,121,.12),transparent 68%)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr .95fr;gap:52px;align-items:center}
.eyebrow{display:inline-flex;padding:7px 12px;border-radius:999px;background:#edf7fb;color:#087c94;font-weight:850;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.hero h1{font-size:clamp(40px,5.2vw,68px);line-height:1.01;margin:18px 0 20px;max-width:760px}
.gradient-text{background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{font-size:19px;color:var(--muted);max-width:690px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:26px;color:#485568;font-weight:650;font-size:14px;list-style:none;padding:0}
.trust li:before{content:"✓";font-weight:900;margin-right:7px;color:#1299f5}
.hero-visual{position:relative;border:1px solid #e8edf5;background:rgba(255,255,255,.82);border-radius:36px;padding:38px;box-shadow:var(--shadow);min-height:410px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.hero-visual:before{content:"";position:absolute;inset:18px;border-radius:25px;background:linear-gradient(145deg,rgba(8,203,209,.06),rgba(159,44,244,.04),rgba(255,139,31,.04));z-index:0}
.hero-logo{position:relative;z-index:1;text-align:center}
.hero-logo img{width:min(300px,70%);margin:0 auto 16px}
.hero-logo .logo-main{font-size:clamp(36px,5vw,58px);font-weight:950;line-height:.95;letter-spacing:-.055em;color:#09101f}
.hero-logo .logo-main em{font-style:normal;background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-logo .logo-sub{display:block;margin-top:11px;font-size:18px;letter-spacing:.42em;text-transform:lowercase;color:#5d687a}

/* sections */
.section{padding:72px 0}.soft{background:var(--soft)}
.section-head{display:flex;justify-content:space-between;gap:32px;align-items:flex-end;margin-bottom:30px;flex-wrap:wrap}
.section h2{font-size:clamp(30px,3.6vw,46px);line-height:1.08;margin:0}.section-head p{max-width:590px;color:var(--muted);margin:0}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;list-style:none;padding:0;margin:0}
.card{height:100%;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;min-height:225px;transition:.22s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-sm);border-color:#d9dfea}
.card h3{margin:17px 0 8px;font-size:20px}.card p{color:var(--muted);font-size:14px;margin:0 0 16px}.card .link{margin-top:auto;color:#6843e9;font-weight:850}
.icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#effafa,#f5efff);display:grid;place-items:center;font-size:20px;font-weight:900;color:#613fe8}

.band{background:#0a1020;color:#fff;position:relative;overflow:hidden}.band:after{content:"";position:absolute;right:-120px;top:-180px;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(10,199,209,.21),transparent 66%)}
.band .section-head p{color:#b7c0d1}.band .eyebrow{background:rgba(255,255,255,.08);color:#71dce5}
.routes{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;position:relative;z-index:1}.route-panel{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:var(--radius-lg);padding:34px}.route-panel.light{background:#fff;color:var(--ink)}.route-panel p{color:#c5ccda}.route-panel.light p{color:var(--muted)}
.pillrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.pill{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);font-size:13px}.route-panel.light .pill{background:#f2f5f9}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;list-style:none;padding:0;margin:0}.step{padding:26px;border:1px solid var(--line);border-radius:20px;background:#fff}.step b{font-size:12px;color:#7748e8;letter-spacing:.08em}.step h3{margin:9px 0}.step p{color:var(--muted);margin:0}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{border:1px solid var(--line);border-radius:18px;padding:22px;background:#fff}.stat strong{font-size:20px;display:block;margin-bottom:4px}.stat span{font-size:13px;color:var(--muted)}

.cta{background:var(--gradient);color:#fff;border-radius:var(--radius-lg);padding:44px;display:flex;justify-content:space-between;align-items:center;gap:25px;flex-wrap:wrap;box-shadow:0 24px 70px rgba(111,60,224,.22)}.cta h2{max-width:720px;margin:0}.cta p{max-width:680px;opacity:.92;margin:8px 0 0}.cta .btn{background:#fff;color:#11172a;border-color:#fff}
.faq{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px;overflow:hidden;background:#fff}.faq summary{padding:19px 20px;font-weight:800;cursor:pointer;list-style:none}.faq summary::-webkit-details-marker{display:none}.faq[open] summary{border-bottom:1px solid var(--line)}.faq-a{padding:16px 20px;color:var(--muted)}

/* content */
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:18px}.breadcrumbs a{text-decoration:underline}.content-shell{padding:54px 0;min-height:50vh}.content-shell h1{font-size:clamp(32px,4vw,48px)}.content-shell .entry-content{max-width:900px}.content-shell .entry-content h2{margin-top:2em}

/* footer */
.footer{background:#080d19;color:#fff;padding:52px 0 24px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:44px}.footer h3,.footer h4{color:#fff}.footer p,.footer a{color:#aeb8ca}.footer a:hover{color:#fff}.footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:15px}.footer-brand img{width:52px}.powered{margin-top:26px;padding-top:18px;border-top:1px solid #242b3a;color:#818ca0;font-size:13px}.powered b{color:#fff}

/* WooCommerce */
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{border:1px solid var(--line);border-radius:18px;padding:16px;background:#fff}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:#6f43e7!important;color:#fff!important;border-radius:999px!important;border:none!important}.woocommerce a.button:hover,.woocommerce button.button:hover{background:#5630ca!important}

@media(max-width:980px){.menu{display:none}.menu-toggle{display:inline-flex}.site-header.nav-open .menu{display:flex;flex-direction:column;width:100%;padding:16px 0}.nav{flex-wrap:wrap}.hero-grid,.routes{grid-template-columns:1fr}.hero-visual{min-height:340px}.cards{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr}.section-head,.cta{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.topbar .wrap span:first-child{display:none}.cards,.steps,.stats{grid-template-columns:1fr}.hero{padding-top:48px}.hero h1{font-size:43px}.brand{min-width:0}.brand-mark{width:46px;height:46px}.brand-main{font-size:20px}.brand-sub{font-size:9px}.nav>.btn.primary{display:none}.hero-visual{padding:28px 18px;min-height:300px}.section{padding:55px 0}.cta{padding:32px 25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* v1.0.1 service conversion routing */
.service-action-cta{margin:26px 0 38px;padding:26px 28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#f7fbff 0%,#fff 72%);box-shadow:0 12px 34px rgba(12,24,45,.06);display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}.service-action-cta>div:first-child{max-width:700px}.service-action-cta h2{font-size:clamp(22px,3vw,30px);margin:7px 0}.service-action-cta p{margin:0;color:var(--muted)}

/* Nexus visual system v1.1.0 */
.nexus-icon{width:72px!important;height:72px!important;padding:12px!important;border-radius:18px!important;background:#f5f8ff!important}.nexus-icon img{width:100%;height:100%;object-fit:contain}.journey-asset{display:block;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:var(--shadow);margin:22px 0 28px}.journey-asset img{display:block;width:100%;height:auto}.journey-steps .step img{width:56px;height:56px;margin-bottom:12px}.cards .card{height:100%}.cards{align-items:stretch}@media(max-width:1180px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.cards{grid-template-columns:1fr}.journey-asset{border-radius:16px}}


/* Compact Nexus navigation v1.1.1 */
.site-header .header-inner{
  display:flex;
  align-items:center;
  gap:24px;
}
.site-header .brand{
  flex:0 0 auto;
}
.compact-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
.compact-nav .nav-link,
.compact-nav summary{
  font-weight:700;
  font-size:14px;
  color:var(--ink);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  list-style:none;
  white-space:nowrap;
}
.compact-nav summary::-webkit-details-marker{display:none}
.compact-nav summary::after{
  content:"▾";
  font-size:10px;
  margin-left:6px;
}
.nav-group{
  position:relative;
}
.nav-group[open] summary{
  background:#f5f7ff;
}
.nav-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 18px 45px rgba(18,22,30,.12);
  padding:8px;
  z-index:999;
}
.nav-dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--ink);
  text-decoration:none;
  font-weight:650;
  font-size:14px;
}
.nav-dropdown a:hover{
  background:#f7f8ff;
}
.nav-login[aria-disabled="true"]{
  opacity:.55;
  pointer-events:none;
}
.compact-nav .quote-btn{
  padding:11px 18px;
  white-space:nowrap;
}
@media(max-width:1100px){
  .compact-nav{
    gap:6px;
  }
  .compact-nav .nav-link,
  .compact-nav summary{
    padding:9px 9px;
    font-size:13px;
  }
  .compact-nav .quote-btn{
    padding:10px 14px;
    font-size:13px;
  }
}
@media(max-width:860px){
  .site-header .header-inner{
    flex-wrap:wrap;
  }
  .compact-nav{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    flex-wrap:wrap;
    padding-top:8px;
  }
  .nav-dropdown{
    position:fixed;
    left:16px;
    right:16px;
    top:auto;
    min-width:0;
  }
}

/* v1.1.2 single compact header */
.compact-header{
  display:flex;
  align-items:center;
  min-height:92px;
  gap:28px;
}
.compact-header .brand{display:flex;align-items:center;flex:0 0 auto}
.compact-header .compact-nav{margin-left:auto}
.compact-nav .quote-btn,
.compact-nav a.quote-btn,
.site-header .compact-nav .quote-btn{
  color:#fff !important;
  border:0 !important;
  background:linear-gradient(110deg,#05cbd6 0%,#1aa7f2 28%,#7148ef 52%,#e629a1 76%,#ff7043 100%) !important;
  box-shadow:0 10px 24px rgba(111,72,239,.22);
  font-weight:800;
}
.compact-nav .quote-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(111,72,239,.28);
}
@media(min-width:861px){.compact-header .menu-toggle{display:none}}
@media(max-width:860px){
 .compact-header{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
 .compact-header .menu-toggle{margin-left:auto}
 .compact-header .compact-nav{width:100%;margin-left:0}
}

/* v1.1.4 — clickable NEXUS journey glyph system */
.nexus-journey{max-width:1180px;margin:56px auto;padding:44px;border-radius:28px;background:#f6f8ff}
.nexus-journey__head{text-align:center;max-width:760px;margin:0 auto 34px}
.nexus-journey__head h2{margin:.2em 0;font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.045em;color:#0b1020}
.nexus-journey__head p{color:#647084}
.nexus-journey__steps{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.nexus-journey__step{text-decoration:none!important;color:#0b1020;background:#fff;border:1px solid #e6e9f2;border-radius:20px;padding:24px 18px;min-height:220px;transition:transform .18s ease,box-shadow .18s ease}
.nexus-journey__step:hover,.nexus-journey__step:focus-visible{transform:translateY(-4px);box-shadow:0 14px 34px rgba(11,16,32,.10);outline:none}
.nexus-journey__glyph{--c:#08cbd1;position:relative;display:grid;place-items:center;width:72px;height:72px;margin:0 0 18px;border:3px solid var(--c);border-radius:22px;overflow:hidden;background:#fff}
.nexus-journey__glyph strong{position:relative;z-index:2;font-size:25px;font-weight:900;color:var(--c)}
.nexus-journey__glyph-mark{position:absolute;inset:13px;background:var(--c);opacity:.12;clip-path:polygon(0 25%,22% 25%,48% 0,100% 48%,100% 100%,78% 100%,48% 70%,25% 92%,0 92%,38% 55%)}
.nexus-journey__word{display:block;font-weight:850;font-size:18px;margin-bottom:8px}
.nexus-journey__copy{display:block;color:#647084;line-height:1.55;font-size:14px}
.nexus-journey__step--n .nexus-journey__glyph{--c:#08cbd1}
.nexus-journey__step--e .nexus-journey__glyph{--c:#1299f5}
.nexus-journey__step--x .nexus-journey__glyph{--c:#9f2cf4}
.nexus-journey__step--u .nexus-journey__glyph{--c:#f32379}
.nexus-journey__step--s .nexus-journey__glyph{--c:#ff8b1f}
@media(max-width:900px){.nexus-journey__steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.nexus-journey{padding:28px 18px}.nexus-journey__steps{grid-template-columns:1fr}.nexus-journey__step{min-height:auto}}


/* v1.1.5 — reversed footer identity */
.footer-brand .brand-main{color:#fff}.footer-brand .brand-sub{color:#cbd5e1}.footer-brand .brand-main em{background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}


/* v1.1.7 — native Nexus service stat cards. No JS injection. */
.nexus-native-stats{
  align-items:stretch;
}
.nexus-native-stat{
  position:relative;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  min-height:190px;
  padding:22px!important;
  text-decoration:none!important;
  color:var(--ink,#0b1020)!important;
  overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.nexus-native-stat:hover,
.nexus-native-stat:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(11,16,32,.08);
  border-color:rgba(18,153,245,.28)!important;
  outline:none;
}
.nexus-native-stat:after{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  bottom:0;
  height:3px;
  border-radius:99px 99px 0 0;
  background:linear-gradient(90deg,#08CBD1 0%,#1299F5 28%,#9F2CF4 58%,#F32379 80%,#FF8B1F 100%);
  opacity:.9;
}
.nexus-native-stat__icon{
  width:58px;
  height:58px;
  display:block;
  margin-bottom:14px;
}
.nexus-native-stat__icon svg{
  display:block;
  width:58px;
  height:58px;
}
.nexus-native-stat strong{
  display:block;
  margin-bottom:7px;
}
.nexus-native-stat > span:last-child{
  color:var(--muted,#647084);
}
@media(max-width:760px){
  .nexus-native-stat{
    min-height:165px;
  }
}


/* v1.2.0 — accurate UK map icon.
   Geometry source: Wikimedia Commons, "United Kingdom countries icon map.svg",
   DankJae, CC BY-SA 4.0. Used as a CSS mask so Nexus branding supplies the colour. */
.nexus-native-stat__icon .nexus-uk-map{
  display:block;
  width:58px;
  height:58px;
  background:linear-gradient(135deg,#08CBD1 0%,#1299F5 28%,#9F2CF4 58%,#F32379 80%,#FF8B1F 100%);
  -webkit-mask-image:url("https://upload.wikimedia.org/wikipedia/commons/a/ad/United_Kingdom_countries_icon_map.svg");
  mask-image:url("https://upload.wikimedia.org/wikipedia/commons/a/ad/United_Kingdom_countries_icon_map.svg");
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
