@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=optional');

:root {
  --bwg-header-h: 71px;
  /* Design Tokens */
  --primary-color: #4f46e5;
  --primary-rgb: 79, 70, 229;
  --secondary-color: #0b7a70;
  --secondary-rgb: 11, 122, 112;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-border: #e2e8f0;
  --text-color: #475569;
  --heading-color: #0f172a;
  --contrast-color: #ffffff;
  
  --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  
  --font-default: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  
  scroll-behavior: smooth;
}

/* Base resets */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-default);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header .logo h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .btn-getstarted {
  background: var(--primary-color);
  color: var(--contrast-color);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.header .btn-getstarted:hover {
  background: var(--secondary-color);
  color: var(--contrast-color);
}

/* Nav Menu */
.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 28px;
}

.navmenu a {
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 150px 0 90px 0;
  position: relative;
}

.hero .subtitle {
  font-size: 13px;
  font-weight: 700;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

.hero .description {
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.btn-accent {
  background: var(--primary-color);
  color: var(--contrast-color);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: var(--secondary-color);
  color: var(--contrast-color);
}

.btn-text {
  color: var(--heading-color);
  font-weight: 600;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-text:hover {
  color: var(--primary-color);
}

/* Sections */
section {
  padding: 90px 0;
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Round Cards */
.card-round {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
}

.card-round:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(79, 70, 229, 0.2);
}

/* About Section */
.about .check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about .check-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.about .check-list li i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.about .check-list li h3 {
  font-size: 1.15rem;
  margin: 0 0 4px 0;
}

/* Services */
.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* Portfolio */
.isotope-filters {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.isotope-filters li {
  padding: 6px 18px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.isotope-filters li.filter-active,
.isotope-filters li:hover {
  background: var(--primary-color);
  color: var(--contrast-color);
  border-color: transparent;
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card .work-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.work-card img,
.work-card svg {
  transition: transform 0.4s ease;
  width: 100%;
}

.work-card:hover img,
.work-card:hover svg {
  transform: scale(1.04);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay i {
  color: var(--contrast-color);
  font-size: 1.75rem;
}

.work-info {
  padding-top: 15px;
}

.work-meta {
  font-size: 12px;
  /* darker shade of --secondary-color teal; >= 4.5:1 on white cards */
  color: #0f766e;
  font-weight: 600;
}

.work-info h3 {
  font-size: 1.35rem;
  margin-top: 4px;
}

/* Metrics */
.metric-card {
  text-align: center;
  padding: 40px 20px;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
  padding: 35px;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.testimonial-user svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.testimonial-user h3 {
  font-size: 1rem;
  margin: 0;
}

.testimonial-user span {
  font-size: 12px;
  color: var(--text-color);
}

/* Contact */
.contact-info-block {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-block i {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.08);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--heading-color);
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.1);
  outline: none;
}

.contact-form button {
  background: var(--primary-color);
  color: var(--contrast-color);
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--secondary-color);
}

/* Accessibility: keep animated (AOS) content fully opaque so text contrast
   never drops below WCAG thresholds while elements fade in (or stay hidden
   when scroll events never fire). Movement transforms are preserved. */
[data-aos] {
  opacity: 1 !important;
}

/* Accessibility: ensure footer social icon links meet the WCAG 2.2 AA
   24x24px minimum touch-target size */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
}

/* Global Footer overrides for Clarity */
.spec-site-global-footer {
  background: #ffffff !important;
  border-top: 1px solid var(--surface-border) !important;
  color: #475569 !important;
}
.spec-site-global-footer p {
  color: #475569 !important;
}
.spec-site-global-footer a {
  color: var(--primary-color) !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--heading-color);
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navmenu {
    display: none;
  }
  body.mobile-nav-active .navmenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  body.mobile-nav-active .navmenu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}