/* Inspired by modern B2B purple gradient visual language */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root{
  --bg-page: #ffffff;
  --bg-subtle: #f1f0ff;
  --surface: #ffffff;
  /* Align with logo: navy wordmark + forest green */
  --text: #12102b;
  --muted: #908988;
  --brand: #bf59fe;
  --brand-dark: #6c63ff;
  --accent: #ff6acc;
  --border: #e2def5;
  --shadow: 0 12px 32px rgba(28, 0, 204, 0.08);
  --shadow-sm: 0 4px 14px rgba(28, 0, 204, 0.06);
  --radius: 15px;
  --max: 1340px;
  --logo-h: clamp(56px, 8.5vw, 78px);
  --logo-max-w: min(520px, 90vw);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
  border: 1px solid var(--border);
}
.skip-link:focus{ left: 20px; }

/* Header */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-logo{
  display: block;
  width: auto;
  height: var(--logo-h);
  max-width: var(--logo-max-w);
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 860px){
  :root{
    --logo-h: clamp(48px, 12vw, 58px);
    --logo-max-w: min(92vw, 440px);
  }
}

.nav{
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-menu-btn{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav a{
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover{
  color: var(--text);
  background: var(--bg-subtle);
}

.nav-cta{
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  padding: 10px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(27, 105, 156, .25);
}
.nav-cta:hover{
  filter: brightness(1.03);
}

@media (max-width: 860px){
  .mobile-menu-btn{ display: inline-flex; }
  .nav{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    z-index: 80;
  }
  body.mobile-nav-open .nav{
    display: flex;
  }
  .nav a{
    padding: 10px 12px;
  }
  .nav-cta{
    text-align: center;
  }
}

.nav a[aria-current="page"]:not(.nav-cta){
  color: var(--text);
  font-weight: 600;
}

/* About: avoid centering a narrow column — match .container with hero & sections below */
.about-who .section-title p {
  max-width: 65ch;
}

/* Inner page title band */
.page-hero{
  padding: 56px 0 36px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1{
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}
.page-hero p{
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
  max-width: 62ch;
  line-height: 1.6;
}
.page-hero + .section{
  padding-top: 44px;
}

/* Hero */
.hero{
  padding: 90px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 65%, var(--bg-page) 100%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.kicker-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .18);
}
.hero h1{
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.hero p{
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 19px;
  max-width: 54ch;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.btn:hover{
  border-color: #cbd5e1;
  background: var(--bg-subtle);
}
.btn-primary{
  border: 0;
  color: #fff;
  background: linear-gradient(101.7deg, var(--brand) -21%, var(--brand-dark) 86.13%);
  box-shadow: 0 10px 28px rgba(27, 105, 156, .28);
  border-radius: 999px;
}
.btn-primary:hover{
  filter: brightness(1.05);
}

.hero-card{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-card h3{
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.stat-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat{
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.stat strong{
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.stat span{
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
.trust-row{
  padding-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.trust-pill{
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* Sections */
.section{
  padding: 56px 0;
}
.section-muted{
  background: var(--bg-subtle);
}
.section-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title h2{
  margin: 0;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title p{
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 52ch;
}

.grid-2-about{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 680px){
  .grid-2-about{ grid-template-columns: 1fr; }
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card h3{
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.owner-bio{ margin: 0; }
.owner-bio__more{ margin: 0; }
.owner-bio__more:not([hidden]){ margin-top: 1em; }
.owner-bio__more p{ margin: 0; }
.owner-bio__more p + p{ margin-top: 1em; }

.read-more-btn{
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
@supports (background-clip: text) or (-webkit-background-clip: text){
  .read-more-btn{
    background: linear-gradient(101.7deg, var(--brand) 3%, var(--brand-dark) 18%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-underline-offset: 0;
  }
}
.read-more-btn:hover{ opacity: 0.9; }
.read-more-btn:focus-visible{
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.owner-linkedin{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.owner-linkedin:hover{ color: var(--brand-dark); }

.icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(27, 105, 156, .12);
  border: 1px solid rgba(27, 105, 156, .22);
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.icon.green{
  background: rgba(47, 111, 79, .12);
  border-color: rgba(47, 111, 79, .24);
  color: #256045;
}
.icon.blue{
  background: rgba(27, 105, 156, .1);
  border-color: rgba(27, 105, 156, .2);
  color: var(--brand-dark);
}

@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .hero{ padding-top: 40px; }
}

/* Testimonials */
.quote{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.quote strong{
  display: block;
  color: var(--text);
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* CTA strip */
.cta-strip{
  padding: 22px;
}
.cta-strip .section-title{
  margin-bottom: 12px;
}

/* Contact */
.contact-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.form{
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
label{
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 12px 0 6px;
}
input, textarea, select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 15px;
}
select{
  cursor: pointer;
  appearance: auto;
}
textarea{ min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 105, 156, .18);
}
.form-actions{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fineprint{
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}
#form-status{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
}
#form-status[hidden]{ display: none !important; }
#form-status.form-status--success{
  border-color: rgba(47, 111, 79, 0.45);
  background: rgba(47, 111, 79, 0.08);
  color: #1e4a32;
}
#form-status.form-status--error{
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.06);
  color: #7f1d1d;
}
.info{
  padding: 0;
}
.info .item{
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}
.info .item:first-child{ margin-top: 0; }
.info .item strong{
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

@media (max-width: 980px){
  .contact-wrap{ grid-template-columns: 1fr; }
}

/* Footer */
footer{
  padding: 48px 0 36px;
  border-top: 1px solid #28233e;
  background: #161527;
  color: #b9b9be;
}
.footer-inner{
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-brand{
  display: block;
  color: #ffffff;
  font-weight: 700;
}
.footer-inner a{ color: #b9b9be; }
.footer-inner a:hover{ color: #ff6acc; }

.hero--contact{
  padding-top: 84px;
  padding-bottom: 66px;
}

/* Bigger landing hero only */
.hero--home{
  padding-top: 130px;
  padding-bottom: 96px;
}
.hero--home .hero-grid{
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
}
.hero--home .hero-card{
  padding: 28px;
}
@media (max-width: 980px){
  .hero--home .hero-grid{ grid-template-columns: 1fr; gap: 22px; }
  .hero p{ font-size: 1.15rem; max-width: 42ch; }
  .hero h1{ font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero--home{ padding-top: 82px; padding-bottom: 58px; }
  .page-hero{ padding: 42px 0 26px; }
  .page-hero h1{ font-size: clamp(1.7rem, 6vw, 2.25rem); }
  .hero--contact{ padding-top: 58px; padding-bottom: 44px; }
}

/* Cookie consent — light panel, pink CTAs */
.cookie-consent{
  --cookie-pink: #ff5cc1;
  --cookie-pink-hover: #ff47b5;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 22px max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: #f5f5ff;
  color: var(--text);
  border-top: 1px solid #e2def5;
  box-shadow: 0 -10px 40px rgba(18, 16, 43, 0.08);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.cookie-consent.is-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}
.cookie-consent-copy{
  flex: 1 1 240px;
  max-width: 720px;
  min-width: 0;
}
.cookie-consent h2{
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #12102b;
  letter-spacing: -0.02em;
}
.cookie-consent p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5c5666;
}
.cookie-consent a{
  color: var(--cookie-pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent a:hover{ color: var(--cookie-pink-hover); }
.cookie-consent-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 0;
}
.cookie-consent .cookie-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cookie-consent .cookie-btn--reject{
  background: transparent;
  border-color: var(--cookie-pink);
  color: var(--cookie-pink);
}
.cookie-consent .cookie-btn--reject:hover{
  background: rgba(255, 92, 193, 0.08);
  border-color: var(--cookie-pink-hover);
  color: var(--cookie-pink-hover);
}
.cookie-consent .cookie-btn--accept{
  background: var(--cookie-pink);
  border-color: var(--cookie-pink);
  color: #fff;
}
.cookie-consent .cookie-btn--accept:hover{
  background: var(--cookie-pink-hover);
  border-color: var(--cookie-pink-hover);
}
@media (max-width: 720px){
  .section-title{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-title p{ max-width: none; }
  .cookie-consent{
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(18px, calc(12px + env(safe-area-inset-bottom, 0px))) max(16px, env(safe-area-inset-left, 0px));
  }
  .cookie-consent-inner{
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .cookie-consent-copy{
    flex: none;
    width: 100%;
    max-width: none;
  }
  .cookie-consent h2{
    font-size: 1rem;
    line-height: 1.3;
  }
  .cookie-consent p{
    font-size: 15px;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .cookie-consent-actions{
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .cookie-consent .cookie-btn{
    width: 100%;
    flex: none;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 14px;
    letter-spacing: 0.03em;
    white-space: normal;
    text-align: center;
  }
}
