/* style.css
   Version 3.0.3 – 2025-10-31
   - Mobile-first, no Bootstrap
   - Fixed responsive breakpoints
   - Equal-height service cards
   - Footer color fix
*/

/* ------------------------------
   0) Reset & Base
--------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}
html {
  overflow-x: hidden;
}
body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--brand-slate);
  background-color: var(--brand-sand);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
:root {
  overflow-wrap: anywhere;
}

/* ------------------------------
   1) Fonts
--------------------------------*/
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/roboto-v47-latin-300.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-v47-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/roboto-v47-latin-italic.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/roboto-v47-latin-700.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/roboto-v47-latin-700italic.woff2") format("woff2");
}

/* ------------------------------
   2) Theme Tokens
--------------------------------*/
:root {
  --brand-navy: #1a237e;
  --brand-slate: #1f2933;
  --brand-sand: #f5f3e4;
  --brand-midnight: #0c133f;
  --brand-accent: #00bcd4;
  --text-muted: #5b6573;
  --card-shadow: 0 16px 45px -25px rgba(15, 23, 42, 0.6);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 2.5rem;
  --space-7: 3.5rem;

  --radius-lg: 1.25rem;
}

/* ------------------------------
   3) Typography & Links
--------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 1.25rem;
}
p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
}

a {
  color: var(--brand-navy);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--brand-midnight);
}

/* Footer link color override (incl. iOS tel autolinks) */
footer a,
footer a:visited {
  color: #ffffff;
  text-decoration: underline;
}
footer a[href^="tel"] {
  color: #ffffff !important;
  text-decoration: none;
}

/* ------------------------------
   4) Layout Primitives
--------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: 5.5rem;
}
.section-light {
  background-color: #fff;
}
.section-header {
  margin-bottom: 2.25rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--brand-midnight);
  margin-bottom: 0.85rem;
}
.section-header h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  color: var(--brand-midnight);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
}

/* Grid system */
.grid-12 {
  --gap: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.g-3 {
  --gap: 1.5rem;
}
.g-4 {
  --gap: 2rem;
}
.g-5 {
  --gap: 3rem;
}
/* Default all grid items to full width at md unless overridden */
@media (min-width: 768px) {
  .grid-12 > * {
    grid-column: span 12;
  }
}

@media (min-width: 768px) {
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .md-span-4 {
    grid-column: span 4;
  }
  .md-span-5 {
    grid-column: span 5;
  }
  .md-span-6 {
    grid-column: span 6;
  }
  .md-span-12 {
    grid-column: span 12;
  }
}
@media (min-width: 1024px) {
  .lg-span-5 {
    grid-column: span 5;
  }
  .lg-span-6 {
    grid-column: span 6;
  }
  .lg-span-7 {
    grid-column: span 7;
  }
}

/* Helpers */
.align-center {
  align-items: center;
}
.d-flex {
  display: flex;
}
.ms-auto {
  margin-left: auto;
}
.text-center {
  text-align: center;
}
.text-white {
  color: #fff;
  font-weight: 700;
}
.bg-dark {
  background-color: var(--brand-midnight);
}
.py-3 {
  padding-block: 1rem;
}

/* Visibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------
   5) Navbar
--------------------------------*/
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 12px 30px -18px rgba(10, 18, 64, 0.15);
}
.navbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.65rem;
}
.brand-banner {
  height: 60px;
  width: auto;
  max-width: 100%;
}
@media (min-width: 600px) {
  .brand-banner {
    height: 68px;
  }
}
@media (min-width: 1024px) {
  .brand-banner {
    height: 80px;
  }
}

.nav-toggle {
  border: 1px solid rgba(26, 35, 126, 0.25);
  padding: 0.35rem 0.5rem;
  color: var(--brand-navy);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  width: 44px;
  height: 44px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
  border-color: rgba(26, 35, 126, 0.6);
  background: rgba(0, 188, 212, 0.08);
  outline: none;
}
.toggle-icon,
.toggle-icon::before,
.toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 999px;
  position: relative;
  content: "";
}
.toggle-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}
.toggle-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-collapse {
  display: none;
  flex-direction: column;
  width: 100%;
}
.nav-collapse.is-open {
  display: flex;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-navy);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--brand-midnight);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .nav-collapse {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    width: auto;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ------------------------------
   6) Hero
--------------------------------*/
.hero {
  padding-top: 7.5rem;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.1), rgba(0, 188, 212, 0.08));
}
.hero-badge {
  display: inline-block;
  background-color: rgba(26, 35, 126, 0.1);
  color: var(--brand-navy);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.1rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.05rem;
  color: var(--brand-slate);
}
.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}
.hero-highlights i {
  color: var(--brand-accent);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-banner-wrapper {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}
.hero-banner {
  display: block;
  margin-inline: auto;
}

/* Responsive hero tweaks */
@media (max-width: 430px) {
  .section {
    padding-block: 3.5rem;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 7vw + 1rem, 2.35rem);
  }
  .hero p {
    font-size: 0.94rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 431px) and (max-width: 600px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 0.85rem;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 1023.98px) {
  .hero {
    text-align: center;
  }
  .hero-highlights li {
    justify-content: center;
    text-align: left;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-banner-wrapper {
    margin-top: 1rem;
  }
}

/* ------------------------------
   7) Cards & UI
--------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25);
}
.btn-primary {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-midnight);
  border-color: var(--brand-midnight);
}
.btn-outline-primary {
  color: var(--brand-navy);
  border-color: var(--brand-navy);
  background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand-navy);
  color: #fff;
}

.service-card,
.skill-tile,
.credential-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.7);
}

.service-card .service-icon,
.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: rgba(26, 35, 126, 0.1);
  color: var(--brand-navy);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.skill-icon {
  background: rgba(0, 188, 212, 0.12);
  color: var(--brand-accent);
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
}
.skill-tile ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.skill-tile h3,
.service-card h3,
.credential-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.credential-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
.credential-issuer {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-midnight);
}
.credential-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.experience-title {
  display: block;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--brand-slate);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(31, 41, 51, 0.18);
  border-radius: 0.9rem;
  background-color: #fff;
  color: var(--brand-slate);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
  outline: none;
}
.form-control:disabled {
  background-color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-muted);
}
.contact-list i {
  width: 1.5rem;
  text-align: center;
  color: var(--brand-accent);
}

/* ------------------------------
   8) Equal-height Services cards
--------------------------------*/
#services .grid-12 {
  align-items: stretch;
} /* make items equal-height within the row */

#services .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#services .service-card ul {
  flex-grow: 1; /* let the list fill vertical space so buttons/ends align */
}

#services .service-card h3 {
  min-height: 2.5rem; /* optional: keeps headings roughly the same height */
}

/* ------------------------------
   9) Cookie Banner
--------------------------------*/
.cookie-banner {
  position: fixed;
  z-index: 1100;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 2rem));
  background-color: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.cookie-banner__body {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.cookie-banner__body a {
  color: var(--brand-accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.cookie-banner__button {
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cookie-banner__button--primary {
  background-color: var(--brand-accent);
  color: #04323a;
}
.cookie-banner__button--primary:hover,
.cookie-banner__button--primary:focus {
  background-color: #04a2b8;
  outline: none;
}
.cookie-banner__button--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-banner__button--ghost:hover,
.cookie-banner__button--ghost:focus {
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

@media (max-width: 430px) {
  .cookie-banner {
    bottom: 1rem;
    padding: 1.25rem;
    width: calc(100% - 1.5rem);
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-banner__button {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ------------------------------
   10) Footer
--------------------------------*/
footer {
  margin-top: 0;
  color: #fff;
}
footer p {
  color: #fff;
  margin-bottom: 0.4rem;
}
