/* Surfaces 9 - Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #1a2332;
  --gold: #c4a55a;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(26, 35, 50, 0.1);
  --shadow-hover: 0 8px 30px rgba(26, 35, 50, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

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

.section {
  padding: 5rem 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--medium-gray);
  z-index: 1000;
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--navy);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #b8954d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(196, 165, 90, 0.1) 0%, 
    rgba(26, 35, 50, 0.05) 50%,
    rgba(196, 165, 90, 0.1) 100%);
  z-index: 1;
}

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

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Product Grid */
.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 200px;
  background: linear-gradient(45deg, var(--gold), #d4b36a);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(0, 0, 0, 0.1) 100%);
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.product-category {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.product-details {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--light-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--navy);
}

/* Filter Sidebar */
.filters {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section h4 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-option input[type="checkbox"] {
  accent-color: var(--gold);
}

/* Search */
.search-bar {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.search-bar:focus {
  outline: none;
  border-color: var(--gold);
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(196, 165, 90, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animate {
  opacity: 0;
  transform: translateY(30px);
}

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

/* Modal for Product Details */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 35, 50, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  padding: 2rem;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  border-radius: 15px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--navy);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .modal-content {
    padding: 2rem;
    margin: 1rem;
  }
}

/* Product page specific */
.products-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
  height: calc(100vh - 120px);
}

.products-main {
  height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.products-main::-webkit-scrollbar {
  width: 6px;
}

.products-main::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.products-main::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.filters {
  position: sticky;
  top: 100px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.filters::-webkit-scrollbar {
  width: 4px;
}

.filters::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .filters {
    position: static;
    height: auto;
    max-height: none;
  }
  
  .products-main {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
}

/* SVG Icon styles */
.icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  fill: currentColor;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--gold);
}

/* Team cards */
.team-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--gold);
}

/* Gallery grid with real images */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(26, 35, 50, 0.85));
  color: white;
}

/* Hero with background image */
.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(26, 35, 50, 0.6) 100%);
  z-index: 1;
}