/* SYSTEAS - Static Site Styles */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Colors from SYSTEAS logo */
  --primary: #1e3a5f;
  --primary-light: #2a4a73;
  --primary-dark: #152a47;
  --secondary: #3db8c1;
  --accent: #4abe8c;
  --background: #f8fafc;
  --card: #ffffff;
  --foreground: #1a2d42;
  --muted: #64748b;
  --muted-bg: #f1f5f9;
  --border: #e2e8f0;
  --light-cyan: #e0f7fa;
  --white: #ffffff;
  
  /* Spacing */
  --container-max: 1200px;
  --radius: 12px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 40px rgba(61, 184, 193, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(26, 45, 66, 0.06);
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.header-logo img {
  height: 155px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, var(--light-cyan) 0%, var(--background) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 5rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(61, 184, 193, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(26, 45, 66, 0.06);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.location-badge svg {
  color: var(--secondary);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description strong {
  color: var(--foreground);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

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

.trust-item .value {
  font-size: 1.75rem;
  font-weight: 700;
}

.trust-item .value.primary { color: var(--primary); }
.trust-item .value.secondary { color: var(--secondary); }
.trust-item .value.accent { color: var(--accent); }

.trust-item .label {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ==================== SERVICES ==================== */
.services {
  padding: 5rem 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30, 58, 95, 0.05);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-btn.active:hover,
.filter-btn.active:focus,
.filter-btn.active:active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.services-category {
  margin-bottom: 4rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

.services-category.hidden {
  display: none;
}

.services-category.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon.business { background: rgba(30, 58, 95, 0.1); color: var(--primary); }
.category-icon.personal { background: rgba(61, 184, 193, 0.1); color: var(--secondary); }

.category-header h3 {
  font-size: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(61, 184, 193, 0.3);
  box-shadow: 0 0 40px rgba(61, 184, 193, 0.15);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ==================== WHY US ==================== */
.why-us {
  padding: 5rem 0;
  background: var(--muted-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.primary { background: rgba(30, 58, 95, 0.1); color: var(--primary); }
.feature-icon.secondary { background: rgba(61, 184, 193, 0.1); color: var(--secondary); }
.feature-icon.accent { background: rgba(74, 190, 140, 0.1); color: var(--accent); }

.feature-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--muted);
}

.about-me {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.about-me-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-me-photo {
  flex-shrink: 0;
}

.about-me-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 20px rgba(26, 45, 66, 0.1);
}

.about-me-text {
  flex: 1;
}

.about-me-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.about-me-text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-me-text p:last-child {
  margin-bottom: 0;
}

.about-me-text strong {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-me-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-me-photo img {
    width: 120px;
    height: 120px;
  }
}

/* ==================== COVERAGE ==================== */
.coverage {
  padding: 5rem 0;
  background: var(--background);
}

.coverage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.coverage-map {
  aspect-ratio: 1;
  background: var(--muted-bg);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-center {
  text-align: center;
  z-index: 1;
}

.map-pin {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.map-pin svg {
  width: 3rem;
  height: 3rem;
  color: var(--white);
}

.map-center p:first-of-type {
  font-weight: 600;
  font-size: 1.125rem;
}

.map-center p:last-of-type {
  color: var(--muted);
}

.map-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.map-circles span {
  position: absolute;
  border: 2px solid rgba(61, 184, 193, 0.15);
  border-radius: 50%;
}

.map-circles span:nth-child(1) { width: 8rem; height: 8rem; }
.map-circles span:nth-child(2) { width: 12rem; height: 12rem; }
.map-circles span:nth-child(3) { width: 16rem; height: 16rem; }
.map-circles span:nth-child(4) { width: 20rem; height: 20rem; }

.coverage-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coverage-card {
  padding: 1.5rem;
}

.coverage-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.coverage-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.coverage-card-icon.primary { background: rgba(30, 58, 95, 0.1); color: var(--primary); }
.coverage-card-icon.secondary { background: rgba(61, 184, 193, 0.1); color: var(--secondary); }

.coverage-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.coverage-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

.communes-list {
  padding: 1rem;
  background: var(--muted-bg);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.communes-list strong {
  color: var(--foreground);
}

/* ==================== CONTACT ==================== */
.contact {
  padding: 5rem 0;
  background: var(--muted-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details {
  padding: 1.5rem;
}

.contact-details h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--primary);
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon.primary { background: rgba(30, 58, 95, 0.1); color: var(--primary); }
.contact-item-icon.secondary { background: rgba(61, 184, 193, 0.1); color: var(--secondary); }
.contact-item-icon.accent { background: rgba(74, 190, 140, 0.1); color: var(--accent); }

.quote-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
}

.quote-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quote-card p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.quote-card-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.contact-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(61, 184, 193, 0.1);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--foreground);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 155px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transform: translateY(-2rem);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transform: translateY(-3rem);
}

.footer h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .coverage-content {
    grid-template-columns: 1fr;
  }
  
  .coverage-map {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .trust-indicators {
    gap: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 99;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1rem;
  color: var(--white) !important;
  text-align: center;
  justify-content: center;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 999;
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__content {
  position: relative;
  background: var(--background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 420px;
  width: 100%;
  z-index: 1;
  transform: scale(0.95);
  transition: transform 200ms ease;
}

.modal--open .modal__content {
  transform: scale(1);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #d1fae5;
  color: #065f46;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modal.modal--error .modal__icon {
  background: #fee2e2;
  color: #991b1b;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color var(--transition);
  padding: 0.25rem;
  line-height: 1;
  margin-top: -0.25rem;
  margin-right: -0.5rem;
}

.modal__close:hover {
  color: var(--foreground);
}

.modal__body {
  padding-right: 1rem;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  line-height: 1.4;
}

.modal__message {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.no-scroll {
  overflow: hidden;
}
