/* ==========================================================================
   Elleven Acoustica - Custom Static Styling
   ========================================================================== */

/* 1. Custom Variable Tokens */
:root {
  --color-primary: #c4110e;      /* Theme Red */
  --color-secondary: #1b269a;    /* Navy Accent */
  --color-text-dark: #0a0707;    /* Charcoal/Black Text */
  --color-text-slate: #504e4a;   /* Grey Body Text */
  --color-bg-light: #f9fafb;     /* Card/Input Background */
  --color-bg-dark: #151515;      /* Dark Footer */
  --color-border: #edeff2;       /* Borders */
  --color-white: #ffffff;
  
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Roboto Slab', Georgia, serif;
  
  --container-width: 1290px;
  --header-height: 80px;
  --transition-fast: all 0.25s ease-in-out;
}

/* 2. Global Resets & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-slate);
  background-color: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.6rem); }

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

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

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

/* 3. Utility Layout Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.my-5 { margin-top: 5rem; margin-bottom: 5rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* 4. Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo img {
  max-height: 48px;
  width: auto;
}

/* Desktop Nav */
nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav.main-nav a {
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav li.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* 5. Main Site Layout */
main.site-content {
  flex-grow: 1;
}

/* 6. Footer Styles */
footer.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 40px 0;
  margin-top: auto;
}

footer.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  footer.site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links a {
  color: var(--color-primary);
  margin-right: 15px;
  font-size: 14px;
}

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

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-socials svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.copyright {
  font-size: 14px;
  color: var(--color-primary);
}

/* 7. Homepage Styles */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.hero-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* 8. Products Page Styles */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .product-card {
    flex-direction: row;
    align-items: stretch;
  }
  
  .product-image-wrapper {
    width: 45%;
    flex-shrink: 0;
  }
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.product-details h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.product-spec-list {
  list-style: none;
  margin-bottom: 25px;
}

.product-spec-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 15px;
}

.product-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* PayPal Form styling in grid */
.product-purchase form {
  display: flex;
  align-items: center;
}

.product-purchase input[type="image"] {
  height: 40px;
  width: auto;
  transition: var(--transition-fast);
}

.product-purchase input[type="image"]:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.payment-badges-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.payment-badges-wrapper img {
  height: 45px;
  object-fit: contain;
}

/* 9. About Page Styles */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 24px;
}

/* 10. Contact Page Styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

.contact-info p {
  margin-bottom: 15px;
}

/* Form Styles */
.contact-form-wrapper {
  background-color: var(--color-bg-light);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

/* 11. Gallery Grid Styles */
.gallery-section h1 {
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Simple Lightbox CSS overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 7, 7, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox:target {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

.lightbox-caption {
  color: var(--color-white);
  margin-top: 15px;
  font-size: 15px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--color-white);
  font-size: 35px;
  font-weight: 300;
  text-decoration: none;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 40px;
  font-weight: 300;
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  background-color: var(--color-primary);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* 12. Thank You & Policy Layouts */
.simple-page-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.simple-page-wrapper p {
  margin-bottom: 20px;
}

/* Mobile responsive menu overrides */
@media (max-width: 767.98px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  nav.main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
  }
  
  nav.main-nav.active {
    display: block;
  }
  
  nav.main-nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 0 24px;
    align-items: flex-start;
  }
  
  nav.main-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { right: 10px; }
  
  /* Mobile Product Card Polish */
  .product-details {
    padding: 24px;
  }
  .product-details h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  .product-spec-list {
    margin-bottom: 15px;
  }
  .product-spec-list li {
    font-size: 14px;
    padding: 5px 0;
  }
  .product-purchase {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
  }
  .product-price {
    font-size: 1.3rem;
    white-space: nowrap;
  }
}

/* ==========================================================================
   13. Motion & Animation Styles
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.animate-on-scroll.animated,
.animate-slide-left.animated,
.animate-slide-right.animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* Sequential Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Subtle Gallery Card Image Hover Zoom */
.gallery-card {
  overflow: hidden;
}
.gallery-card img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.gallery-card:hover img {
  transform: scale(1.05);
}
