:root {
  --ink: #131a2b;
  --ink-soft: #2f3a57;
  --surface: #f7f8fa;
  --surface-2: #e8ecf2;
  --brand: #0d3a77;
  --brand-soft: #1f539c;
  --accent: #e76625;
  --accent-soft: #ff8a45;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 16px 32px rgba(19, 26, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Barlow, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, #f5f7fb 0%, #f9f3ee 35%, #edf2fa 100%);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.page-leave {
  opacity: 0;
  transform: translateY(-5px);
}

h1,
h2,
h3,
h4 {
  font-family: Sora, Barlow, sans-serif;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1240px, 94vw);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-shape {
  position: fixed;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -2;
  opacity: 0.35;
}

.bg-shape-a {
  background: #8cc6ff;
  top: -20vmax;
  left: -14vmax;
}

.bg-shape-b {
  background: #ffba8f;
  right: -16vmax;
  bottom: -18vmax;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 58, 119, 0.1);
}

.utility-bar {
  background: linear-gradient(90deg, #0f2f5f, #17457f);
  color: #dbe9ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.utility-wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.utility-wrap p {
  margin: 0;
  white-space: nowrap;
  opacity: 0.95;
}

.utility-wrap p + p::before {
  content: "|";
  margin-right: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.utility-wrap a {
  margin-left: 0.5rem;
  text-decoration: none;
  color: #ffd4b6;
  font-weight: 700;
  white-space: nowrap;
}

.utility-wrap a:hover {
  color: #ffe3cd;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
}

.brand span {
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: grid;
}

.brand small {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 58, 119, 0.15);
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 10px 20px rgba(17, 35, 61, 0.1);
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  color: #25304b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(13, 58, 119, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 12px;
  height: 12px;
  fill: #24508e;
}

.main-nav a[href$=".pdf"] {
  border: 1px dashed rgba(13, 58, 119, 0.32);
  color: #20447a;
  font-size: 0.88rem;
}

.main-nav a:hover {
  background: rgba(13, 58, 119, 0.08);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(17, 35, 61, 0.12);
}

.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.filter-btn:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(231, 102, 37, 0.52);
  outline-offset: 2px;
}

.main-nav a.nav-active {
  background: rgba(13, 58, 119, 0.12);
  color: var(--brand);
}

.main-nav a.nav-active .nav-icon {
  background: rgba(13, 58, 119, 0.22);
}

.main-nav a.nav-active .nav-icon svg {
  fill: #0f3c78;
}

.main-nav a.nav-active::after {
  display: none;
}

.main-nav a.btn.nav-active {
  color: var(--white);
  box-shadow: 0 16px 28px rgba(231, 102, 37, 0.32);
}

.main-nav a.btn.nav-active::after {
  display: none;
}

.mobile-quick-actions {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(17, 35, 61, 0.24);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 58;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(13, 58, 119, 0.12);
  z-index: 75;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
}

.section-nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 58, 119, 0.16);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 12px 24px rgba(17, 35, 61, 0.16);
  backdrop-filter: blur(8px);
  z-index: 57;
}

.section-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #2f3a57;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  background: rgba(13, 58, 119, 0.12);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid #c6d3e6;
  background: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  margin-bottom: 6px;
  border-radius: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(231, 102, 37, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(231, 102, 37, 0.32);
}

.btn:disabled,
.btn.is-loading {
  cursor: wait;
  opacity: 0.88;
  transform: none;
  box-shadow: 0 8px 16px rgba(17, 35, 61, 0.18);
}

.btn-small {
  padding: 10px 18px;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(13, 58, 119, 0.3);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #d9e0ec;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("images/hero-carousel/16.jpeg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: background-image 0.8s ease-in-out;
}

.hero-overlay {
  background:
    linear-gradient(130deg, rgba(8, 20, 43, 0.9), rgba(15, 47, 89, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 42px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding-block: 6.2rem 4.8rem;
  color: var(--white);
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #ffcfae;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.1vw, 3.9rem);
  max-width: 13ch;
}

.hero-copy p {
  margin-top: 1.25rem;
  max-width: 58ch;
  color: #dbe8ff;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

.hero-metrics {
  margin: 2rem 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  border-radius: 14px;
  text-align: center;
}

.hero-metrics strong {
  display: block;
  font-family: Sora, sans-serif;
}

.hero-metrics span {
  font-size: 0.8rem;
  color: #d9e8ff;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.35rem;
  backdrop-filter: blur(8px);
}

.hero-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
  color: #e7f0ff;
}

.panel-link {
  display: inline-block;
  margin-top: 1rem;
  color: #ffbf96;
  font-weight: 700;
}

.section {
  padding-block: 5rem;
}

.section-soft {
  background: linear-gradient(180deg, #eef3fb, #f8fafc);
  border-top: 1px solid #dae3f1;
  border-bottom: 1px solid #dae3f1;
}

.section-dark {
  background: linear-gradient(160deg, #0d223f, #122c52 40%, #1b3f70 100%);
  color: var(--white);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head .eyebrow {
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid #d8e2f0;
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.8rem;
}

.card p {
  color: #344462;
}

.card p + p {
  margin-top: 1rem;
}

.card.accent {
  background: linear-gradient(150deg, #0f386b, #214f88);
  border-color: transparent;
  color: #edf5ff;
}

.check-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.6rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d8e2f0;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-card div {
  padding: 1rem 1.1rem 1.2rem;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.service-card p {
  color: #445474;
}

.process .timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.timeline li {
  background: var(--white);
  border: 1px solid #d8e2f0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.timeline span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  font-family: Sora, sans-serif;
  margin-bottom: 0.6rem;
}

.timeline h3 {
  font-size: 1rem;
}

.timeline p {
  color: #42526f;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #e9eff9;
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: transparent;
  color: var(--white);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.project-card.hide {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  position: absolute;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card div {
  padding: 0.9rem 1rem;
}

.project-card p {
  color: #495875;
}

.quote-form {
  background: var(--white);
  border: 1px solid #d8e2f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #31415f;
}

.quote-form input,
.quote-form textarea {
  border: 1px solid #c7d3e6;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(231, 102, 37, 0.32);
  border-color: var(--accent);
}

.full {
  grid-column: 1 / -1;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.form-feedback {
  color: var(--brand);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid #d8e2f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.contact-card ul {
  padding-left: 1rem;
  display: grid;
  gap: 0.55rem;
}

.map iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  background: #0b1729;
  color: #d4dff1;
  padding-top: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #ffbc8d;
}

.copyright {
  margin: 1.6rem 0 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

.reveal.delay-2 {
  transition-delay: 0.24s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .project-grid,
  .contact-grid,
  .footer-grid,
  .timeline,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    position: absolute;
    top: 88px;
    right: 4vw;
    width: min(360px, 92vw);
    background: #f5f8fd;
    border: 1px solid #d6e0ee;
    border-radius: 18px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 18px 30px rgba(17, 35, 61, 0.18);
  }

  .main-nav a {
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .main-nav.open.menu-animating a {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.open.menu-animating a:nth-child(1) { transition-delay: 0.03s; }
  .main-nav.open.menu-animating a:nth-child(2) { transition-delay: 0.06s; }
  .main-nav.open.menu-animating a:nth-child(3) { transition-delay: 0.09s; }
  .main-nav.open.menu-animating a:nth-child(4) { transition-delay: 0.12s; }
  .main-nav.open.menu-animating a:nth-child(5) { transition-delay: 0.15s; }
  .main-nav.open.menu-animating a:nth-child(6) { transition-delay: 0.18s; }
  .main-nav.open.menu-animating a:nth-child(7) { transition-delay: 0.21s; }

  .main-nav a[href$=".pdf"] {
    border-style: solid;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a.nav-active::after {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .utility-wrap {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    padding: 0.35rem 0;
  }

  .utility-wrap p + p::before {
    margin-right: 0.7rem;
  }

  .section-nav {
    right: 10px;
    top: auto;
    bottom: 94px;
    transform: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .back-to-top {
    right: 16px;
    bottom: 82px;
    width: 44px;
    height: 44px;
    font-size: 0.82rem;
  }

  .section-nav {
    left: 12px;
    right: 12px;
    bottom: 126px;
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.94);
  }

  .section-nav a {
    text-align: center;
    font-size: 0.76rem;
    padding: 0.45rem 0.62rem;
  }

  .hero-grid,
  .service-grid,
  .project-grid,
  .contact-grid,
  .footer-grid,
  .timeline,
  .about-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .utility-wrap {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .utility-wrap p:nth-of-type(3) {
    display: none;
  }

  .utility-wrap p + p::before {
    margin-right: 0.45rem;
  }

  .mobile-quick-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    z-index: 60;
  }

  .mobile-quick-actions a {
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.78rem 0.9rem;
    box-shadow: 0 10px 18px rgba(17, 35, 61, 0.2);
  }

  .mobile-quick-actions a:first-child {
    background: linear-gradient(120deg, #0e3a75, #1e4d8b);
    color: #ffffff;
  }

  .mobile-quick-actions a:last-child {
    background: linear-gradient(120deg, #1b9f5d, #26bf73);
    color: #ffffff;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 5.3rem 3.5rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Enhanced Form Validation Styles */
.field-error {
  color: #c73516;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
  animation: slideDown 0.2s ease-out;
}

.field-invalid {
  border-color: #c73516 !important;
  box-shadow: 0 0 0 2px rgba(199, 53, 22, 0.2) !important;
  background-color: rgba(199, 53, 22, 0.05) !important;
}

.field-valid {
  border-color: #0d7a0d !important;
  box-shadow: 0 0 0 2px rgba(13, 122, 13, 0.2) !important;
  background-color: rgba(13, 122, 13, 0.05) !important;
}

.error-message {
  background-color: rgba(199, 53, 22, 0.1);
  border: 1px solid #c73516;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-weight: 500;
}

.success-message {
  background-color: rgba(13, 122, 13, 0.1);
  border: 1px solid #0d7a0d;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-weight: 500;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form field focus improvements */
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 58, 119, 0.1);
  transition: all 0.2s ease;
}

/* Loading state for submit button */
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Testimonials Section Styles */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(19, 26, 43, 0.15);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content blockquote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-content blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-size: 3rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-2);
}

.testimonial-author strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
}

.testimonial-rating .star {
  color: #fbbf24;
  font-size: 1.2rem;
}

/* Responsive testimonials */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-content blockquote {
    font-size: 1rem;
  }
}

/* Cookie Consent Banner Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent[style*="block"] {
  transform: translateY(0);
}

.cookie-consent[style*="none"] {
  transform: translateY(100%);
}

.cookie-consent-content {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
  color: var(--white);
}

.cookie-consent p {
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  opacity: 0.9;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-buttons .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cookie-buttons .btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.cookie-buttons .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.cookie-buttons .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive cookie consent */
@media (max-width: 768px) {
  .cookie-consent-content {
    padding: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-buttons .btn {
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* PWA Install Button */
.install-pwa {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  margin-left: auto;
  animation: pulse 2s infinite;
}

.install-pwa:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 102, 37, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 102, 37, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 102, 37, 0);
  }
}

/* Network Status Indicator */
.network-status {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1001;
  transition: all 0.3s ease;
  pointer-events: none;
}

.network-status.online {
  background: rgba(13, 122, 13, 0.9);
  color: var(--white);
  border: 1px solid rgba(13, 122, 13, 0.3);
}

.network-status.offline {
  background: rgba(199, 53, 22, 0.9);
  color: var(--white);
  border: 1px solid rgba(199, 53, 22, 0.3);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.7;
  }
}

/* PWA Display Optimizations */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .site-header {
    padding-top: calc(env(safe-area-inset-top) + 1rem);
  }
  
  .mobile-quick-actions {
    bottom: calc(env(safe-area-inset-bottom) + 10px);
  }
}

/* iOS Safari PWA fixes */
@supports (-webkit-touch-callout: none) {
  .install-pwa {
    display: none !important;
  }
}

/* Enhanced focus states for better accessibility */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .install-pwa {
    animation: none;
  }
  
  .network-status.offline {
    animation: none;
  }
}

/* Search Functionality Styles */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover {
  background: var(--surface);
  color: var(--brand);
}

.search-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.search-container-inner {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-input-wrapper {
  position: relative;
  border-bottom: 1px solid var(--surface-2);
  padding: 1.5rem;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  padding-right: 3rem;
}

.search-input-wrapper input::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.search-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
}

.search-results-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--surface-2);
  margin-bottom: 1rem;
}

.search-results-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-result-item {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--surface-2);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: var(--surface);
  border-color: var(--brand-soft);
  transform: translateY(-1px);
}

.search-result-item[data-category="service"] {
  border-left: 3px solid var(--accent);
}

.search-result-item[data-category="project"] {
  border-left: 3px solid var(--brand);
}

.search-result-item[data-category="page"] {
  border-left: 3px solid var(--ink-soft);
}

.search-result-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.search-result-content h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-content h3 a:hover {
  color: var(--brand);
}

.search-result-content p {
  margin: 0 0 0.75rem 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}

.search-result-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
}

.search-no-results p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.search-no-results p:last-child {
  margin-bottom: 0;
}

mark {
  background: var(--accent);
  color: var(--white);
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
  font-weight: 600;
}

/* Responsive search */
@media (max-width: 768px) {
  .search-overlay {
    padding: 1rem;
  }
  
  .search-container-inner {
    max-height: 90vh;
  }
  
  .search-input-wrapper {
    padding: 1rem;
  }
  
  .search-input-wrapper input {
    font-size: 1rem;
  }
  
  .search-results {
    padding: 0 1rem 1rem;
    max-height: 300px;
  }
  
  .search-result-item {
    padding: 0.75rem;
  }
  
  .search-result-content h3 {
    font-size: 1rem;
  }
  
  .search-result-content p {
    font-size: 0.9rem;
  }
}

/* Resources Page Styles */
.resource-categories {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  background: var(--surface);
  border: 2px solid transparent;
  color: var(--ink-soft);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.category-btn:hover {
  background: var(--surface-2);
  border-color: var(--brand-soft);
  color: var(--ink);
}

.category-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-category.technical {
  background: rgba(13, 58, 119, 0.1);
  color: var(--brand);
}

.article-category.guides {
  background: rgba(231, 102, 37, 0.1);
  color: var(--accent);
}

.article-category.industry {
  background: rgba(47, 58, 87, 0.1);
  color: var(--ink-soft);
}

.article-category.compliance {
  background: rgba(13, 122, 13, 0.1);
  color: #0d7a0d;
}

.featured-article h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.featured-article p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.article-author {
  font-weight: 600;
  color: var(--ink);
}

.featured-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(19, 26, 43, 0.15);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-card .article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.5rem 0 1rem 0;
  color: var(--ink);
}

.article-card p {
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.article-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.article-link:hover {
  color: var(--brand-soft);
}

.newsletter-section {
  margin: 4rem 0;
  padding: 3rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.newsletter-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.newsletter-form input::placeholder {
  color: var(--ink-soft);
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Responsive resources page */
@media (max-width: 768px) {
  .resource-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .category-btn {
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .featured-article {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .featured-article h2 {
    font-size: 1.5rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .article-card img {
    height: 180px;
  }
  
  .newsletter-section {
    padding: 2rem 1.5rem;
    margin: 3rem 0;
  }
  
  .newsletter-content h2 {
    font-size: 1.6rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

/* Quote Calculator Styles */
.calculator-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-calculator {
  padding: 2rem;
}

.calculator-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--surface-2);
}

.calculator-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.calculator-section h3 {
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-option {
  cursor: pointer;
  display: block;
  border: 2px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.service-option:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 26, 43, 0.1);
}

.service-option.selected {
  border-color: var(--brand);
  background: rgba(13, 58, 119, 0.05);
}

.service-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--ink);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-option-content h4::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface-2);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.service-option.selected .service-option-content h4::before {
  background: var(--brand);
  border-color: var(--brand);
}

.service-option.selected .service-option-content h4::after {
  content: '✓';
  color: var(--white);
  font-weight: bold;
  position: absolute;
  margin-left: -14px;
}

.service-option-content p {
  margin: 0 0 0.75rem 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.base-price {
  display: inline-block;
  background: var(--surface);
  color: var(--brand);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--surface-2);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 58, 119, 0.1);
}

.quote-results {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-radius: var(--radius);
  padding: 2rem;
}

.quote-breakdown {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.quote-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--surface-2);
  font-size: 1rem;
}

.quote-item:last-child {
  border-bottom: none;
}

.quote-divider {
  height: 1px;
  background: var(--surface-2);
  margin: 1rem 0;
}

.quote-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  padding-top: 0.5rem;
  border-top: 2px solid var(--brand);
  margin-top: 1rem;
}

.quote-disclaimer {
  background: rgba(231, 102, 37, 0.1);
  border: 1px solid rgba(231, 102, 37, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.quote-disclaimer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.quote-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive quote calculator */
@media (max-width: 768px) {
  .quote-calculator {
    padding: 1.5rem;
  }
  
  .service-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-option {
    padding: 1rem;
  }
  
  .project-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .quote-results {
    padding: 1.5rem;
  }
  
  .quote-breakdown {
    padding: 1rem;
  }
  
  .quote-item {
    font-size: 0.95rem;
  }
  
  .quote-total {
    font-size: 1.1rem;
  }
  
  .quote-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .back-to-top,
  .section-nav a,
  .main-nav a,
  .btn,
  .project-card,
  .reveal {
    transition: none;
  }
}
