/* ============================================================
   Pelikán Consulting – CSS Foundation
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --color-dark: #0f1419;
  --color-light: #ffffff;
  --color-light-alt: #f8f9fa;
  --color-accent: #2563eb;
  --color-text-dark: #e2e8f0;
  --color-text-light: #1e293b;
  --color-border: #e2e8f0;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  background: var(--color-light);
}

/* --- Utilities --------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}

/* --- Typography -------------------------------------------- */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  font-size: 1.1rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ============================================================
   Header & Navigation
   ============================================================ */

.header {
  background: var(--color-dark);
  color: var(--color-text-dark);
  position: relative;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
  color: inherit;
}

.nav-logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-logo span {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

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

.lang-toggle {
  border: 1px solid rgba(226, 232, 240, 0.45);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  margin-bottom: 6px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* Animated X state */
.nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero-content {
  padding-block: 6rem 8rem;
}

.hero-content h1 {
  max-width: 750px;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* Subtle gradient from white to text-dark for depth */
  background: linear-gradient(135deg, #ffffff 0%, var(--color-text-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Services Section
   ============================================================ */

#services h2,
#approach h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  background: var(--color-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.service-card svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.service-card p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   Approach Section
   ============================================================ */

#approach {
  background: var(--color-light-alt);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.approach-card {
  padding: 2rem;
  background: var(--color-light);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.approach-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.approach-card h3 {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.approach-card p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   Footer / Contact
   ============================================================ */

.footer {
  background: var(--color-dark);
  color: var(--color-text-dark);
  text-align: center;
  padding-block: 5rem;
}

.footer h2 {
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.footer a {
  color: var(--color-accent);
  transition: text-decoration 0.15s ease, opacity 0.15s ease;
}

.footer a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.7);
}

.footer-info a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-accent);
}

/* ============================================================
   Responsive — 768px
   ============================================================ */

@media (max-width: 768px) {
  /* Show hamburger, hide inline nav links */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: 1.5rem;
    gap: 1rem;
    z-index: 100;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    /* Smooth slide-in */
    transform-origin: top center;
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding-block: 0.25rem;
  }

  .lang-toggle {
    border-color: rgba(226, 232, 240, 0.35);
    display: inline-block;
    width: fit-content;
  }

  /* Hero */
  .hero-content {
    padding-block: 4rem 5rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    letter-spacing: -0.015em;
  }

  /* Sections */
  .section {
    padding-block: 3rem;
  }

  h2 {
    margin-bottom: 2rem;
    font-size: 1.65rem;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Footer */
  .footer {
    padding-block: 3.5rem;
  }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .nav-logo span {
    font-size: 1.05rem;
  }
}
