/* ==========================================================================
   Relistix - Modern CSS (2025)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --accent: #fec503;
  --dark: #1a1a2e;
  --dark-lighter: #252540;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333;
  --text-muted: #6c757d;
  --text-light: #adb5bd;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.2s ease;

  --container-max: 1140px;
  --spacing-section: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

p {
  margin: 0 0 1rem;
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--spacing-section) 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--dark);
  box-shadow: var(--shadow-md);
}

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

.nav__logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__logo:hover {
  background: var(--primary);
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__lang {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__lang:hover {
  color: var(--primary);
  background: var(--white);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  color: var(--white);
}

.hero__content {
  max-width: 800px;
}

.hero__brands {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 40px;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__brand-logo {
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
}

.hero__brand-logo img {
  height: 40px;
  width: auto;
}

.hero__brand-tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.hero__divider {
  width: 60px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  background: var(--light);
}

.services__header {
  text-align: center;
  margin-bottom: 60px;
}

.services__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.services__subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
}

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

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card__text {
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Customers Section
   -------------------------------------------------------------------------- */
.customers {
  background: var(--white);
}

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

.customers__title {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.customers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.customer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--light);
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.customer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.customer__logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 16px;
}

.customer__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.customer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  background: var(--dark);
  color: var(--white);
}

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

.contact__title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0;
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.contact__item:hover {
  color: var(--accent);
}

.contact__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Email obfuscation */
.at-sign {
  display: inline;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 0;
  background: var(--dark-lighter);
  color: var(--text-light);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--dark);
  border-radius: 50%;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  color: var(--text-light);
  font-size: 14px;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__copyright {
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Privacy Modal
   -------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal__content {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.modal__close svg {
  width: 24px;
  height: 24px;
}

.modal__title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.modal__text {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --spacing-section: 60px;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 80px;
  }

  .hero__brand-tagline {
    font-size: 1.1rem;
  }

  .services__title,
  .customers__title,
  .contact__title {
    font-size: 2rem;
  }

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

  .service-card {
    padding: 32px 24px;
  }

  .modal__content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .nav__logos {
    gap: 8px;
  }

  .nav__logo {
    padding: 4px 8px;
  }

  .nav__logo img {
    height: 26px;
  }

  .hero__brand-logo img {
    height: 32px;
  }

  .hero__brand-tagline {
    font-size: 1rem;
  }
}
