/* === EUROWIND KFT — Site Styles === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  --navy: #1C3A5A;
  --navy-dark: #0F2236;
  --blue-mid: #2D5578;
  --red: #E60E0E;
  --red-hover: #C40B0B;
  --red-light: rgba(230, 14, 14, 0.08);
  --steel-light: #E1EAF0;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #1A1A1A;
  --text-muted: #5A6374;
  --border: #DEE2E8;
  --success: #2a7a3b;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-dark); color: #fff; }
.section-red { background: var(--red); color: #fff; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-dark .section-label { color: var(--steel-light); }
.section-red .section-label { color: rgba(255,255,255,0.7); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-red .section-subtitle { color: rgba(255,255,255,0.85); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: var(--transition); white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(230,14,14,0.3); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--steel-light); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* --- Navigation --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy-dark);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-lang { display: flex; gap: 2px; }
.nav-lang button {
  color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 700;
  padding: 4px 8px; border-radius: 4px; transition: var(--transition);
}
.nav-lang button:hover { color: rgba(255,255,255,0.8); }
.nav-lang button.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav-cta { display: none; }
@media (min-width: 1080px) {
  .nav-cta { display: inline-flex; }
}
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
@media (max-width: 959px) { .nav-links { display: none; } }

/* Mobile Nav Drawer */
#mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy-dark); transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 80px 32px 32px;
  overflow-y: auto;
}
#mobile-nav.open { transform: translateX(0); }
#mobile-nav a {
  display: block; color: rgba(255,255,255,0.8); font-size: 1.1rem;
  font-weight: 600; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
#mobile-nav a:hover { color: #fff; }
.mobile-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 1.5rem; padding: 8px;
}

/* --- Hero --- */
.hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center;
  background: var(--navy-dark); color: #fff;
  padding-top: 64px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 60%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,34,54,0.88) 0%, rgba(15,34,54,0.7) 45%, rgba(15,34,54,0.2) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 60px 0; }
.hero > .container { max-width: none; margin: 0; padding: 0 48px; }
.hero-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); background: rgba(230,14,14,0.12);
  padding: 6px 16px; border-radius: 4px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero h1 .accent { color: var(--red); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Rotating word */
.rotating-word {
  display: inline-block; position: relative;
  color: var(--red); min-width: 280px; vertical-align: bottom;
}
.rotating-word span {
  position: absolute; left: 0; opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(10px);
  white-space: nowrap;
}
.rotating-word span.active { opacity: 1; transform: translateY(0); position: relative; }

/* --- Stats Bar --- */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; padding: 40px 0;
}
.stat-item { padding: 12px 20px; }
.stat-item:not(:last-child) { border-right: 1px solid var(--border); }
.stat-number { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Cards --- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-alt); }
.card-body { padding: 20px; }
.card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.card-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); }

/* Product card specific */
.product-card { cursor: default; position: relative; display: flex; flex-direction: column; }
.product-card .card-img { height: 200px; object-fit: contain; padding: 24px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.product-card .card-pn { font-family: 'Courier New', monospace; font-size: 0.75rem; color: var(--red); margin-bottom: 4px; letter-spacing: 0.02em; }
.product-card .card-body { flex: 1; }
.product-card .card-title { font-size: 0.88rem; line-height: 1.35; }
.product-card:hover { border-color: var(--red); }
.product-card:hover .card-title { color: var(--red); }

/* Category card */
.category-card .card-img { height: 180px; object-fit: contain; padding: 20px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.category-card .card-body { padding: 16px; }
.category-card .card-count { font-size: 0.78rem; color: var(--text-muted); }
.category-card .card-arrow { color: var(--red); font-weight: 700; font-size: 1.1rem; opacity: 0; transition: var(--transition); }
.category-card:hover .card-arrow { opacity: 1; transform: translateX(4px); }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 480px) {
  .grid-4, .grid-5, .grid-3 { grid-template-columns: 1fr; }
}

/* --- Subsidiaries Section --- */
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.office-card {
  text-align: center; padding: 32px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; transition: var(--transition);
}
.office-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.office-flag { font-size: 2.2rem; margin-bottom: 12px; }
.office-country { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.office-city { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 640px) { .offices-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- CTA Section --- */
.cta-section { text-align: center; padding: 72px 24px; }
.cta-section .section-title { color: #fff; margin-bottom: 12px; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.8); margin: 0 auto 32px; }

/* --- Partners --- */
.partners-strip {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  padding: 32px 0; flex-wrap: wrap;
}
.partners-strip img { height: 48px; opacity: 0.6; transition: var(--transition); filter: grayscale(100%); }
.partners-strip img:hover { opacity: 1; filter: none; }

/* --- Footer --- */
footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  padding: 64px 0 0; font-size: 0.88rem;
}
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand-name { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-desc { color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 8px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--navy-dark); color: #fff;
  padding: 120px 0 56px; /* account for fixed nav */
}
.page-hero .section-label { color: var(--steel-light); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 500px; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.82rem; color: var(--text-muted);
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.95rem; transition: var(--transition);
  background: #fff;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,14,14,0.08);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-checkbox input { margin-top: 3px; accent-color: var(--red); }

/* --- Add to Quote Button --- */
.btn-quote { background: var(--red); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-quote:hover { background: var(--red-hover); }
.btn-quote.added { background: var(--success); pointer-events: none; }
.btn-quote svg { width: 14px; height: 14px; }

/* --- Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* --- Quote Basket (injected by JS) --- */
#basket-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(230,14,14,0.4);
  transition: var(--transition);
}
#basket-btn:hover { transform: scale(1.08); }
#basket-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--navy-dark); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
#basket-btn .badge:empty { display: none; }

#basket-overlay {
  position: fixed; inset: 0; z-index: 899;
  background: rgba(0,0,0,0.45); opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease;
}
#basket-overlay.open { opacity: 1; pointer-events: auto; }

#basket-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 901;
  width: 460px; max-width: 100vw;
  background: #fff; transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
#basket-drawer.open { transform: translateX(0); }

.basket-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.basket-header h3 { font-size: 1.1rem; font-weight: 700; }
.basket-close { font-size: 1.4rem; color: var(--text-muted); padding: 4px; }
.basket-close:hover { color: var(--text); }

.basket-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.basket-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.basket-item-info { flex: 1; }
.basket-item-pn { font-family: 'Courier New', monospace; font-size: 0.82rem; font-weight: 600; color: var(--red); }
.basket-item-name { font-size: 0.85rem; color: var(--text-muted); }
.basket-item-remove { color: var(--text-muted); font-size: 1.1rem; padding: 4px 8px; }
.basket-item-remove:hover { color: var(--red); }

.basket-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }

.basket-form { padding: 20px 24px; border-top: 1px solid var(--border); }
.basket-form .btn-red { width: 100%; justify-content: center; margin-top: 8px; }

.basket-success {
  text-align: center; padding: 48px 24px;
}
.basket-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; }
.basket-success h3 { margin-bottom: 8px; }
.basket-success p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Gallery --- */
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-tab {
  padding: 8px 20px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; transition: var(--transition);
}
.gallery-tab:hover { border-color: var(--red); color: var(--red); }
.gallery-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: var(--transition); }
.gallery-grid img:hover { opacity: 0.85; transform: scale(1.02); }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* --- Catalog Download --- */
.catalog-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); background: #fff;
}
.catalog-item:hover { border-color: var(--red); box-shadow: var(--shadow); }
.catalog-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--red-light); border-radius: 8px; color: var(--red); }
.catalog-name { flex: 1; font-weight: 600; font-size: 0.92rem; }
.catalog-dl { font-size: 0.82rem; font-weight: 600; color: var(--red); white-space: nowrap; }

/* --- Contact Info Sidebar --- */
.contact-info { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px; }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.contact-entry { margin-bottom: 20px; }
.contact-entry-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 4px; }
.contact-entry-value { font-size: 0.92rem; }
.contact-entry-value a { color: var(--text); transition: var(--transition); }
.contact-entry-value a:hover { color: var(--red); }

/* --- Office Cards (full page) --- */
.office-full-card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff;
}
.office-full-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.office-full-card .office-detail { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; }
.office-full-card .office-detail svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }

/* --- Responsive Global --- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: 75vh; }
  .hero-bg { background-position: 82% 60%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(15,34,54,0.75) 0%, rgba(15,34,54,0.5) 60%, rgba(15,34,54,0.7) 100%); }
  .hero-content { padding: 48px 0; }
  #navbar { padding: 0 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  #basket-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}
