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

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #434343;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: #000;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

a {
  color: #5200a4;
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover { opacity: 0.8; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary { color: #5200a4; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #5200a4;
  color: #fff;
  padding: 8px 16px;
}

.skip-link:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.4s ease-in-out;
}

.btn-primary {
  background: #5200a4;
  color: #ffffff;
}

.btn-primary:hover {
  background: #3d007d;
  color: #ffffff;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #5200a4;
  border: 2px solid #5200a4;
}

.btn-outline:hover {
  background: #5200a4;
  color: #ffffff;
  opacity: 1;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e7e7e7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.site-logo { flex-shrink: 0; }

.site-logo img {
  width: 60px;
  height: 60px;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.primary-nav a {
  color: #434343;
  font-weight: 500;
  font-size: 1rem;
}

.primary-nav a:hover { color: #5200a4; }

/* Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #434343;
  border-radius: 2px;
  transition: 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text { flex: 0 0 58%; }

.hero-text h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-image { flex: 0 0 38%; }

.hero-image img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

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

/* Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f3f6fb;
}

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

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5200a4;
}

.section-header h2 {
  margin: 8px 0 12px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #434343;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: #000;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-link {
  font-weight: 600;
  color: #5200a4;
  align-self: flex-start;
}

/* Form */
.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label,
.form-group legend {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

fieldset.form-group {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 0.95rem;
  margin-bottom: 6px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.required { color: #e80000; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  color: #434343;
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 10px 14px;
  width: 100%;
  background: #f7f7f7;
  transition: 0.4s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 1px solid #313131;
  border-color: #919191;
  color: #686868;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e80000;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23434343' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

.form-notice {
  padding: 12px 16px;
  border-radius: 5px;
  margin-bottom: 16px;
  display: none;
  font-size: 0.95rem;
}

.form-notice.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-notice.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* About */
.about-bio {
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.client-logos img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s ease;
}

.client-logos img:hover { opacity: 1; }

.map-container {
  height: 400px;
  border-radius: 10px;
  margin-bottom: 32px;
  overflow: hidden;
}

.about-linkedin {
  text-align: center;
  font-size: 1rem;
}

.about-linkedin a {
  font-weight: 600;
}

/* Footer */
#site-footer {
  background: #2f2f2f;
  color: #ffffff;
  padding: 48px 0 24px;
}

#site-footer a {
  color: #ffffff;
}

#site-footer a:hover {
  color: #cccccc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cccccc;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: 0.3s ease;
}

.social-links a:hover {
  background: #5200a4;
  transform: scale(1.1);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.13);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 6px;
  color: #cccccc;
}

.footer-bottom a { color: #ffffff; }

.footer-bottom .credit-link { color: green; }

.eryx-logo {
  display: inline-block;
  height: 30px;
  width: auto;
  vertical-align: middle;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    gap: 40px;
  }

  .hero-text, .hero-image { flex: 0 0 100%; }

  .hero-text h1 { font-size: 2rem; }

  .hero-image { max-width: 400px; margin: 0 auto; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .primary-nav.open { right: 0; }

  .primary-nav ul {
    flex-direction: column;
    gap: 24px;
  }

  .primary-nav a {
    font-size: 1.25rem;
  }

  .hero-section { padding: 48px 0; }

  .hero-text h1 { font-size: 1.75rem; }

  .section { padding: 48px 0; }

  .section-header { margin-bottom: 32px; }

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

  .client-logos { gap: 24px; }

  .client-logos img {
    max-height: 50px;
  }

  .map-container { height: 300px; }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .hero-text h1 { font-size: 1.5rem; }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: modal-in 0.3s ease;
}

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

.modal-icon { margin-bottom: 16px; }

.modal-content h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #000;
}

.modal-content p {
  font-size: 1rem;
  color: #434343;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-content .btn {
  min-width: 120px;
}
