:root {
  --bg-deep: #0f1724;
  --bg-deeper: #111b2b;
  --bg-surface: rgba(17, 27, 43, 0.82);
  --bg-card: rgba(20, 34, 52, 0.9);
  --text-primary: #f4f7fb;
  --text-muted: #b6c4d7;
  --text-soft: #94a7bf;
  --accent: #6bb7b0;
  --accent-dark: #4f8e88;
  --border: rgba(107, 183, 176, 0.28);
  --shadow: 0 20px 60px rgba(4, 11, 22, 0.45);
  --radius: 18px;
  --container: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
}

.wave-static-bg,
#wave-canvas,
.wave-overlay {
  position: fixed;
  inset: 0;
}

.wave-static-bg {
  background: radial-gradient(circle at top, rgba(107, 183, 176, 0.18), transparent 55%),
    linear-gradient(160deg, #0d141f 0%, #111b2b 50%, #0d141f 100%);
  z-index: 0;
}

#wave-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wave-overlay {
  background: radial-gradient(circle at top right, rgba(12, 20, 32, 0.6), rgba(10, 14, 23, 0.85) 45%, rgba(6, 8, 14, 0.92) 100%);
  z-index: 2;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 3;
}

.site-header {
  position: sticky;
  top: 0;
  height: auto;
  max-height: max-content;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Dark navy base = rgba(9, 15, 26, 0.88), muted lighter steel blue = rgba(32, 48, 68, 0.92) */
  background: linear-gradient(to right,
      rgba(112, 140, 168, 0.95) 0%,
      rgba(112, 140, 168, 0.95) calc(38% - 12px),
      rgba(9, 15, 26, 0.88) calc(38% + 12px),
      rgba(9, 15, 26, 0.88) 100%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  gap: 3rem;
}



.brand img {
  height: 150px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  margin-top: -1.25rem;
  margin-bottom: -1.25rem;
  transform: translate(-34px, 3px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-primary);
}

.site-nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-item.has-dropdown {
  position: relative;
  padding: 1rem 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(9, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-primary);
  font-weight: 400;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.button-cta {
  background: var(--accent);
  color: #071316;
  box-shadow: var(--shadow);
}

.button-cta:hover {
  background: var(--accent-dark);
  color: #eef8f7;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 2.75rem 0;
  overflow: hidden;
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-heading h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-heading p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero {
  padding-top: 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.15;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-copy .owner {
  margin-top: 1.5rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.hero-actions .button {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

.hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.hero-card p,
.hero-card li {
  color: var(--text-muted);
}

.hero-card ul {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
}

.trust {
  padding-top: 0;
}

.trust-heading {
  margin-left: auto;
  text-align: right;
  margin-bottom: 2.5rem;
}

.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-item {
  background: var(--bg-card);
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 96px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 6rem;
    align-items: end;
  }
}

.about-header {
  display: flex;
  flex-direction: column;
}

.about-header .eyebrow {
  margin-bottom: 1rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.about-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem); /* ~56px on desktop */
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}

.about-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.about-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Minimal divider line */
}

.about-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.about-trust-list .trust-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.8;
}

.about-copy {
  max-width: 700px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); /* ~18-19px */
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 100%;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Contact Premium Redesign */
.contact {
  position: relative;
}

.relative {
  position: relative;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  background: radial-gradient(circle, rgba(107, 183, 176, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-premium-card {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .contact-premium-card {
    grid-template-columns: 1fr 1fr;
  }
  .contact-trust {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-premium-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    gap: 2.5rem;
  }
  .contact-response-panel {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
  }
  .contact-cta-stack {
    align-items: center;
  }
  .button-block {
    width: 100%;
    max-width: 320px;
  }
  .response-indicator {
    justify-content: center;
  }
}

.contact-col {
  display: flex;
  flex-direction: column;
}

.contact-response-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 3rem;
  justify-content: center;
}

.contact-trust {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 3rem;
  justify-content: center;
}

/* Primary Contact Col */
.contact-header .eyebrow {
  margin-top: 0;
}

.contact-header h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.contact-support-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.contact-method-block:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(107, 183, 176, 0.3);
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(107, 183, 176, 0.1);
  color: var(--accent);
  border-radius: 10px;
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-details .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.method-details .value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Quick Response Panel */
.response-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(107, 183, 176, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 183, 176, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(107, 183, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 183, 176, 0); }
}

.response-indicator p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.button-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* Trust Reinforcement */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.trust-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.content-surface {
  background: rgba(10, 16, 26, 0.72);
  border-radius: 28px;
  padding: 3.5rem 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 15, 26, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: rgba(9, 15, 26, 0.9);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 25;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(17, 27, 43, 0.95);
}


.services-grid {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* ensure they can fit 3 per row on wide screens */
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr); /* strictly 3 columns when room allows */
  }
}

.service-card-new {
  position: relative;
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 50px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.service-card-new:hover,
.service-card-new:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(107, 183, 176, 0.3);
}

.service-card-new:focus-visible {
  box-shadow: 0 0 0 2px rgba(96, 200, 180, 0.5);
}

.service-image-container {
  width: 45%;
  position: relative;
  flex-shrink: 0;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.1);
}

.service-image-fade {
  position: absolute;
  inset: 0;
  /* Fade from transparent (left) to the card background color (right) */
  background: linear-gradient(to right, rgba(20, 34, 52, 0) 0%, var(--bg-card) 95%);
}

.service-content {
  padding: 0.6rem 0.8rem 0.6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.service-content h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.service-content p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Atmospheric Panels */
.global-right-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28vw;
  background: linear-gradient(to left, rgba(5, 10, 20, 0.95), rgba(5, 10, 20, 0));
  pointer-events: none;
  z-index: 0;
}

.trust {
  position: relative;
}

.trust-panel {
  position: absolute;
  top: -20%;
  right: 0;
  width: 60%;
  height: 160%;
  background: linear-gradient(to left, rgba(5, 10, 20, 0.9), rgba(5, 10, 20, 0));
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

.trust-grid, .trust-heading {
  position: relative;
  z-index: 1;
}

.services {
  position: relative;
}

.services-panel {
  position: absolute;
  top: -15%;
  right: 0;
  width: 60vw;
  height: 60%;
  background: linear-gradient(210deg, rgba(5, 10, 20, 0.85) 0%, rgba(5, 10, 20, 0) 65%);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}

.services-grid, .services .section-heading {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .site-header::before {
    background: linear-gradient(to right,
        rgba(112, 140, 168, 0.95) 0%,
        rgba(112, 140, 168, 0.95) calc(38% - 12px),
        rgba(9, 15, 26, 0.88) calc(38% + 12px),
        rgba(9, 15, 26, 0.88) 100%);
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .content-surface {
    padding: 2.5rem 0;
  }
}

.reduce-motion #wave-canvas {
  display: none;
}