/* ============================================
   MUSAK GROUP - Main Stylesheet
   ============================================ */

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

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-accent: #c8a84e;
  --color-accent-hover: #ddbf6a;
  --color-border: #2a2a2a;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', Helvetica, sans-serif;
  --max-width: 1280px;
  --nav-height: 100px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.4s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 90px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.3rem 0;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 2rem;
  animation: fadeUp 1s ease-out;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  margin-top: var(--nav-height);
  padding: 5rem 0 3rem;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 1rem;
}

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

/* ============================================
   PRODUCT CARDS (homepage preview + products page)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 350px));
  gap: 2rem;
  justify-content: center;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: transform var(--transition), border-color var(--transition);
}

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

.product-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card-body .btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.6rem 1.5rem;
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  text-align: center;
}

.service-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  filter: brightness(0.9);
  transition: filter var(--transition);
}

.service-card:hover .service-card-img {
  filter: brightness(1);
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION / PAGE
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.about-text .signature {
  margin-top: 2rem;
  font-style: italic;
  color: var(--color-text);
  font-size: 0.95rem;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner-content h2 {
  margin-bottom: 1rem;
}

.cta-banner-content p {
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-info .detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.contact-info .detail span {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  outline: none;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #555;
}

.contact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: calc(var(--nav-height) + 3rem);
}

.product-detail-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.product-detail-text h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.product-detail-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo img {
  height: 70px;
  margin: 0 auto 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: #555;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .about-split,
  .contact-grid,
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image img,
  .product-detail-img {
    height: 350px;
  }

  .product-detail {
    padding-top: calc(var(--nav-height) + 2rem);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 9999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.4rem;
    color: var(--color-text);
    letter-spacing: 0.15em;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-accent);
  }

  /* Close button inside mobile menu */
  .nav-links::before {
    content: "\2715";
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    pointer-events: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 10000;
  }

  .hero {
    height: 70vh;
  }

  .section {
    padding: 4rem 0;
  }

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

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

  .container {
    padding: 0 1.25rem;
  }

  .footer-links {
    gap: 1.2rem;
  }

  .footer-links a {
    font-size: 0.72rem;
  }
}
