/* ===================================
   CSS RESET AND BASE STYLES
   =================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style-position: inside;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1C3D5A;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

h4 {
  font-size: 18px;
}

p {
  margin-bottom: 16px;
  line-height: 1.8;
}

strong {
  font-weight: 600;
  color: #1C3D5A;
}

/* ===================================
   LAYOUT CONTAINERS
   =================================== */

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

.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===================================
   HEADER STYLES
   =================================== */

header {
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: none;
}

.main-nav a {
  padding: 8px 16px;
  color: #2E5077;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.main-nav a:hover {
  color: #D4AF37;
  background-color: #F5F5F5;
}

/* ===================================
   MOBILE MENU
   =================================== */

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: #1C3D5A;
  background-color: transparent;
  border: 2px solid #1C3D5A;
  border-radius: 4px;
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 101;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: #1C3D5A;
  color: #FFFFFF;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #1C3D5A;
  z-index: 200;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 28px;
  color: #FFFFFF;
  background-color: transparent;
  position: absolute;
  top: 16px;
  right: 16px;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.mobile-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 80px 20px 40px;
  gap: 8px;
}

.mobile-nav a {
  padding: 16px 20px;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: rgba(212, 175, 55, 0.2);
}

/* ===================================
   HERO SECTIONS
   =================================== */

.hero {
  background: linear-gradient(135deg, #1C3D5A 0%, #2E5077 100%);
  color: #FFFFFF;
  padding: 80px 20px;
  margin-bottom: 60px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 42px;
  margin-bottom: 20px;
}

.hero .subheadline {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.trust-indicators span {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-internal {
  background: linear-gradient(135deg, #2E5077 0%, #1C3D5A 100%);
  color: #FFFFFF;
  padding: 60px 20px;
  margin-bottom: 60px;
}

.hero-internal h1 {
  color: #FFFFFF;
  font-size: 36px;
}

.hero-internal p {
  font-size: 18px;
  opacity: 0.9;
}

.error-hero {
  text-align: center;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1;
  margin-bottom: 24px;
}

.success-hero {
  text-align: center;
}

.success-icon {
  font-size: 80px;
  color: #D4AF37;
  margin-bottom: 24px;
}

/* ===================================
   BUTTONS AND CTA
   =================================== */

.cta-button,
.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button,
.cta-primary {
  background-color: #D4AF37;
  color: #1C3D5A;
  border-color: #D4AF37;
}

.cta-button:hover,
.cta-primary:hover {
  background-color: #C19D2F;
  border-color: #C19D2F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cta-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.cta-secondary:hover {
  background-color: #FFFFFF;
  color: #1C3D5A;
}

/* ===================================
   CARD COMPONENTS
   =================================== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.service-card,
.testimonial-card,
.team-member,
.link-card,
.stat-card,
.contact-method,
.contact-person {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
}

.service-card:hover,
.link-card:hover,
.stat-card:hover {
  box-shadow: 0 8px 24px rgba(28, 61, 90, 0.12);
  transform: translateY(-4px);
  border-color: #D4AF37;
}

.service-card h3,
.team-member h3 {
  color: #1C3D5A;
  margin-bottom: 12px;
}

.service-card p,
.team-member p {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
}

.service-card .price {
  font-weight: 700;
  color: #D4AF37;
  font-size: 18px;
  margin-top: 16px;
}

.testimonial-card {
  background-color: #F8F9FA;
  border-left: 4px solid #D4AF37;
}

.testimonial-card p {
  color: #333333;
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial-card .author {
  color: #1C3D5A;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: #2E5077;
  min-height: 100px;
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

/* ===================================
   GRID LAYOUTS
   =================================== */

.services-grid,
.features-grid,
.testimonials-grid,
.team-grid,
.categories-grid,
.links-grid,
.stats-grid,
.contact-grid,
.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.services-grid > *,
.categories-grid > *,
.links-grid > * {
  flex: 1 1 100%;
}

.features-grid > *,
.testimonials-grid > *,
.stats-grid > *,
.contact-grid > *,
.contacts-grid > * {
  flex: 1 1 100%;
}

.team-grid > * {
  flex: 1 1 100%;
}

/* ===================================
   FEATURE SECTIONS
   =================================== */

.feature,
.value,
.category,
.service-item {
  padding: 24px;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature:hover,
.value:hover,
.category:hover {
  border-color: #D4AF37;
  box-shadow: 0 4px 12px rgba(28, 61, 90, 0.08);
}

.feature h3,
.value h3,
.category h3,
.service-item h3 {
  color: #1C3D5A;
  margin-bottom: 12px;
}

.feature p,
.value p,
.category p,
.service-item p {
  color: #555555;
}

/* ===================================
   STATISTICS
   =================================== */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 40px 20px;
  background-color: #F8F9FA;
  border-radius: 8px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 140px;
}

.stat strong {
  font-size: 48px;
  color: #D4AF37;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 14px;
  color: #555555;
  font-weight: 500;
}

/* ===================================
   PROCESS STEPS
   =================================== */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.step {
  padding: 24px;
  background-color: #F8F9FA;
  border-left: 4px solid #D4AF37;
  border-radius: 4px;
}

.step h3 {
  color: #1C3D5A;
  margin-bottom: 8px;
}

.step p {
  color: #555555;
  margin-bottom: 0;
}

/* ===================================
   LISTS
   =================================== */

ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555555;
}

.services-list,
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-list p,
.benefits-list p {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

/* ===================================
   SECTIONS
   =================================== */

.services-overview,
.why-choose-us,
.process,
.testimonials,
.cta-section,
.about-introduction,
.mission-values,
.achievements,
.approach,
.services-detailed,
.service-features,
.pricing-transparency,
.services-categories,
.consultation-types,
.special-services,
.process-timeline,
.client-benefits,
.team-introduction,
.team-members,
.team-expertise,
.support-staff,
.login-section,
.portal-features,
.security-information,
.portal-benefits,
.registration-info,
.support-section,
.contact-methods,
.contact-form-section,
.office-information,
.team-contacts,
.response-commitment,
.legal-content,
.error-explanation,
.helpful-links,
.contact-section,
.confirmation-message,
.next-steps,
.additional-resources {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.why-choose-us,
.testimonials,
.portal-features,
.service-features {
  background-color: #F8F9FA;
}

.cta-section {
  background: linear-gradient(135deg, #1C3D5A 0%, #2E5077 100%);
  color: #FFFFFF;
  text-align: center;
  border-radius: 8px;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-section p {
  color: #FFFFFF;
  opacity: 0.9;
  margin-bottom: 24px;
}

.contact-methods .contact-methods,
.contact-info {
  margin: 24px 0;
}

.contact-methods p,
.contact-info p {
  font-size: 16px;
  margin-bottom: 12px;
}

/* ===================================
   LEGAL PAGES
   =================================== */

.legal-content {
  padding: 40px 20px;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
}

/* ===================================
   LOGIN AND FORMS
   =================================== */

.login-placeholder {
  padding: 40px;
  background-color: #F8F9FA;
  border: 2px dashed #D4AF37;
  border-radius: 8px;
  text-align: center;
  margin: 32px 0;
}

.login-placeholder p {
  margin-bottom: 16px;
}

.security-note {
  color: #2E5077;
  font-weight: 600;
  margin-top: 16px;
}

/* ===================================
   OFFICE AND CONTACT DETAILS
   =================================== */

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

.office-details p {
  padding: 16px;
  background-color: #F8F9FA;
  border-left: 4px solid #D4AF37;
  border-radius: 4px;
}

/* ===================================
   EXPERTISE STATS
   =================================== */

.expertise-stats {
  padding: 32px;
  background-color: #F8F9FA;
  border-radius: 8px;
  margin: 24px 0;
}

.expertise-stats p {
  margin-bottom: 12px;
  font-size: 16px;
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background-color: #1C3D5A;
  color: #FFFFFF;
  padding: 60px 20px 24px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1 1 100%;
  min-width: 200px;
}

.footer-column h3 {
  color: #D4AF37;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-column p,
.footer-column li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

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

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

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

.footer-column a:hover {
  color: #D4AF37;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: color 0.3s ease;
}

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

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1C3D5A;
  color: #FFFFFF;
  padding: 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent-text {
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-consent-buttons button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cookie-accept-all {
  background-color: #D4AF37;
  color: #1C3D5A;
}

.cookie-accept-all:hover {
  background-color: #C19D2F;
}

.cookie-reject-all {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.cookie-reject-all:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-settings {
  background-color: transparent;
  color: #D4AF37;
  border: 2px solid #D4AF37;
}

.cookie-settings:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

/* ===================================
   COOKIE PREFERENCES MODAL
   =================================== */

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: #FFFFFF;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cookie-modal-header {
  padding: 24px;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  color: #1C3D5A;
  margin-bottom: 0;
}

.cookie-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #555555;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: #1C3D5A;
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-category {
  padding: 16px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  margin-bottom: 16px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category h4 {
  color: #1C3D5A;
  margin-bottom: 0;
  font-size: 16px;
}

.cookie-toggle {
  width: 48px;
  height: 24px;
  background-color: #CCCCCC;
  border-radius: 12px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.cookie-toggle.active {
  background-color: #D4AF37;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
  transform: translateX(24px);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category p {
  font-size: 13px;
  color: #555555;
  margin-bottom: 0;
}

.cookie-modal-footer {
  padding: 24px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-modal-footer button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cookie-save-preferences {
  background-color: #D4AF37;
  color: #1C3D5A;
}

.cookie-save-preferences:hover {
  background-color: #C19D2F;
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */

@media (min-width: 768px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    gap: 8px;
  }

  .hero {
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .services-grid > *,
  .categories-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .features-grid > *,
  .testimonials-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .team-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .links-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .stats-grid > *,
  .contact-grid > *,
  .contacts-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .footer-column {
    flex: 1 1 calc(50% - 16px);
  }

  .cookie-consent-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-consent-buttons {
    flex-shrink: 0;
  }
}

/* ===================================
   RESPONSIVE DESIGN - DESKTOP
   =================================== */

@media (min-width: 1024px) {
  .services-grid > * {
    flex: 1 1 calc(33.333% - 16px);
  }

  .features-grid > * {
    flex: 1 1 calc(25% - 18px);
  }

  .team-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .categories-grid > * {
    flex: 1 1 calc(50% - 12px);
  }

  .links-grid > * {
    flex: 1 1 calc(25% - 18px);
  }

  .stats-grid > *,
  .contact-grid > *,
  .contacts-grid > * {
    flex: 1 1 calc(25% - 18px);
  }

  .footer-column {
    flex: 1 1 calc(25% - 24px);
  }

  .process-steps {
    flex-direction: row;
  }

  .step {
    flex: 1;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

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

.mb-40 {
  margin-bottom: 40px;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-consent-banner,
  .cookie-modal,
  header,
  footer {
    display: none;
  }

  body {
    color: #000000;
  }

  a {
    text-decoration: underline;
  }
}