/* ==========================================================================
   Bazinga sàrl - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors */
  --color-primary: #0b396c;
  --color-accent: #2fa4b2;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-light: #f5f7fa;
  --color-gray: #6b7280;
  --color-dark: #1a1a2e;

  /* Functional Colors */
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.section--light {
  background-color: var(--color-light);
}

.section--dark {
  background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)), url('../images/hero-luxembourg.jpg') center/cover no-repeat;
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

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

.btn--primary:hover {
  background-color: #268a96;
  border-color: #268a96;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

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

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

.btn--white:hover {
  background-color: var(--color-light);
  border-color: var(--color-light);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.header__logo {
  height: 40px;
  width: auto;
}

.header__logo img {
  height: 100%;
  width: auto;
}

.nav {
  display: none;
}

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

.nav__link {
  position: relative;
  color: var(--color-dark);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle__bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: all var(--transition-fast);
}

.menu-toggle.active .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav__link {
  display: block;
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-light);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--color-accent);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d4a8a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(47, 164, 178, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(47, 164, 178, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  max-width: 550px;
}

/* --------------------------------------------------------------------------
   Service Pillars
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: var(--space-lg);
}

.pillar {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.pillar__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.pillar__icon svg {
  width: 28px;
  height: 28px;
}

.pillar__title {
  margin-bottom: var(--space-sm);
}

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

.pillar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  transition: gap var(--transition-fast);
}

.pillar__link:hover {
  gap: var(--space-sm);
}

.pillar__link svg {
  width: 16px;
  height: 16px;
}

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

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust {
  text-align: center;
}

.trust__quote {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--color-dark);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
}

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

.cta__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer__brand {
  max-width: 250px;
}

.footer__logo {
  height: 36px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.footer__company {
  font-size: 0.875rem;
}

.footer__nav-title {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__nav-link {
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

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

/* --------------------------------------------------------------------------
   Page Header (for inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
  background: linear-gradient(rgba(11, 57, 108, 0.85), rgba(11, 57, 108, 0.85)), url('../images/hero-luxembourg.jpg') center/cover no-repeat;
  color: var(--color-white);
}

.page-header__title {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Service Cards (for services page)
   -------------------------------------------------------------------------- */
.service-cards {
  display: grid;
  gap: var(--space-lg);
}

.service-card {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
}

.service-card__title {
  margin-bottom: var(--space-sm);
}

.service-card__description {
  margin-bottom: var(--space-sm);
}

.service-card__target {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

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

/* --------------------------------------------------------------------------
   Process Steps (for approach page)
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  gap: var(--space-lg);
}

.process__step {
  position: relative;
  padding-left: 60px;
}

.process__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  border-radius: 50%;
}

.process__title {
  margin-bottom: var(--space-xs);
}

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

  .process__step {
    padding-left: 0;
    padding-top: 60px;
    text-align: center;
  }

  .process__number {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.form-label .required {
  color: var(--color-error);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 164, 178, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

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

.form-error {
  display: none;
  font-size: 0.875rem;
  color: var(--color-error);
  margin-top: var(--space-xs);
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: var(--space-md);
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  color: var(--color-success);
  text-align: center;
}

.form-success.visible {
  display: block;
}

.contact-info__title {
  margin-bottom: var(--space-md);
}

.contact-info__item {
  margin-bottom: var(--space-md);
}

.contact-info__label {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: var(--space-xs);
}

.contact-info__value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
}

.contact-info__value a {
  color: var(--color-accent);
}

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

/* --------------------------------------------------------------------------
   Legal Page
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 800px;
}

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

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

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

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

.legal-content li {
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.about-photo {
  aspect-ratio: 1;
  background-color: var(--color-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.875rem;
}

.about-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 300px 1fr;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Visually hidden but accessible */
.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;
}

/* --------------------------------------------------------------------------
   Homepage About Preview Grid
   -------------------------------------------------------------------------- */
.about-preview-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}
