:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #10213a;
  --muted: #55657f;
  --primary: #0f3d7a;
  --accent: #f4a000;
  --border: rgba(16, 33, 58, 0.12);
  --shadow: 0 20px 60px rgba(15, 61, 122, 0.12);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#home,
#about,
#services,
#values {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 40px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav button:hover,
.site-nav button:focus-visible {
  color: var(--primary);
}

.nav-contact {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}


.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
}

.hero {
  padding: 72px 0 42px;
}

.hero-grid,
.two-column,
.contact-card {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.hero-copy h1,
.section h2,
.quote-block h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 10ch;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.lead,
.rich-text p,
.contact-card p,
.quote-block p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.button.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.hero-card,
.card,
.contact-card,
.quote-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.hero-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.hero-image.active {
  position: relative;
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 42px 0;
}

.section.alt {
  background: linear-gradient(180deg, transparent 0%, var(--surface-alt) 100%);
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  padding: 28px;
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.stack {
  display: grid;
  gap: 24px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 61, 122, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.quote-block {
  padding: 32px;
  text-align: center;
}

.quote-block h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 16ch;
  margin: 0 auto;
}

.contact-card {
  padding: 32px;
  grid-template-columns: 1.5fr auto;
  align-items: center;
}

.footer {
  padding: 24px 0 32px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .cards,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 76px;
    flex-direction: column;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-card {
    padding: 24px;
  }

  .card,
  .quote-block,
  .contact-card {
    padding: 24px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  animation: fadeIn 0.3s ease-in;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--surface);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: var(--surface-alt);
  color: var(--text);
}

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

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

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background-color: var(--surface-alt);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(15, 61, 122, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.success-message {
  padding: 24px;
  text-align: center;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

.success-content p {
  margin: 0;
  font-weight: 500;
}

/* Scrolling Categories in Hero */
.scrolling-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.scroll-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  width: 280px;
  overflow: hidden;
  margin: 0 auto;
}

.scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  flex: 1;
  scrollbar-width: none;
  width: 100%;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 100%;
  max-width: 280px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  scroll-snap-align: center;
  box-shadow: 0 4px 12px rgba(15, 61, 122, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: none;
  animation: fadeInUp 0.6s ease-out forwards;
}

.category-1 {
  animation-delay: 0s;
}

.category-2 {
  animation-delay: 0.1s;
}

.category-3 {
  animation-delay: 0.2s;
}

.category-4 {
  animation-delay: 0.3s;
}

.category-5 {
  animation-delay: 0.4s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(15, 61, 122, 0.15);
}

.icon-container {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 40px;
}

.category-1 .icon-container {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
}

.category-2 .icon-container {
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  color: white;
}

.category-3 .icon-container {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
}

.category-4 .icon-container {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
}

.category-5 .icon-container {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
}

.category-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0;
  line-height: 1.2;
}

.category-1 .category-title {
  color: #4a90e2;
}

.category-2 .category-title {
  color: #ffa500;
}

.category-3 .category-title {
  color: #4a90e2;
}

.category-4 .category-title {
  color: #9b59b6;
}

.category-5 .category-title {
  color: #27ae60;
}

.category-description {
  font-size: 0.85em;
  color: var(--muted);
  line-height: 1.4;
}

.progress-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.dot:hover {
  background: var(--muted);
}

@media (max-width: 600px) {
  .modal-content {
    padding: 24px;
    width: 95%;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .category-card {
    flex: 0 0 160px;
    padding: 16px 12px;
  }

  .icon-container {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .category-title {
    font-size: 0.95em;
  }

  .category-description {
    font-size: 0.8em;
  }

  .scroll-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
