/* ============================================
   Xistent Technology – Multi-page Static Site v2
   Colors: Deep blue #0A3D62 | Accent green #00A86B
   ============================================ */

 :root {
  --blue: #0A3D62;
  --blue-dark: #102F52;
  --green: #00A86B;
  --green-dark: #008F5A;
  --gray-50: #F4F7FB;
  --gray-100: #E8EEF5;
  --gray-200: #D5DEE9;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(10, 61, 98, 0.07);
  --shadow-lg: 0 12px 40px rgba(10, 61, 98, 0.12);
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(10, 61, 98, 0.05), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 168, 107, 0.04), transparent 50%),
    linear-gradient(180deg, #F7FAFC 0%, #EEF3F8 100%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(213, 222, 233, 0.9);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 155px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 143px;
  width: auto;
  display: block;
  max-width: 500px;
  object-fit: contain;
}

.footer-logo-img {
  height: 78px;
  width: auto;
  max-width: 420px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 96px;
  }
  .logo-img {
    height: 72px;
    max-width: 240px;
  }
  .footer-logo-img {
    height: 52px;
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 72px;
    padding: 8px 0;
  }
  .logo-img {
    height: 56px;
    max-width: 180px;
  }
  .footer-logo-img {
    height: 44px;
    max-width: 220px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  transition: 0.3s;
}

/* Hero variants */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 168, 107, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(145deg, #0B4A78 0%, var(--blue) 42%, var(--blue-dark) 100%);
  color: white;
  padding: 4.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-home {
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 1rem;
}

.hero-home h1 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-trust {
  font-size: 0.875rem;
  opacity: 0.8;
}

.page-hero {
  padding: 3.25rem 0 2.75rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 560px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.45);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
}

.btn-full { width: 100%; }

/* Sections */
.section {
  padding: 4.25rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), #38BDF8);
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.02rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.35rem;
}

.service-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFD 100%);
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(213, 222, 233, 0.9);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0.85;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 168, 107, 0.25);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--gray-600);
}

/* Why cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.35rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.6rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow);
  border-top: 1px solid rgba(255,255,255,0.8);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.why-card h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.925rem;
  color: var(--gray-600);
}

/* Content pages */
.content-block {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 222, 233, 0.85);
  border-radius: 14px;
  padding: 2rem 2.1rem 2.4rem;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .content-block {
    padding: 1.35rem 1.15rem 1.75rem;
  }
}

.content-block h2 {
  color: var(--blue);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.content-block ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
  list-style: disc;
  color: var(--gray-600);
}

.content-block li {
  margin-bottom: 0.4rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.25rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-side {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-side h3 {
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

.contact-side p {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.contact-side a {
  color: var(--green);
  text-decoration: underline;
}

.contact-form-wrap {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(213, 222, 233, 0.9);
  border-radius: 14px;
  padding: 2.1rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.925rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  text-align: center;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(0, 168, 107, 0.22), transparent 55%),
    linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  text-align: center;
  padding: 3.75rem 0;
}

.cta-band h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* How We Work / Process */
.process-section {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0, 168, 107, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 30%, rgba(10, 61, 98, 0.06), transparent 50%),
    linear-gradient(180deg, #E9F0F7 0%, #F4F7FB 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.6rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(213, 222, 233, 0.95);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.process-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-step h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer – multi-column sitemap style */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 0;
  text-align: left !important;
}

.footer .container {
  text-align: left !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr !important;
  gap: 2rem 2.5rem !important;
  margin-bottom: 2.75rem;
  align-items: start;
  text-align: left !important;
  width: 100%;
}

.footer-brand-col,
.footer-col,
.footer-contact {
  text-align: left !important;
}

.footer-brand-col .footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.footer-brand-col p {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.85;
  text-align: left !important;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-align: left !important;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left !important;
}

.footer-col li {
  margin-bottom: 0.55rem;
  text-align: left !important;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  opacity: 0.85;
  text-align: left !important;
}

.footer-contact a {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}


@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 96px; /* matches reduced header at <=800px */
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.1rem;
    gap: 0.65rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

@media (max-width: 560px) {
  .nav {
    top: 72px; /* matches reduced header at <=560px */
  }
}

@media (max-width: 520px) {
  .footer-grid {
    flex-direction: column;
    gap: 1.75rem;
  }
  .footer-brand-col,
  .footer-col {
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--blue-dark);
  color: rgba(255,255,255,0.92);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.show {
  display: block;
}

/* Reserve space so content is not hidden under the fixed banner */
body.cookie-open {
  padding-bottom: 5.5rem;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .cookie-inner {
    gap: 0.65rem;
  }
  .cookie-inner p {
    font-size: 0.8rem;
    line-height: 1.35;
    flex: 1 1 100%;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  body.cookie-open {
    padding-bottom: 7.5rem;
  }
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1 1 280px;
}

.cookie-inner a {
  color: var(--green);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--green);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--green-dark);
}

.cookie-btn-essential {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
}

.cookie-btn-essential:hover {
  border-color: white;
  color: white;
}
