/* ========================================
   J2 Sound — Global Styles
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #0d0d0d;
  --color-bg-alt: #1a1a1a;
  --color-bg-dark: #000;
  --color-accent: #E8951A;
  --color-accent-hover: #f5a623;
  --color-text: #fff;
  --color-text-secondary: #c6c6c6;
  --color-border: #333;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --header-height: 80px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--color-accent);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn--filled {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn--filled:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg-dark);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 55px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 5px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-accent);
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: -15px;
  min-width: 200px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: background var(--transition), color var(--transition);
}

.nav__dropdown a:hover {
  background: rgba(232, 149, 26, 0.1);
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger__line {
  width: 28px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--header-height);
  background: radial-gradient(ellipse at center bottom, #1a1200 0%, var(--color-bg-dark) 70%);
  text-align: center;
}

.hero__content {
  max-width: 700px;
}

.hero__logo {
  width: 180px;
  margin: 0 auto 30px;
  animation: fadeInUp 1s ease forwards;
}

.hero__title {
  margin-bottom: 15px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
}

.page-header h1 {
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

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

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

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header h2 {
  margin-bottom: 15px;
}

.section__header p {
  max-width: 600px;
  margin: 0 auto;
}

.section__divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview__content h2 {
  margin-bottom: 20px;
}

.about-preview__content p {
  margin-bottom: 25px;
}

.about-preview__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.about-preview__image span {
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.service-card__icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

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

.service-card p {
  font-size: 0.9rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1200 0%, var(--color-bg-dark) 50%, #1a1200 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-banner h2 {
  margin-bottom: 15px;
}

.cta-banner p {
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.product-card__image {
  height: 220px;
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image span {
  color: var(--color-text-secondary);
  font-style: italic;
}

.product-card__content {
  padding: 25px;
}

.product-card__content h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.product-card__content p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* ---------- Services Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail__content h3 {
  margin-bottom: 15px;
  color: var(--color-accent);
}

.service-detail__content p {
  margin-bottom: 20px;
}

.service-detail__image {
  height: 300px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__image span {
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-group .error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 5px;
}

.contact-info {
  padding: 40px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  height: fit-content;
}

.contact-info h3 {
  margin-bottom: 25px;
  color: var(--color-accent);
}

.contact-info__item {
  margin-bottom: 25px;
}

.contact-info__item h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.contact-info__item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

.contact-info__item a {
  color: var(--color-accent);
}

.map-placeholder {
  margin-top: 60px;
  height: 350px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder span {
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ---------- About Page ---------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  color: var(--color-accent);
  margin-bottom: 15px;
  margin-top: 40px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.about-value {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--color-border);
}

.about-value__icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.about-value h4 {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.about-value p {
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand p {
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer__brand img {
  height: 45px;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.footer__links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

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

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 25px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ---------- Form Success ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success h3 {
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

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

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    padding: 100px 30px 30px;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav__item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link {
    display: block;
    padding: 18px 0;
    font-size: 0.95rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 0 10px 15px;
    display: none;
  }

  .nav__item--dropdown.active .nav__dropdown {
    display: block;
  }

  .nav__dropdown a {
    padding: 10px 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-overlay--active {
    display: block;
  }

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

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

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

  .about-values {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: 130px;
  }

  .section {
    padding: 60px 0;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .lang-switcher {
    margin-right: 15px;
  }
}

/* ---------- Language Switcher ---------- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
  border-radius: 3px;
}

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

.lang-switcher svg {
  flex-shrink: 0;
}

/* ---------- EU Badge ---------- */
.eu-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 0 0;
  margin-top: 15px;
}

.eu-badge span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.eu-badge svg {
  flex-shrink: 0;
}
