/* ==========================================================================
   HERAMARTH - Main Stylesheet
   Production-ready, mobile-first responsive CSS

   Color Palette:
     - Primary:    #2d2270  (dark indigo/purple)
     - Accent:     #00ea8c  (bright green)
     - Background: #ffffff  (white)
     - Text:       #1a1a2e  (near-black)
     - Muted Text: #444444
     - Light BG:   #f8f9fa

   Breakpoints:
     - Mobile:  < 768px
     - Tablet:  768px - 1024px
     - Desktop: > 1024px
   ========================================================================== */


/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}


/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2d2270;
  line-height: 1.25;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  font-size: 1.05rem;
  color: #444444;
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.875rem;
}


/* ==========================================================================
   3. CONTAINER & LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}


/* ==========================================================================
   4. NAVIGATION (.navbar)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 2px 20px rgba(45, 34, 112, 0.1);
}

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

.navbar-logo img {
  max-height: 45px;
  width: auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: #2d2270;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #00ea8c;
}

.nav-links a.active {
  color: #00ea8c;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: #00ea8c;
  border-radius: 1px;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2d2270;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger span:nth-child(1) {
  margin-bottom: 6px;
}

.hamburger span:nth-child(3) {
  margin-top: 6px;
}

/* Hamburger active state (X animation) */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 30px 40px;
    gap: 4px;
    box-shadow: -4px 0 30px rgba(45, 34, 112, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .nav-links a.active::after {
    bottom: 6px;
  }

  /* Hero on mobile - already single-column centred */

  /* Why Us, Contact, Services: see overrides after base styles */
}

/* Overlay behind mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 46, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}


/* ==========================================================================
   5. HERO SECTION (.hero)
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 100px 20px 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 34, 112, 0.65);
  z-index: 1;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.hero .hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2em;
}

.hero .btn-secondary {
  background-color: #00ea8c;
  color: #2d2270;
  border: 2px solid #00ea8c;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero .btn-secondary:hover {
  background-color: #00d47e;
  border-color: #00d47e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 234, 140, 0.4);
  color: #2d2270;
}


/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background-color: #f8f9fa;
}

.section:nth-child(odd) {
  background-color: #ffffff;
}

.section .container {
  max-width: 1200px;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d2270;
  margin-bottom: 1em;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #00ea8c;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #444444;
  max-width: 650px;
  margin: -0.5em auto 2.5em;
}


/* ==========================================================================
   7. SERVICE CARDS (.services-grid)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2em;
}

.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(45, 34, 112, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(45, 34, 112, 0.04);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45, 34, 112, 0.12);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #00ea8c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: #2d2270;
  flex-shrink: 0;
}

.service-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d2270;
  margin-bottom: 0.5em;
}

.service-card p {
  font-size: 0.98rem;
  color: #555555;
  line-height: 1.65;
}


/* ==========================================================================
   8. CTA SECTION (.cta-section)
   ========================================================================== */

.cta-section {
  background-color: #f8f9fa;
  padding: 72px 0;
  text-align: center;
}

.cta-section .btn-primary {
  font-size: 1.05rem;
}


/* ==========================================================================
   9. CONTACT FORM (.contact-form)
   ========================================================================== */

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d2270;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: #1a1a2e;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #00ea8c;
  box-shadow: 0 0 0 3px rgba(0, 234, 140, 0.15);
}

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

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

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

/* Form messages */
.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background-color: #eafff4;
  color: #0d7a47;
  border: 1px solid #00ea8c;
}

.form-message.error {
  background-color: #fff0f0;
  color: #c0392b;
  border: 1px solid #e74c3c;
}

/* Checkbox / consent */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #00ea8c;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: #555555;
  font-weight: 400;
  margin-bottom: 0;
}


/* ==========================================================================
   10. FOOTER (.footer)
   ========================================================================== */

.footer {
  background-color: #2d2270;
  color: #ffffff;
  padding: 60px 0 0;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1em;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #00ea8c;
  border-radius: 1px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: #00ea8c;
  padding-left: 4px;
}

.footer-col .footer-logo img {
  max-height: 40px;
  margin-bottom: 16px;
}

/* Footer contact info */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Footer social links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  background-color: #00ea8c;
  color: #2d2270;
  transform: translateY(-2px);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #00ea8c;
}


/* ==========================================================================
   11. BUTTONS
   ========================================================================== */

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  line-height: 1.4;
}

.btn-primary {
  background-color: #00ea8c;
  color: #2d2270;
  border: 2px solid #00ea8c;
}

.btn-primary:hover {
  background-color: #00d47e;
  border-color: #00d47e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 234, 140, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 234, 140, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: #2d2270;
  border: 2px solid #2d2270;
}

.btn-secondary:hover {
  background-color: #2d2270;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 34, 112, 0.25);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Button on dark backgrounds */
.footer .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 234, 140, 0.4);
}

/* Small button variant */
.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* Full-width button */
.btn-block {
  display: block;
  width: 100%;
}


/* ==========================================================================
   12. UTILITIES
   ========================================================================== */

/* Text alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Text colors */
.text-accent {
  color: #00ea8c;
}

.text-primary {
  color: #2d2270;
}

.text-white {
  color: #ffffff;
}

.text-muted {
  color: #777777;
}

/* Margin tops */
.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

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

.mt-4 {
  margin-top: 48px;
}

/* Margin bottoms */
.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 32px;
}

.mb-4 {
  margin-bottom: 48px;
}

/* Placeholder image */
.placeholder-img {
  background-color: #e0e0e0;
  border: 2px dashed #bbbbbb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  min-height: 200px;
  position: relative;
}

.placeholder-img::after {
  content: 'Imagen';
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hidden helper */
.hidden {
  display: none !important;
}


/* ==========================================================================
   13. LEGAL PAGES (.legal-content)
   ========================================================================== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #777777;
}

.breadcrumb a {
  color: #2d2270;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #00ea8c;
}

.breadcrumb span.separator {
  color: #bbbbbb;
}

.breadcrumb .current {
  color: #555555;
  font-weight: 500;
}

/* Legal typography */
.legal-content h1 {
  font-size: 2rem;
  color: #2d2270;
  margin-bottom: 0.5em;
  padding-bottom: 16px;
  border-bottom: 3px solid #00ea8c;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: #2d2270;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.legal-content h3 {
  font-size: 1.2rem;
  color: #2d2270;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 1em;
}

.legal-content ul,
.legal-content ol {
  margin: 1em 0;
  padding-left: 24px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content ul li,
.legal-content ol li {
  font-size: 1rem;
  color: #444444;
  line-height: 1.75;
  margin-bottom: 6px;
  padding-left: 4px;
}

.legal-content ul ul {
  list-style: circle;
  margin-top: 6px;
}

.legal-content a {
  color: #2d2270;
  text-decoration: underline;
  text-decoration-color: #00ea8c;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #00ea8c;
}

.legal-content .last-updated {
  font-size: 0.9rem;
  color: #777777;
  font-style: italic;
  margin-bottom: 2em;
}

.legal-content blockquote {
  border-left: 4px solid #00ea8c;
  padding: 16px 20px;
  margin: 1.5em 0;
  background-color: #f8f9fa;
  border-radius: 0 8px 8px 0;
  color: #444444;
  font-size: 0.98rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.legal-content table th,
.legal-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  color: #444444;
}

.legal-content table th {
  background-color: #f8f9fa;
  color: #2d2270;
  font-weight: 600;
}


/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */

/* Fade-in on scroll (CSS-driven, add class via JS or Intersection Observer) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse accent */
@keyframes pulse-accent {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 234, 140, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 234, 140, 0);
  }
}

.pulse {
  animation: pulse-accent 2s infinite;
}

/* Smooth interactive transitions (applied globally to key elements) */
a,
button,
input,
textarea,
select,
.service-card,
.btn-primary,
.btn-secondary {
  transition-duration: 0.3s;
  transition-timing-function: ease;
}


/* ==========================================================================
   15. ABOUT / TEAM / GENERIC CONTENT BLOCKS
   ========================================================================== */

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

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 0.6em;
}

.about-text p {
  margin-bottom: 1em;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
}

/* Feature list */
.feature-list {
  margin-top: 1.5em;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #444444;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ea8c;
  margin-top: 8px;
  flex-shrink: 0;
}


/* ==========================================================================
   16. RESPONSIVE - TABLET (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {

  /* Typography scales up */
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Hero */
  .hero {
    min-height: 560px;
    padding: 120px 40px 80px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .hero__subtitle {
    font-size: 1.2rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

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

  /* Form row: 2 columns */
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */
  .cta-section {
    padding: 80px 0;
  }

  .cta-section__inner h2 {
    font-size: 2rem;
  }

  /* About grid side by side */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  /* Legal */
  .legal-content {
    padding: 60px 40px 80px;
  }

  .legal-content h1 {
    font-size: 2.2rem;
  }

  /* Contact heading at tablet+ */
  .contact-info h1 {
    font-size: 2.2rem;
  }

  /* Services block image at tablet */
  .services-block__image {
    flex: 0 0 280px;
    max-width: 280px;
  }
}


/* ==========================================================================
   17. RESPONSIVE - DESKTOP (min-width: 1025px)
   ========================================================================== */

@media (min-width: 1025px) {

  /* Typography at full scale */
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  /* Hero at full scale */
  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero .hero__subtitle {
    font-size: 1.25rem;
  }

  /* Section title */
  .section-title {
    font-size: 2.2rem;
  }

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

  /* Footer: 3 columns */
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
  }

  /* CTA */
  .cta-section__inner h2 {
    font-size: 2.2rem;
  }

  .cta-section__inner p {
    font-size: 1.15rem;
  }

  /* Services block image at desktop */
  .services-block__image {
    flex: 0 0 340px;
    max-width: 340px;
  }
}


/* ==========================================================================
   18. LARGE SCREENS (min-width: 1400px)
   ========================================================================== */

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}


/* ==========================================================================
   19. REDUCED MOTION PREFERENCE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .fade-in-stagger > * {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   19-B. MISSING BEM CLASSES (Hero, Services, Why-Us, CTA, Contact, FAQ…)
   ========================================================================== */

/* ---------- Hero centred layout ---------- */
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.hero__content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

/* ---------- Base .btn ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease;
  line-height: 1.4;
  text-decoration: none;
}

/* ---------- Services block BEM ---------- */
.services-block {
  margin-bottom: 48px;
}

.services-block:last-child {
  margin-bottom: 0;
}

.services-block__title {
  font-size: 1.5rem;
  color: #2d2270;
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 4px solid #00ea8c;
}

/* Services block layout - image beside cards */
.services-block__layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 16px;
}

.services-block__layout .services-grid {
  flex: 1;
  min-width: 0;
}

.services-block__image {
  flex: 0 0 300px;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45, 34, 112, 0.12);
  position: sticky;
  top: 100px;
}

.services-block__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.services-block__image:hover img {
  transform: scale(1.03);
}

/* Mobile image (between title and cards): hidden on desktop */
.services-block__image.services-block__image--mobile {
  display: none !important;
  max-width: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
}

/* ---------- Services block mobile override ---------- */
@media (max-width: 767px) {
  .services-block__layout {
    flex-direction: column;
  }

  /* Hide desktop sidebar image on mobile */
  .services-block__layout .services-block__image {
    display: none;
  }

  /* Show mobile image (below title) */
  .services-block__image.services-block__image--mobile {
    display: block !important;
    visibility: visible !important;
    max-width: 100% !important;
    max-height: none !important;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .services-block__image--mobile img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* ---------- Service card BEM inner elements ---------- */
.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 234, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #2d2270;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2d2270;
  margin-bottom: 0.5em;
}

.service-card__desc {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.65;
}

/* ---------- Section modifiers & intro ---------- */
.section--services {
  background-color: #ffffff;
}

.section--why-us {
  background-color: #f8f9fa;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #444444;
  max-width: 750px;
  margin: -0.5em auto 2.5em;
  line-height: 1.7;
}

/* ---------- Why Us section BEM ---------- */
.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-us__features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-us__image .placeholder-img {
  min-height: 400px;
  border-radius: 12px;
}

.why-us__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------- Why Us mobile override ---------- */
@media (max-width: 767px) {
  .why-us__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-us__image {
    order: 1;
  }

  .why-us__features {
    order: 2;
  }

  .feature-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-block__icon {
    margin: 0 auto;
  }
}

.feature-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-block__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  background-color: rgba(0, 234, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d2270;
}

.feature-block__icon svg {
  width: 28px;
  height: 28px;
}

.feature-block__text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.feature-block__text p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* ---------- CTA inner ---------- */
.cta-section__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-section__inner h2 {
  font-size: 2rem;
  color: #2d2270;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-section__inner p {
  font-size: 1.15rem;
  color: #444444;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-section .btn-secondary {
  background-color: #2d2270;
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-section .btn-secondary:hover {
  background-color: #00ea8c;
  color: #2d2270;
  transform: translateY(-2px);
}

/* ---------- Contact page BEM ---------- */
.contact-section {
  padding-top: 40px;
}

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

.contact-info h1 {
  font-size: 2rem;
  color: #2d2270;
  margin-bottom: 0.3em;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2em;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2em 0;
}

.contact-details__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #444;
}

.contact-details__item a {
  color: #2d2270;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details__item a:hover {
  color: #00ea8c;
}

.contact-details__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: #00ea8c;
  margin-top: 2px;
}

.contact-form-wrapper {
  background-color: #f8f9fa;
  padding: 36px;
  border-radius: 16px;
}

/* ---------- Alert / notification ---------- */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.alert-success {
  background-color: #eafff4;
  color: #0d7a47;
  border: 1px solid #00ea8c;
}

.alert-error {
  background-color: #fff0f0;
  color: #c0392b;
  border: 1px solid #e74c3c;
}

.alert ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.alert ul li {
  margin-bottom: 4px;
}

/* ---------- Form extras ---------- */
.required {
  color: #e74c3c;
  font-weight: 700;
}

.form-group--checkbox {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #00ea8c;
  cursor: pointer;
}

.checkbox-label a {
  color: #2d2270;
  text-decoration: underline;
  text-decoration-color: #00ea8c;
}

.checkbox-label a:hover {
  color: #00ea8c;
}

.form-group--submit {
  margin-top: 8px;
}

.form-group--submit .btn {
  width: 100%;
}

/* ---------- Contact page mobile ---------- */
@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-wrapper {
    padding: 24px 20px;
  }
}

/* ---------- FAQ section ---------- */
.faq-section {
  background-color: #ffffff;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(45, 34, 112, 0.08);
}

.faq-item__question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d2270;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s ease;
}

.faq-item__question:hover {
  background-color: #f8f9fa;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #00ea8c;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-item__question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 24px 20px;
}

.faq-item__answer p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}


/* ==========================================================================
   20. PRINT STYLES
   ========================================================================== */

@media print {
  .navbar,
  .hamburger,
  .nav-overlay,
  .cta-section,
  .footer,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000000;
    background: #ffffff;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
    background: none;
  }

  .section {
    padding: 20px 0;
    background: #ffffff !important;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .legal-content {
    max-width: 100%;
    padding: 0;
  }
}
