/* =========================================================
   DIGITALERAA — stylesheet
   Edit colours, fonts and spacing here. One file, all pages.
   ========================================================= */

:root{
  --midnight:#12153A;
  --midnight-soft:#1C2050;
  --volt:#7C4DFF;
  --volt-deep:#4E2AA8;
  --paper:#F8F7FC;
  --white:#FFFFFF;
  --slate:#6B7280;
  --line:#E7E4F5;

  --display:'Space Grotesk', 'Segoe UI', sans-serif;
  --body:'Inter', 'Segoe UI', Arial, sans-serif;

  --wrap:1140px;
  --gap:clamp(56px, 8vw, 104px);
}

*,*::before,*::after{box-sizing:border-box;}

html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{animation:none !important;transition:none !important;}
}

body{
  margin:0;
  background:var(--paper);
  color:var(--midnight);
  font-family:var(--body);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block;}

a{color:inherit;}

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:600;
  line-height:1.12;
  letter-spacing:-0.02em;
  margin:0 0 .5em;
}
h1{font-size:clamp(2.4rem,5.4vw,4rem);}
h2{font-size:clamp(1.9rem,3.6vw,2.7rem);}
h3{font-size:1.25rem;}
p{margin:0 0 1.1em;max-width:68ch;}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 24px;}
.section{padding:var(--gap) 0;}
.section--dark{background:var(--midnight);color:var(--paper);}
.section--dark p{color:#C3C6E4;}
.lead{font-size:1.12rem;color:var(--slate);}
.section--dark .lead{color:#C3C6E4;}

/* ---------- section heading with accent rule ---------- */
.head{max-width:62ch;margin-bottom:44px;}
.head h2{position:relative;padding-top:18px;}
.head h2::before{
  content:"";position:absolute;top:0;left:0;
  width:64px;height:5px;
  background:linear-gradient(90deg,var(--volt),var(--volt-deep));
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;padding:14px 28px;border-radius:6px;
  font-family:var(--display);font-weight:600;font-size:.98rem;
  text-decoration:none;border:2px solid var(--midnight);
  background:var(--midnight);color:var(--paper);
  transition:background .18s ease,color .18s ease,opacity .18s ease;
}
.btn:hover{background:transparent;color:var(--midnight);}
.btn--volt{
  background:linear-gradient(135deg,var(--volt),var(--volt-deep));
  border-color:transparent;color:#fff;
}
.btn--volt:hover{opacity:.88;}
.btn--ghost{background:transparent;color:var(--midnight);}
.btn--ghost:hover{background:var(--midnight);color:var(--paper);}
.section--dark .btn--ghost{color:var(--paper);border-color:var(--paper);}
.section--dark .btn--ghost:hover{background:var(--paper);color:var(--midnight);}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid var(--volt);outline-offset:3px;
}

/* ---------- top bar ---------- */
.topbar{background:var(--midnight);color:#AEB0D6;font-size:.88rem;}
.topbar .wrap{display:flex;justify-content:space-between;gap:16px;padding-top:10px;padding-bottom:10px;flex-wrap:wrap;}
.topbar a{text-decoration:none;}
.topbar a:hover{color:var(--volt);}

/* ---------- navigation ---------- */
.nav{
  position:sticky;top:0;z-index:50;
  background:var(--paper);border-bottom:1px solid var(--line);
}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:74px;}
.logo{
  font-family:var(--display);font-weight:700;font-size:1.35rem;
  letter-spacing:-.03em;text-decoration:none;color:var(--midnight);
}
.logo span{
  background:linear-gradient(135deg,var(--volt),var(--volt-deep));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.nav-links{display:flex;gap:30px;align-items:center;list-style:none;margin:0;padding:0;}
.nav-links a{
  text-decoration:none;font-size:.98rem;font-weight:500;
  padding:6px 0;border-bottom:2px solid transparent;
}
.nav-links a:hover{border-bottom-color:var(--volt);}
.nav-links a.active{border-bottom-color:var(--midnight);}
.nav-toggle{
  display:none;background:none;border:1px solid var(--line);
  border-radius:2px;padding:9px 12px;cursor:pointer;font-size:1.1rem;
}

/* ---------- hero ---------- */
.hero{padding:clamp(56px,7vw,88px) 0; position:relative; overflow:hidden;}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center; position:relative; z-index:2;}
.eyebrow{
  font-family:var(--display);font-size:.95rem;color:var(--slate);
  margin:0 0 14px;
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px;}
.hero-figure{position:relative;}
.hero-figure img{border-radius:6px;}
.hero-figure::after{
  content:"";position:absolute;left:-18px;bottom:-18px;
  width:120px;height:120px;background:var(--midnight);z-index:-1;border-radius:4px;
}

/* gradient headline word, e.g. <span class="grad-text">DIGITALERAA</span> */
.grad-text{
  background:linear-gradient(135deg,var(--volt),var(--volt-deep));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* ---------- page banner (inner pages) ---------- */
.banner{background:var(--midnight);color:var(--paper);padding:66px 0 58px;}
.banner h1{margin-bottom:8px;}
.crumbs{font-size:.92rem;color:#AEB0D6;}
.crumbs a{text-decoration:none;}
.crumbs a:hover{color:var(--volt);}

/* ---------- generic grids ---------- */
.grid{display:grid;gap:24px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

.card{
  background:var(--white);border:1px solid var(--line);
  padding:30px 28px;border-radius:8px;
}
.section--dark .card{background:var(--midnight-soft);border-color:#2C2F66;}
.card h3{margin-bottom:10px;}
.card p{margin:0;color:var(--slate);font-size:.98rem;}
.section--dark .card p{color:#C3C6E4;}

/* ---------- stats ---------- */
.stat{border-top:3px solid var(--volt);padding-top:18px;}
.stat b{display:block;font-family:var(--display);font-size:2.6rem;line-height:1;}
.stat span{color:var(--slate);font-size:.95rem;}
.section--dark .stat span{color:#C3C6E4;}

/* ---------- workflow steps ---------- */
.step{display:flex;gap:22px;padding:26px 0;border-top:1px solid var(--line);}
.section--dark .step{border-top-color:#2C2F66;}
.step b{
  font-family:var(--display);font-size:1.5rem;color:var(--volt);
  min-width:56px;
}
.step h3{margin-bottom:6px;}
.step p{margin:0;color:var(--slate);}
.section--dark .step p{color:#C3C6E4;}

/* ---------- quotes ---------- */
.quote{background:var(--white);border-left:5px solid var(--volt);padding:28px 30px;}
.quote p{font-size:1.06rem;margin-bottom:14px;}
.quote cite{font-style:normal;font-weight:600;font-family:var(--display);}

/* ---------- pricing ---------- */
.price{background:var(--white);border:1px solid var(--line);padding:34px 30px;display:flex;flex-direction:column;}
.price--featured{background:var(--midnight);color:var(--paper);border-color:var(--midnight);}
.price .amount{font-family:var(--display);font-size:2.8rem;line-height:1;margin:6px 0 2px;}
.price .per{color:var(--slate);font-size:.92rem;}
.price--featured .per{color:#AEB0D6;}
.price ul{list-style:none;margin:22px 0;padding:0;flex:1;}
.price li{padding:9px 0;border-bottom:1px solid var(--line);font-size:.96rem;}
.price--featured li{border-bottom-color:#2C2F66;}

/* ---------- team ---------- */
.member{text-align:left;}
.avatar{
  width:74px;height:74px;border-radius:50%;
  background:linear-gradient(135deg,var(--volt),var(--volt-deep));
  display:flex;align-items:center;justify-content:center;
  font-family:var(--display);font-weight:700;font-size:1.5rem;margin-bottom:16px;color:#fff;
}
.member span{color:var(--slate);font-size:.95rem;}

/* ---------- contact + form ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:48px;align-items:start;}
.info-row{padding:18px 0;border-top:1px solid var(--line);}
.info-row strong{display:block;font-family:var(--display);font-size:.95rem;margin-bottom:4px;}
.info-row a{text-decoration:none;color:var(--slate);}
.info-row a:hover{color:var(--midnight);}
.info-row span{color:var(--slate);}

form{background:var(--white);border:1px solid var(--line);padding:30px;}
label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px;}
input,textarea{
  width:100%;padding:12px 14px;margin-bottom:18px;
  border:1px solid var(--line);border-radius:6px;
  font-family:var(--body);font-size:1rem;background:var(--paper);color:var(--midnight);
}
textarea{min-height:130px;resize:vertical;}
button.btn{cursor:pointer;font-family:var(--display);}

.map iframe{width:100%;height:340px;border:0;display:block;}

/* ---------- CTA strip ---------- */
.cta{
  background:linear-gradient(120deg,var(--volt),var(--volt-deep));
  color:#fff;padding:56px 0;
}
.cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap;}
.cta h2{margin:0;color:#fff;}
.cta p{margin:6px 0 0;color:rgba(255,255,255,.85);}
.cta .btn{background:#fff;color:var(--midnight);border-color:#fff;}
.cta .btn:hover{background:transparent;color:#fff;}

/* ---------- footer ---------- */
.footer{background:var(--midnight);color:#AEB0D6;padding:64px 0 0;}
.footer h4{font-family:var(--display);color:var(--paper);font-size:1rem;margin:0 0 16px;}
.footer a{color:#AEB0D6;text-decoration:none;}
.footer a:hover{color:var(--volt);}
.footer ul{list-style:none;margin:0;padding:0;}
.footer li{padding:5px 0;font-size:.96rem;}
.footer .logo{color:var(--paper);}
.footer p{font-size:.96rem;}
.foot-bottom{
  border-top:1px solid #2C2F66;margin-top:48px;padding:20px 0;
  font-size:.88rem;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
}

/* ---------- blog ---------- */
.post{background:var(--white);border:1px solid var(--line);padding:28px;}
.post time{font-size:.86rem;color:var(--slate);}
.post h3{margin:8px 0 10px;}
.post p{color:var(--slate);font-size:.97rem;margin-bottom:14px;}
.post a{font-family:var(--display);font-weight:600;font-size:.95rem;text-decoration:none;border-bottom:2px solid var(--volt);}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero-grid,.contact-grid{grid-template-columns:1fr;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:760px){
  .nav-toggle{display:block;}
  .nav-links{
    display:none;position:absolute;top:74px;left:0;right:0;
    flex-direction:column;align-items:flex-start;gap:0;
    background:var(--paper);border-bottom:1px solid var(--line);padding:8px 24px 18px;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:12px 0;width:100%;}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .topbar .wrap{justify-content:center;text-align:center;}
  .hero-figure::after{display:none;}
}

/* ---------- flowing ribbons (hero background) ---------- */
.ribbons{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; pointer-events:none;
}
.ribbon-path{
  fill:none; stroke-width:1.6; stroke-linecap:round; opacity:.55;
}
.r1{stroke:var(--volt); opacity:.4; stroke-dasharray:18 14; animation:dash 26s linear infinite;}
.r2{stroke:var(--midnight); opacity:.07; stroke-dasharray:2 10; animation:dash 40s linear infinite reverse;}
.r3{stroke:var(--volt-deep); opacity:.6; stroke-width:2.2; stroke-dasharray:1 16; animation:dash 18s linear infinite;}
@keyframes dash{ to{ stroke-dashoffset:-1000; } }

/* ---------- magnetic buttons ---------- */
.magnet{ display:inline-block; }
.magnet .btn{ transition:transform .25s ease; }

/* ---------- services marquee strip ---------- */
.marquee{ background:var(--midnight); overflow:hidden; padding:16px 0; }
.marquee-track{
  display:flex; white-space:nowrap; width:max-content;
  animation:scroll-left 22s linear infinite;
}
.marquee-track span{
  font-family:var(--display); font-size:20px; font-weight:600; color:var(--paper);
  padding:0 28px; display:flex; align-items:center; gap:28px;
}
.marquee-track span.dim{ color:#B79CFF; }
@keyframes scroll-left{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

@media (prefers-reduced-motion: reduce){
  .r1,.r2,.r3,.marquee-track{ animation:none !important; }
}

/* ---------- logo image (navbar + footer) ---------- */
.logo-link{ display:flex; align-items:center; text-decoration:none; }
.logo-img{ height:46px; width:auto; display:block; }
.footer .logo-img{
  height:38px;
  filter:brightness(0) invert(1);
  opacity:.92;
}

/* ---------- social icons ---------- */
.social{display:flex;gap:14px;margin-top:18px;}
.social a{
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;
  background:var(--midnight-soft);border:1px solid #2C2F66;
  color:#AEB0D6;transition:background .2s ease,color .2s ease,transform .2s ease;
}
.social a:hover{
  background:linear-gradient(135deg,var(--volt),var(--volt-deep));
  color:#fff;transform:translateY(-2px);border-color:transparent;
}
.social svg{width:18px;height:18px;fill:currentColor;}

/* ---------- service cards turn white on hover/touch ---------- */
.section--dark .card{
  transition:background .28s ease, color .28s ease, border-color .28s ease, transform .2s ease;
}
.section--dark .card h3,
.section--dark .card p{
  transition:color .28s ease;
}
.section--dark .card:hover,
.section--dark .card:focus-within{
  background:#fff;
  border-color:var(--volt);
  transform:translateY(-4px);
}
.section--dark .card:hover h3,
.section--dark .card:focus-within h3{
  color:var(--midnight);
}
.section--dark .card:hover p,
.section--dark .card:focus-within p{
  color:var(--slate);
}
.section--dark .card.is-active{
  background:#fff; border-color:var(--volt); transform:translateY(-4px);
}
.section--dark .card.is-active h3{ color:var(--midnight); }
.section--dark .card.is-active p{ color:var(--slate); }

@media (prefers-reduced-motion: reduce){
  .section--dark .card{ transition:none; }
}
/* ---------- service cards turn blue on hover/touch (light sections) ---------- */
.section:not(.section--dark) .card{
  transition:background .28s ease, border-color .28s ease, transform .2s ease;
}
.section:not(.section--dark) .card h3,
.section:not(.section--dark) .card p{
  transition:color .28s ease;
}
.section:not(.section--dark) .card:hover,
.section:not(.section--dark) .card:focus-within,
.section:not(.section--dark) .card.is-active{
  background:var(--midnight);
  border-color:var(--midnight);
  transform:translateY(-4px);
}
.section:not(.section--dark) .card:hover h3,
.section:not(.section--dark) .card:focus-within h3,
.section:not(.section--dark) .card.is-active h3{
  color:#fff;
}
.section:not(.section--dark) .card:hover p,
.section:not(.section--dark) .card:focus-within p,
.section:not(.section--dark) .card.is-active p{
  color:#C3C6E4;
}

@media (prefers-reduced-motion: reduce){
  .section:not(.section--dark) .card{ transition:none; }
}
/* ---------- blog post cards turn blue on hover/touch ---------- */
.post{
  transition:background .28s ease, border-color .28s ease, transform .2s ease;
}
.post time,
.post h3,
.post p,
.post a{
  transition:color .28s ease, border-color .28s ease;
}
.post:hover,
.post:focus-within,
.post.is-active{
  background:var(--midnight);
  border-color:var(--midnight);
  transform:translateY(-4px);
}
.post:hover time,
.post:focus-within time,
.post.is-active time{ color:#9CA0C4; }

.post:hover h3,
.post:focus-within h3,
.post.is-active h3{ color:#fff; }

.post:hover p,
.post:focus-within p,
.post.is-active p{ color:#C3C6E4; }

.post:hover a,
.post:focus-within a,
.post.is-active a{ color:#fff; border-bottom-color:var(--volt); }

@media (prefers-reduced-motion: reduce){
  .post{ transition:none; }
}
/* ---------- workflow steps turn blue on hover/touch ---------- */
.step{
  border-radius:8px;
  transition:background .28s ease, border-color .28s ease;
}
.step b,
.step h3,
.step p{
  transition:color .28s ease;
}
.step:hover,
.step:focus-within,
.step.is-active{
  background:var(--midnight);
  border-top-color:var(--midnight);
}
.step:hover b,
.step:focus-within b,
.step.is-active b{ color:#B79CFF; }

.step:hover h3,
.step:focus-within h3,
.step.is-active h3{ color:#fff; }

.step:hover p,
.step:focus-within p,
.step.is-active p{ color:#C3C6E4; }

@media (prefers-reduced-motion: reduce){
  .step{ transition:none; }
}
/* ---------- testimonial quotes turn blue on hover/touch ---------- */
.quote{
  border-radius:0 8px 8px 0;
  transition:background .28s ease, border-color .28s ease;
}
.quote p,
.quote cite{
  transition:color .28s ease;
}
.quote:hover,
.quote:focus-within,
.quote.is-active{
  background:var(--midnight);
  border-left-color:var(--volt);
}
.quote:hover p,
.quote:focus-within p,
.quote.is-active p{ color:#fff; }

.quote:hover cite,
.quote:focus-within cite,
.quote.is-active cite{ color:#B79CFF; }

@media (prefers-reduced-motion: reduce){
  .quote{ transition:none; }
}
/* ---------- service cards: turn white + rotate once (slow) ---------- */
.section--dark .card:hover,
.section--dark .card:focus-within,
.section--dark .card.is-active{
  animation:card-spin-once 1.6s cubic-bezier(.45,.05,.25,1) 1;
}

@keyframes card-spin-once{
  from{ transform:perspective(900px) translateY(-4px) rotateY(0deg); }
  to  { transform:perspective(900px) translateY(-4px) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .section--dark .card:hover,
  .section--dark .card:focus-within,
  .section--dark .card.is-active{ animation:none; }
}
/* ---------- service cards: ripple fill from touch point ---------- */
.section--dark .card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:transform .18s ease-out, border-color .3s ease;
  will-change:transform;
}

/* white ripple that grows out from the exact point you touch */
.section--dark .card::before{
  content:"";
  position:absolute;
  left:var(--x,50%); top:var(--y,50%);
  width:900px; height:900px;
  border-radius:50%;
  background:#fff;
  transform:translate(-50%,-50%) scale(0);
  transition:transform .7s cubic-bezier(.22,.8,.3,1);
  z-index:-1;
}

/* accent bar that slides in at the bottom */
.section--dark .card::after{
  content:"";
  position:absolute;left:0;bottom:0;height:4px;width:0;
  background:linear-gradient(90deg,var(--volt),var(--volt-deep));
  transition:width .7s ease .1s;
}

.section--dark .card h3,
.section--dark .card p{
  transition:color .35s ease .12s;
}

.section--dark .card:hover,
.section--dark .card:focus-within,
.section--dark .card.is-active{
  border-color:var(--volt);
  animation:card-glow-pulse .9s ease-out 1;
}
.section--dark .card:hover::before,
.section--dark .card:focus-within::before,
.section--dark .card.is-active::before{ transform:translate(-50%,-50%) scale(1); }

.section--dark .card:hover::after,
.section--dark .card:focus-within::after,
.section--dark .card.is-active::after{ width:100%; }

.section--dark .card:hover h3,
.section--dark .card:focus-within h3,
.section--dark .card.is-active h3{ color:var(--midnight); }

.section--dark .card:hover p,
.section--dark .card:focus-within p,
.section--dark .card.is-active p{ color:var(--slate); }

/* one-time purple glow ring that expands outward */
@keyframes card-glow-pulse{
  0%  { box-shadow:0 0 0 0 rgba(124,77,255,.65); }
  100%{ box-shadow:0 0 0 26px rgba(124,77,255,0); }
}

@media (prefers-reduced-motion: reduce){
  .section--dark .card,
  .section--dark .card::before,
  .section--dark .card::after{ transition:none; }
  .section--dark .card:hover,
  .section--dark .card:focus-within,
  .section--dark .card.is-active{ animation:none; }
}
/* ---------- Services nav dropdown ---------- */
.has-dropdown{ position:relative; }
.dropdown{
  display:none;
  position:absolute; top:100%; left:0;
  background:#fff; border:1px solid var(--line); border-radius:8px;
  min-width:230px; padding:10px;
  box-shadow:0 16px 32px rgba(18,21,58,.14);
  list-style:none; margin:12px 0 0; z-index:60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ display:block; }
.dropdown li{ padding:0; }
.dropdown a{
  display:block; padding:10px 12px; border-radius:6px;
  font-size:.94rem; font-weight:500; border:0;
}
.dropdown a:hover{ background:var(--paper); color:var(--volt-deep); }

@media (max-width:760px){
  .dropdown{
    position:static; display:block; box-shadow:none; border:none;
    padding-left:14px; margin:6px 0 0; background:transparent;
  }
  .dropdown a{ padding:8px 0; }
}