/* ==========================================================================
   ROUTERA - DESIGN SYSTEM
   ========================================================================== */

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

/* ---------- 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-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ---------- VARIABLES ---------- */
:root {
  /* Colors */
  --color-primary: #FD8D14;
  --color-primary-hover: #e87d09;
  --color-dark: #0D274E;
  --color-dark-2: #0a1f3f;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-cream: #f7f7f7;
  --color-white: #ffffff;
  --color-border: #e5e5e5;

  /* Fonts */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Font sizes */
  --fs-hero: clamp(2.5rem, 6vw, 5.625rem);   /* 40px–90px */
  --fs-h1: clamp(2.25rem, 5vw, 5.625rem);    /* 36px–90px */
  --fs-h2: clamp(1.875rem, 3vw, 2.625rem);   /* 30px–42px */
  --fs-h3: clamp(1.125rem, 1.5vw, 1.375rem); /* 18px–22px */
  --fs-body: 1rem;                            /* 16px */
  --fs-small: 0.875rem;                       /* 14px */
  --fs-eyebrow: 1.125rem;                     /* 18px */

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-padding: 5rem;

  /* Border radius */
  --radius: 10px;
  --radius-lg: 20px;
  --radius-xl: 50px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

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

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

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

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.section-eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 3rem;
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--color-primary-hover);
  padding-right: 2.25rem;
  letter-spacing: 2px;
  border-radius: 4px;
  color: var(--color-white);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

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

.btn--white:hover {
  background: var(--color-cream);
  color: var(--color-dark);
}

.btn .btn-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 0;
}

.header.is-sticky,
.page-has-inner-hero .header {
  background: var(--color-dark);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.625rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

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

.header__logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon svg {
  width: 100%;
  height: 100%;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__nav-link {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--color-primary);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.header__cta:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
  padding-right: 1.75rem;
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.header__menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.header__menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- INNER HERO (subpage banner) ---------- */
.inner-hero {
  background: var(--color-dark);
  padding: 9rem 0 5rem;
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.inner-hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__col-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer__brand svg {
  width: 36px;
  height: 36px;
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.footer__contact-item .ic {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__contact-item .ic svg {
  width: 18px;
  height: 18px;
}

.footer__newsletter {
  margin-top: 0.5rem;
}

.footer__newsletter-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.footer__newsletter-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-display);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback - vše viditelné když JS selže */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 4rem;
    --container-padding: 1.25rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
    --container-padding: 1rem;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__cta {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .header__cta .cta-text {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .inner-hero {
    padding: 7rem 0 3.5rem;
    border-radius: 0 0 30px 30px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 2.5rem;
  }

  .inner-hero {
    padding: 6rem 0 3rem;
  }

  .footer {
    padding-top: 3rem;
  }
}
