/*
  Vertrax LLC — Digital Solutions
  tooplate-style.css (full redesign 2025)

  BRAND COLORS
  Primary Dark:    #042C53
  Primary:         #185FA5
  Primary Light:   #378ADD
  Accent (Teal):   #1D9E75
  Accent Light:    #5DCAA5
  Surface:         #F7F8FA
  Dark:            #2C2C2A
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Open Sans", sans-serif;
  font-size: 16px;
  color: #3a3a3a;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  transition: color 0.25s ease;
}

ul { list-style: none; }

p { line-height: 1.8; }

/* ─── SCROLL REVEAL ──────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LAYOUT UTILITIES ───────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1D9E75;
  margin-bottom: 14px;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: #042C53;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: #1D9E75;
  margin-top: 16px;
}

.section-header .section-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  font-size: 1rem;
  color: #667;
  max-width: 520px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-sub {
  margin: 0 auto;
}

.mt-32 { margin-top: 32px; }

/* ─── BUTTONS ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #042C53;
  color: #ffffff;
  border-color: #042C53;
}

.btn-primary:hover {
  background: #185FA5;
  border-color: #185FA5;
  color: #ffffff;
}

.btn-accent {
  background: #1D9E75;
  color: #ffffff;
  border-color: #1D9E75;
}

.btn-accent:hover {
  background: #178a63;
  border-color: #178a63;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── NAVBAR ─────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #042C53;
  padding: 0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(4, 44, 83, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-nav {
  display: flex;
  gap: 36px;
}

.navbar-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar-nav a:hover {
  color: #5DCAA5;
}

.navbar-cta {
  padding: 10px 24px;
  font-size: 0.82rem;
}

/* ─── HERO ───────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #042C53;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(24,95,165,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(29,158,117,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #5DCAA5;
  margin-bottom: 20px;
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-heading span {
  color: #5DCAA5;
}

.cursor {
  display: inline-block;
  color: #5DCAA5;
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ─── STATS BAR ──────────────────────────────── */

.stats-bar {
  background: #F7F8FA;
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid #e0e3e8;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: #042C53;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-plus {
  font-size: 1.8rem;
  color: #1D9E75;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

/* ─── SERVICES ───────────────────────────────── */

.services {
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  padding: 40px 36px;
  border-radius: 6px;
  border: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}

/* Card colour variants — light tints */
.service-card--navy      { background: rgba(4,  44,  83,  0.07); border-top: 3px solid #042C53; }
.service-card--teal      { background: rgba(29, 158, 117, 0.08); border-top: 3px solid #1D9E75; }
.service-card--blue      { background: rgba(24, 95,  165, 0.08); border-top: 3px solid #185FA5; }
.service-card--dark-teal { background: rgba(8,  80,  65,  0.08); border-top: 3px solid #085041; }

.service-card--navy:hover      { background: rgba(4,  44,  83,  0.15); }
.service-card--teal:hover      { background: rgba(29, 158, 117, 0.17); }
.service-card--blue:hover      { background: rgba(24, 95,  165, 0.15); }
.service-card--dark-teal:hover { background: rgba(8,  80,  65,  0.15); }

/* Icon wrap — coloured per card */
.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.service-card--navy      .service-icon-wrap { background: rgba(4,  44,  83,  0.12); }
.service-card--teal      .service-icon-wrap { background: rgba(29, 158, 117, 0.15); }
.service-card--blue      .service-icon-wrap { background: rgba(24, 95,  165, 0.12); }
.service-card--dark-teal .service-icon-wrap { background: rgba(8,  80,  65,  0.12); }

.service-card:hover .service-icon-wrap { background: rgba(0,0,0,0.08); }

.service-card--navy      .service-icon-wrap i { color: #042C53; }
.service-card--teal      .service-icon-wrap i { color: #1D9E75; }
.service-card--blue      .service-icon-wrap i { color: #185FA5; }
.service-card--dark-teal .service-icon-wrap i { color: #085041; }

.service-icon-wrap i {
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #042C53;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

/* ─── ABOUT ──────────────────────────────────── */

.about {
  background: #042C53;
}

.about .section-heading {
  color: #ffffff;
}

.about .section-heading::after {
  background: #5DCAA5;
}

.about p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.about p + p {
  margin-top: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 6px;
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid #1D9E75;
  border-radius: 6px;
  z-index: -1;
}

.about .btn-primary {
  background: #1D9E75;
  border-color: #1D9E75;
  color: #ffffff;
}

.about .btn-primary:hover {
  background: #178a63;
  border-color: #178a63;
}

/* ─── PORTFOLIO STRIP ────────────────────────── */

.portfolio-strip {
  overflow: hidden;
}

.portfolio-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-img {
  overflow: hidden;
  height: 320px;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-img:hover img {
  transform: scale(1.05);
}

/* ─── CONTACT ────────────────────────────────── */

.contact {
  background: #F7F8FA;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-details i {
  font-size: 1rem;
  color: #1D9E75;
  margin-top: 3px;
  width: 18px;
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #042C53;
  margin-bottom: 4px;
}

.contact-details span {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.contact-details a {
  color: #1D9E75;
}

.contact-details a:hover {
  color: #042C53;
}

/* ─── CONTACT FORM ───────────────────────────── */

.contact-form-wrap {
  background: #ffffff;
  border-radius: 8px;
  padding: 48px 44px;
  box-shadow: 0 4px 32px rgba(4,44,83,0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #042C53;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: "Inter", "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: #3a3a3a;
  background: #F7F8FA;
  border: 1.5px solid #e0e3e8;
  border-radius: 4px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1D9E75;
  background: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn-primary {
  margin-top: 4px;
  padding: 15px;
  font-size: 0.9rem;
}

.contact-form .btn-primary:disabled {
  background: #1D9E75;
  border-color: #1D9E75;
  opacity: 0.85;
  cursor: default;
}

/* ─── FOOTER ─────────────────────────────────── */

.footer {
  background: #042C53;
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.footer-nav a:hover {
  color: #5DCAA5;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: #1D9E75;
  border-color: #1D9E75;
  color: #ffffff;
}

.footer-bottom {
  padding: 20px 40px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ─── RESPONSIVE ──────────────────────────────── */

@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #e0e3e8;
    padding-bottom: 32px;
  }

  .stat-item:nth-child(3),
  .stat-item:last-child {
    border-bottom: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: 2;
  }

  .about-text {
    order: 1;
  }

  .about-image img {
    height: 320px;
  }

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

  .portfolio-images {
    grid-template-columns: 1fr;
  }

  .portfolio-img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .navbar-inner {
    height: 64px;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .contact-form-wrap {
    padding: 32px 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-bottom {
    padding: 20px 32px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-item {
    border: none;
    padding: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
