@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #0052FF;
  --color-secondary: #0F172A;
  --color-accent: #00F2FE;
  --color-text: #1a1a1a;
  --color-text-light: #4b5563;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --font-family: 'Space Grotesk', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  font-family: var(--font-family);
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0041cc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.btn-accent:hover {
  background-color: #00d8e4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }
  
  .nav-link {
    font-weight: 500;
    color: var(--color-secondary);
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-base);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-secondary);
  transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg);
}

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

.mobile-nav .nav-link {
  font-size: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  color: #ffffff;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 240px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: var(--space-sm);
}

.card-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card-link {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  gap: 0.75rem;
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(0, 82, 255, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.stats-grid {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: var(--space-2xl) 0;
}

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

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.testimonial-card {
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-info h4 {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

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

.faq-item {
  margin-bottom: var(--space-md);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--color-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #f8fafc;
}

.faq-answer-content {
  padding: var(--space-lg);
  color: var(--color-text-light);
  border-top: 1px solid #e2e8f0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.contact-layout {
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

footer {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand h2 {
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  opacity: 0.7;
  max-width: 300px;
}

.footer-links h3 {
  color: #ffffff;
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

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

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

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.875rem;
  opacity: 0.7;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 1.5rem;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -10px 15px -3px rgba(0,0,0,0.1);
}

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

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

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text p {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.about-hero {
  height: 50vh;
  min-height: 400px;
}

.services-grid-detailed {
  display: grid;
  gap: var(--space-2xl);
}

.service-row {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-row:nth-child(even) .service-content {
    order: 2;
  }
  
  .service-row:nth-child(even) .service-image {
    order: 1;
  }
}

.service-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--space-md);
}

.page-header {
  padding: 120px 0 60px;
  background-color: var(--color-secondary);
  color: #ffffff;
  text-align: center;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.legal-content h2 {
  margin-top: var(--space-xl);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.invalid {
  border-color: #ef4444;
}

.form-control.invalid + .error-message {
  display: block;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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