/*
 * Global stylesheet for the ЮЗИНА ББ corporate website.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Colour palette */
:root {
    --primary: #0d47a1;      /* dark blue */
    --secondary: #004d40;    /* deep teal */
    --accent: #00a86b;       /* green accent */
    --accent-dark: #00975f;  /* slightly darker accent for hover states */
    --background: #ffffff;   /* page background */
    --surface: #f5f6fa;      /* light surface for cards */
    --text: #333333;         /* primary text colour */
    --muted: #666666;        /* muted text colour */
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0fff4 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Language switcher */
.lang-switch {
    font-size: 0.9rem;
    white-space: nowrap;
}

.lang-switch a {
    color: var(--text);
}

.lang-switch a:hover {
    color: var(--accent);
}

.lang-switch .active {
    font-weight: 600;
    color: var(--primary);
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--primary);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    position: relative;
    padding: 140px 20px 100px;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    color: var(--muted);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.btn.primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn.secondary:hover {
    background: var(--accent);
    color: #fff;
}

/* Pleomorphic shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.shape.shape1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 168, 107, 0.2), transparent 70%);
    top: -150px;
    left: -200px;
    animation: float1 18s infinite alternate;
}

.shape.shape2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 70% 40%, rgba(13, 71, 161, 0.2), transparent 70%);
    bottom: -200px;
    right: -180px;
    animation: float2 22s infinite alternate;
}

@keyframes float1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -40px); }
}

@keyframes float2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 50px); }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

/* Mission / Introduction section */
.intro-section {
    text-align: center;
}

.intro-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    color: var(--muted);
}

/* Services cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 40px 25px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card .material-icons {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Contact page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.contact-details .detail-title {
    font-weight: 600;
    color: var(--primary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    resize: vertical;
}

.contact-form textarea {
    min-height: 140px;
}

.contact-form button {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent-dark);
}

.map {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.contact-details,
.contact-form {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* === Footer – glassmorphic, устойчив към различни HTML структури === */
footer, .site-footer {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  padding: 40px 0;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* Контейнер и колони – работи и ако имаш .footer-container или само .container в футъра */
footer .footer-container,
.site-footer .footer-container,
footer > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Колони – ако нямаш .footer-section, стилът ще се приложи към всеки директен div в контейнера */
footer .footer-section,
.site-footer .footer-section,
footer .footer-col,
.site-footer .footer-col,
footer > .container > div {
  min-width: 220px;
  flex: 1 1 260px;
}

/* Заглавия и текст */
footer h4 {
  margin: 0 0 12px 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Премахване на булетите и подравняване на списъците */
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer li { margin: 8px 0; }

/* Линкове във футъра */
footer a {
  color: var(--text);
  opacity: 0.9;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
footer a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Долен ред: авторски права/ЕИК – центриран и по-слаб */
footer .legal, .site-footer .legal {
  width: 100%;
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* Отстояние от секцията над футъра, за да не „залепва“ за картите */
section:last-of-type { margin-bottom: 20px; }

/* Mobile */
@media (max-width: 768px) {
  footer, .site-footer { padding: 30px 0; }
  footer .footer-container, .site-footer .footer-container, footer > .container {
    gap: 20px;
  }
}
