:root {


 /* Base / Backgrounds */
  --bg: #FAFAFA;               /* Cloud White - main page background */
  --card: #F4F6F8;             /* Mist Gray - for cards and surfaces */
  --border: #D1D5DB;           /* Soft Steel - borders, separators */

  /* Text Colors */
  --text: #1F2933;             /* Graphite - primary text */
  --muted: #4B5563;            /* Slate - secondary/subtext */

  /* Brand Colors */
  --brand: #014C75;            /* Deep Azure - primary brand color */
  --brand-light: #3FA9F5;      /* Sky Azure - hover states, accents */
  --brand-2: #00A676;          /* Verdant Green - secondary brand color */
  --brand-accent: #FFB300;     /* Warm Amber - highlights, CTAs */
  --brand-warm: #E9D8A6;       /* Desert Sand - soft supporting tone */
  --brand-dark: #01314B;       /* Darker variant for contrast headers */
  --brand-sand: #F2F0EC;        /* Light Sand - very light backgrounds */

  /* Utility (Optional) */
  --success: #00A676;          /* reuses Verdant Green */
  --warning: #FFB300;          /* reuses Warm Amber */
  --info: #3FA9F5;             /* reuses Sky Azure */

  --shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%; 
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Calibri,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
  color: #014D75;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-light);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding: clamp(32px, 8vw, 64px) 0;
}
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.btn {
  display: inline-block;
  padding: 20px;
  border-radius: 0px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  margin: 20px 0 20px 0
}
.btn:hover {
  background: var(--brand-2);
  color: #FFFFFF;
}
.btn.outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.btn.outline:hover {
  background-color: #FFB300;
  color: #fff;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  /*background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(8px);*/
  background: var(--brand-dark);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  letter-spacing: 0.2px;
  font-size: 175%;
  color: #FFFFFF;
}
/*.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
}*/
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.nav-links a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 120%;
  padding: 5px;
}
.nav-links a:hover {
  text-decoration: underline;
}

/* Mobile nav (CSS only using details/summary) */
.nav-mobile {
  display: none;
}
details.navdrop {
  display: none;
}
@media (max-width: 840px) {
  .nav-links {
    display: none;
  }
  details.navdrop {
    display: block;
  }
  summary.nav-toggle {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
  }
  .navdrop[open] summary {
    border-color: var(--brand);
  }
  .navdrop ul {
    margin: 10px 0 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .navdrop li {
    list-style: none;
  }
  .navdrop a {
    display: block;
    padding: 10px 8px;
    color: var(--muted);
  }
  .navdrop a:hover {
    color: var(--text);
  }
}

/* Hero */
.hero {
  padding: clamp(64px, 8vw, 120px) 0;
  background: radial-gradient(
      1200px 400px at 20% -10%,
      rgba(37, 99, 235, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1000px 360px at 110% 10%,
      rgba(6, 182, 212, 0.14),
      transparent 60%
    );
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 600px;
  width: 500px;
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand);
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.08),
    rgba(6, 182, 212, 0.08)
  );
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 16px 0;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}
.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-card {
  background: var(--brand-sand);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Trust bar */
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.trust-item p {
  font-size: 14px;
  color: #0172AD;
  font-weight: bold;
}
.trust-item span {
  font-size: 18px;
  font-weight: bold;
}

.trust-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-item img {
  filter: grayscale(1);
  opacity: 0.7;
  height: 74px;
  width: 220px;
}

/* Section titles */
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 10px;
}
.section p.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
}

/* Service Cards Section */
.grid.cards {                           /* use .grid.cards to beat any global `.grid` rules */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Prevent long content from blowing out columns */
.grid.cards > * { min-width: 0; }

/* Card frame */
.card {
  position: relative;
  background: var(--card, #F4F6F8);
  border: 1px solid var(--border, #D1D5DB);
  border-radius: var(--radius, 12px);
  padding: 24px;
  box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.05));
  min-height: 240px;
  overflow: hidden;
  transition: background-color 0.4s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Your original inner styles preserved */
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand, #014C75), var(--brand-2, #00A676));
  display: grid; place-items: center; color: #fff; font-weight: 800; margin-bottom: 12px;
}
.card h3 { margin: 6px 0 6px; }
.card p  { color: var(--muted, #4B5563); margin: 0; }

/* Content swap layers */
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  transition: opacity 0.4s ease;
}
.card-front { 
    opacity: 1; 
}
.card-back  { 
    opacity: 0; 
    font-weight: 800; 
    font-size: 2rem; 
    color: var(--brand-dark, #01314B); }

/* Hover state */
.card:hover {
  background-color: var(--brand-sand); /* use your defined Desert Sand variable */
  color: var(--brand-dark, #01314B);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card:hover .card-front { opacity: 0; }
.card:hover .card-back  { opacity: 1; }

/* Responsive columns (match your original behavior) */
@media (max-width: 960px) {
  .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid.cards { grid-template-columns: 1fr; }
}

/* About split */
.split {
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature svg {
  flex: 0 0 auto;
}
@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: bold;
  font-size: clamp(28px, 4vw, 60px);
}
.stat:hover {
  background-color: rgb(63 169 245 / 60%); /* 60% opacity */
  transition: background-color 0.3s ease; /* smooth fade */
  cursor: pointer; /* optional: gives a 'hoverable' feel */
  color: #FFFFFF; /* text color change on hover */
}

.stat span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 18px;
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* Portfolio */
.portfolio {
  grid-template-columns: repeat(3, 1fr);
}
.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}
.work img {
  aspect-ratio: 16/10;
  object-fit: cover;
}
.work .cap {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.85));
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  transform: translateY(60%);
  transition: 0.35s ease;
}
.work:hover .cap {
  transform: translateY(0%);
}
@media (max-width: 960px) {
  .portfolio {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .portfolio {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.pricing {
  grid-template-columns: repeat(3, 1fr);
}
.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.plan.pop {
  border-color: var(--brand);
}
.price {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}
.plan ul {
  margin: 14px 0 18px;
  padding-left: 18px;
}
@media (max-width: 960px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* Testimonials (static grid, no slider) */
.quotes {
  grid-template-columns: repeat(3, 1fr);
}
.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.quote b {
  display: block;
  margin-top: 10px;
}
@media (max-width: 960px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog {
  grid-template-columns: repeat(3, 1fr);
}
.post {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.post .body {
  padding: 16px;
}
.post h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 960px) {
  .blog {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .blog {
    grid-template-columns: 1fr;
  }
}

/* CTA band */
.cta-band {
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.05),
    rgba(6, 182, 212, 0.05)
  );
  border-block: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

/* Contact */
form {
  display: grid;
  gap: 12px;
}
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
label {
  font-weight: 600;
}
button[type="submit"] {
  font-size: 16px;
  font-weight: 700;
  padding: 36px;
  border: none;
}

/* Footer */
footer {
  background: #01314B;
  color: #cbd5e1;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
}
footer a {
  color: #cbd5e1;
}
footer a:hover {
  color: #fff;
}
.copyright {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility niceties */
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.6);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Blog styles */

 /* Blog post specific styles */
    .post-header {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
      padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 48px);
    }
    .post-content {
      max-width: 800px;
      margin: 0 auto;
      padding-bottom: clamp(32px, 6vw, 64px);
    }
    .post-content p {
      margin: 0 0 20px;
      line-height: 1.8;
      font-size: 18px;
    }
    .post-content h2 {
      margin: 40px 0 16px;
      font-size: clamp(24px, 3vw, 32px);
    }
    .post-content h3 {
      margin: 32px 0 12px;
      font-size: clamp(20px, 2.5vw, 24px);
    }
    .post-content ul, .post-content ol {
      margin: 0 0 20px;
      padding-left: 24px;
      line-height: 1.8;
    }
    .post-content li {
      margin-bottom: 8px;
      font-size: 18px;
    }
    .post-content img {
      margin: 32px 0;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .post-content blockquote {
      margin: 32px 0;
      padding: 20px 24px;
      border-left: 4px solid var(--brand);
      background: var(--card);
      border-radius: var(--radius-sm);
      font-style: italic;
      color: var(--muted);
    }
    .post-content code {
      background: var(--card);
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'Courier New', monospace;
      font-size: 16px;
    }
    .post-content pre {
      background: var(--card);
      padding: 20px;
      border-radius: var(--radius-sm);
      overflow-x: auto;
      margin: 24px 0;
    }
    .post-content pre code {
      padding: 0;
      background: none;
    }
    .post-meta-top {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: var(--muted);
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .post-meta-top span {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 24px;
      color: var(--brand);
      font-weight: 600;
    }
    .back-link:hover {
      color: var(--brand-light);
    }
    .author-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      margin: 48px 0;
      display: flex;
      gap: 20px;
      align-items: center;
    }
    .author-card img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      margin: 0;
      box-shadow: var(--shadow);
    }
    .author-info h3 {
      margin: 0 0 6px;
      font-size: 20px;
    }
    .author-info p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
    }
    .related-posts {
      background: var(--bg);
      border-top: 1px solid var(--border);
      padding: clamp(32px, 6vw, 64px) 0;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }
    .related-post {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      box-shadow: var(--shadow);
      transition: transform 0.2s ease;
    }
    .related-post:hover {
      transform: translateY(-4px);
    }
    .related-post h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }
    .related-post p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }