/* ========================================
   Fades Management — Custom Styles
   ======================================== */

:root {
  --red: #e63946;
  --red-dark: #c12d39;
  --dark: #ffffff;
  --dark-2: #f7f7f8;
  --dark-3: #eef0f2;
  --dark-4: #e4e7eb;
  --gray: #5f6b7a;
  --gray-light: #4a5568;
  --white: #1a202c;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

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

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

/* ---- Layout ---- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
}

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s;
}

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

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--red);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.2s;
}

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

.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 1.25rem;
}

.lang-switch button {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--gray);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-switch button:hover {
  color: var(--white);
  border-color: rgba(0, 0, 0, 0.3);
}

.lang-switch button.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%),
    url('../img/bansko.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero h1 br {
  display: block;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

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

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(237, 46, 41, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.03);
}

.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---- About ---- */

#about {
  background:
    linear-gradient(180deg, rgba(247, 247, 248, 0.97) 0%, rgba(247, 247, 248, 0.93) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center/cover no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--gray-light);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.principle {
  padding: 1.75rem;
  background: var(--dark-3);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.principle h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.principle h4::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.principle p {
  color: var(--gray);
  font-size: 0.9rem;
  padding-left: 1.75rem;
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  border-color: rgba(230, 57, 70, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(237, 46, 41, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- SyndiFlow ---- */

#syndiflow {
  background:
    linear-gradient(180deg, rgba(247, 247, 248, 0.96) 0%, rgba(247, 247, 248, 0.92) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

#syndiflow::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(230, 57, 70, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.sf-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
  position: relative;
}

.sf-logo {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--red), #ff6b5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.sf-header .subtitle {
  font-size: 1.15rem;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.sf-header p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sf-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.sf-feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--dark-3);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.sf-feature:hover {
  border-color: rgba(230, 57, 70, 0.15);
}

.sf-feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  background: rgba(237, 46, 41, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.sf-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sf-feature p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

.sf-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  position: relative;
}

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

.sf-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}

.sf-stat .label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.sf-cta {
  text-align: center;
  position: relative;
}

/* ---- VotaFlow ---- */

#votaflow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 248, 0.94) 100%);
  position: relative;
  overflow: hidden;
}

#votaflow::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.vf-logo {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

#votaflow .sf-feature-icon {
  background: rgba(99, 102, 241, 0.1);
}

#votaflow .sf-stat .number {
  color: #6366f1;
}

/* ---- BedFlow ---- */

#bedflow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 248, 0.94) 100%);
  position: relative;
  overflow: hidden;
}

#bedflow::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(15, 52, 96, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.bf-logo {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f3460, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

#bedflow .sf-feature-icon {
  background: rgba(15, 52, 96, 0.1);
}

#bedflow .sf-stat .number {
  color: #0f3460;
}

/* ---- TextMeFlow ---- */

#textmeflow {
  background:
    linear-gradient(180deg, rgba(247, 247, 248, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  position: relative;
  overflow: hidden;
}

#textmeflow::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.tf-logo {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #128c7e, #25d366);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

#textmeflow .sf-feature-icon {
  background: rgba(37, 211, 102, 0.12);
}

#textmeflow .sf-stat .number {
  color: #128c7e;
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text p {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(237, 46, 41, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-item-content p,
.contact-item-content a {
  font-size: 1rem;
  color: var(--white);
}

.contact-item-content a:hover {
  color: var(--red);
}

/* ---- Contact Form ---- */

.contact-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: var(--dark-2);
  color: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: var(--red);
}

/* ---- Cookie Banner ---- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-link {
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--red);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.contact-map {
  background: var(--dark-2);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: none;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---- Responsive ---- */

@media (max-width: 968px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sf-features {
    grid-template-columns: 1fr 1fr;
  }

  .sf-stats {
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
  }

  .sf-features {
    grid-template-columns: 1fr;
  }

  .sf-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .contact-map {
    min-height: 300px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
