/* 
   MATTEH OUTDOOR - Premium Styles 
   Design Inspiration: Modern, Sleek, Equinox Roof
*/

:root {
  --primary-color: #1a1a1a;
  /* Matte Black */
  --accent-color: #c5a059;
  /* Gold/Bronze for luxury feel */
  --text-color: #333333;
  --bg-color: #f3f2e9;
  --light-gray: #e9e8de;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --font-main: "Lato", sans-serif;
  --font-heading: "Playfair Display", serif;
  /* Elegant heading font */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  font-family: "Urbanist", sans-serif;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

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

.nav-link:hover::after {
  width: 100%;
}



.nav-portal-btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--accent-color);
  color: var(--white) !important;
  font-weight: 700;
  border: 2px solid var(--accent-color);
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition);
  vertical-align: middle;
}

.nav-portal-btn:hover {
  background: transparent;
  color: var(--accent-color) !important;
}

.nav-portal-btn::after {
  display: none !important;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #4a4848f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 1rem 0;
}

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

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
}

.dropdown-link:hover {
  background: var(--light-gray);
  color: var(--accent-color);
  border-left: 2px solid var(--accent-color);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  margin: 5px auto;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  height: 40vh; /* Reduced to ~1/4 of viewport */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  margin-top: 70px; /* Offset for fixed navbar */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay for text readability */
  z-index: 0;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem; /* Reduced from 4rem */
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid var(--white);
  transition: var(--transition);
}

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

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

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

/* --- Sections --- */
.section {
  padding: 3rem 0;
  background-color: var(--bg-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #1e1e1e;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* --- Products Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 300px;
  overflow: hidden;
}

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

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

.card-content {
  padding: 2rem;
  text-align: center;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.btn-text {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-text i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.btn-text:hover i {
  transform: translateX(5px);
}

/* --- About Section --- */
.about-section {
  background: var(--light-gray);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #555;
}

.about-image img {
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
  margin-top: 5px;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  background: var(--light-gray);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

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

.btn-block {
  width: 100%;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
  padding-bottom: 120px; /* Extra space for chatbot */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.footer-links a {
  margin: 0 1rem;
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
}

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

.footer-social a {
  color: var(--white);
  font-size: 1.2rem;
  margin-left: 1.5rem;
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-title {
    font-size: 3rem;
  }

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 1.5rem 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgb(67 67 67 / 54%);
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* Target the image class we added */
.logo-img {
  /* --- MAIN SIZE CONTROL --- */
  /* Change '40px' to whatever height fits your navbar best. */
  height: 40px;

  /* Keep width set to 'auto'. This ensures the image doesn't 
       get squished or stretched; it will resize proportionally. */
  width: auto;

  /* Optional: Adjust space between image and text */
  margin-right: 10px;
}

/* --- Before & After Slider --- */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  cursor: ew-resize;
  /* East-West resize cursor */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.ba-base-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  /* Initial position */
  height: 100%;
  overflow: hidden;
  /* Border right is handled by the handle element, but we can add a subtle one here if needed */
}

.ba-top-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: unset;
  /* Allow image to exceed overlay container */
  /* Width will be set by JS to match container */
  user-select: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 40px;
  /* Interaction area */
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  /* Let events pass through to slider container */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ba-handle-line {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--white);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.ba-handle-circle {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-circle i {
  font-size: 0.8rem;
  margin: 0 2px;
}
/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border: 4px solid var(--white);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--accent-color);
}
/* --- Buttons & Links --- */
.catalog-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  display: inline-block;
  transition: var(--transition);
  font-weight: 700;
}

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

.catalog-button i {
  margin-right: 8px;
  color: #ff3b30; /* PDF Red */
}

.catalog-button:hover i {
  color: var(--white);
}

/* --- Warranty Section --- */
.warranty-section {
  position: relative;
  overflow: hidden;
}

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.warranty-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.2);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.warranty-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.warranty-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.warranty-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.warranty-card p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
}
