:root {
  --primary: #111111;
  --primary-hover: #000000;
  --bg-dark: #ffffff;
  --bg-card: #fefefe;
  --text-primary: #111111;
  --text-secondary: #555555;
  --font-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 300; }
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }

.golden-text {
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%;
  padding: 1.5rem 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.brand-logo { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: 0.1em; display: flex; flex-direction: column; line-height: 1; color: #111; }
.brand-tagline { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.3em; color: #111; margin-top: 0.2rem; }
.nav-links { font-family: var(--font-sans); display: flex; gap: 2.5rem; align-items: center; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: #111; font-weight: 500; }
.nav-links a:not(.cta-btn) { position: relative; }
.nav-links a:not(.cta-btn)::after {
  content: ''; position: absolute; width: 0; height: 1px; bottom: 1px; left: 0;
  background-color: #fff; transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.cta-btn):hover { color: #000; text-shadow: none; }
.nav-links a:not(.cta-btn):hover::after { width: 100%; }
.cta-btn { border: 1px solid var(--primary); padding: 0.6rem 1.4rem; color: var(--primary); border-radius: 0; font-weight: 400; }
.cta-btn:hover { background: var(--primary); color: #fff; transform: none; box-shadow: none; }

/* Hero */
.hero {
  height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: #111;
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 1px solid #2a2a2a;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: background 0.5s ease;
}
.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 900px; animation: fadeIn 2s cubic-bezier(0.16, 1, 0.3, 1); margin-top: 5rem; }
.hero-title { font-size: 5rem; margin-bottom: 1.5rem; text-transform: uppercase; line-height: 1.1; color: #111; }
.hero-subtitle { font-size: 1.3rem; color: #111; margin-bottom: 3rem; font-weight: 300; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn-primary { background: transparent; color: var(--primary); border: 1px solid var(--primary); padding: 1.2rem 3rem; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.9rem; font-weight: 400; display: inline-block; border-radius: 0; transition: var(--transition-smooth); }
.btn-primary:hover { background: var(--primary); color: #fff; transform: none; box-shadow: none; }

/* Sections */
.section { padding: 8rem 2rem; }
.container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.2rem; font-style: italic; font-family: var(--font-serif); letter-spacing: 0.05em; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem;
}
.gallery-card {
  background: var(--bg-card); border-radius: 0; overflow: hidden; transition: var(--transition-smooth); border: none;
  cursor: pointer; display: flex; flex-direction: column;
}
.gallery-card:hover { border: none; transform: none; box-shadow: none; }
.card-image-wrapper {
  height: 400px; width: 100%; background: var(--bg-card); overflow: hidden; position: relative;
}
.card-image-wrapper img {
  width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease;
}
.gallery-card:hover .card-image-wrapper img { transform: none; opacity: 0.85; }
.placeholder-img { width: 100%; height: 100%; opacity: 0.5; }

.card-content { padding: 2.5rem; flex: 1; display: flex; flex-direction: column; text-align: center; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: #111; font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; }
.card-content p { font-size: 0.95rem; color: var(--text-secondary); flex: 1; margin-bottom: 1.5rem; }

/* Brand Section */
.brand-container {
  display: flex; gap: 4rem; align-items: center; justify-content: center;
}
.brand-image-col {
  flex: 1; text-align: right;
}
.founder-img {
  width: 100%; max-width: 450px; border-radius: 0; box-shadow: none; border: none; transition: var(--transition-smooth);
}
.founder-img:hover {
  transform: none; box-shadow: none; opacity: 0.9;
}
.brand-text-col {
  flex: 1.2;
}
.founder-name {
  font-family: var(--font-serif); font-size: 2.8rem; margin-bottom: 0.5rem; font-weight: 400; color: var(--text-primary); transition: color 0.5s ease;
}
.company-name {
  font-family: var(--font-sans); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--primary); margin-bottom: 2rem;
}
.brand-desc {
  font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); font-weight: 300; max-width: 550px;
}

/* Footer */
.footer { background: #fafafa; padding: 5rem 2rem; border-top: 1px solid rgba(0,0,0,0.05); text-align: center; transition: background-color 0.5s ease, border-color 0.5s ease; }
.footer-brand h2 { font-size: 2.5rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; }

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

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title { font-size: 3.5rem; }
  .section-header h2 { font-size: 2.2rem; }
  .brand-container { flex-direction: column; text-align: center; gap: 2.5rem; }
  .brand-image-col { text-align: center; }
  .brand-desc { margin: 0 auto; }
}

/* Multilingual Adjustments */
.lang-selector {
  background: transparent;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.5rem;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.lang-selector option {
  background: var(--bg-dark);
  color: #111;
}

/* Theme Overrides Removed to maintain clean Paul Smith aesthetics exclusively */
.theme-toggle { display: none !important; }

/* RTL Layout for Arabic */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-subtitle {
  margin-right: auto;
  margin-left: auto;
}

html[dir="rtl"] .card-content, html[dir="rtl"] .brand-text-col, html[dir="rtl"] .modal-content {
  text-align: right;
}
html[dir="rtl"] .brand-image-col { text-align: left; }

/* Modal Styling */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 9999; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: var(--transition-smooth);
}
.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.modal-content {
  background: #222; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 4px;
  padding: 3.5rem 3rem; max-width: 650px; width: 90%; max-height: 85vh; overflow-y: auto;
  position: relative; transform: translateY(30px); transition: var(--transition-smooth);
  box-shadow: 0 25px 60px rgba(0,0,0,0.9); text-align: left;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; transition: var(--transition-snappy);
}
.modal-close:hover { color: #fff; transform: scale(1.1); }

.modal-info-intro {
  font-size: 1.15rem; color: #d4af37; margin-bottom: 2.5rem; font-family: var(--font-serif); font-style: normal;
  border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1.5rem; line-height: 1.6; letter-spacing: 0.03em;
}

.modal-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}

.modal-info-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 2rem;
  border-radius: 4px; transition: var(--transition-snappy); display: flex; flex-direction: column;
}
.modal-info-card:hover {
  background: rgba(212, 175, 55, 0.05); border-color: rgba(212, 175, 55, 0.3); transform: translateY(-5px);
}

.product-name {
  font-family: var(--font-serif); font-size: 1.4rem; color: #fff; letter-spacing: 0.03em; margin-bottom: 0.6rem; font-weight: 400; line-height: 1.3;
}
.product-desc {
  font-family: var(--font-sans); color: #b3b3b3; font-size: 1.05rem; margin-bottom: 1.8rem; line-height: 1.7; font-weight: 300; letter-spacing: 0.02em;
}
.product-tag {
  background: rgba(212, 175, 55, 0.1); color: var(--primary); display: inline-block;
  padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.2); margin-top: auto; align-self: flex-start; margin-bottom: 1.5rem;
}
.product-photos {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; width: 100%;
  scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.product-photos::-webkit-scrollbar { height: 6px; }
.product-photos::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.4); border-radius: 3px; }
.product-photos img {
  height: 200px; width: auto; border-radius: 4px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-smooth); cursor: pointer; flex-shrink: 0;
}
.product-photos img:hover {
  transform: scale(1.03); border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 10px;
}
.hamburger span {
  display: block; width: 25px; height: 2px; background: #111; transition: var(--transition-smooth); border-radius: 0;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #111; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #111; }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh;
    background: #ffffff; flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); padding: 2rem; gap: 2rem; z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .hero-title { font-size: 3.5rem; }
  
  html[dir="rtl"] .nav-links { right: auto; left: -100%; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
  html[dir="rtl"] .nav-links.active { left: 0; }
}

@media (max-width: 768px) {
  .modal-content { padding: 2.5rem 1.5rem; }
  .hero-title { font-size: 2.8rem; }
  .section { padding: 5rem 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

html[dir="rtl"] .modal-content { text-align: right; }
html[dir="rtl"] .modal-close { right: auto; left: 1.5rem; }

/* Collection Page Layout */
.collection-main { padding-top: 80px; min-height: 100vh; background: var(--bg-dark); }
.collection-header { text-align: center; padding: 6rem 2rem 4rem; background: var(--bg-dark); border-bottom: none; transition: var(--transition-smooth); }
.collection-header h1 { font-size: 3.5rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; color: var(--text-primary); text-transform: uppercase; font-family: var(--font-sans); font-weight: 300; }
.collection-header p { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto; font-family: var(--font-sans); }
.products-list { display: flex; flex-direction: column; gap: 7rem; padding: 6rem 2rem; max-width: 1300px; margin: 0 auto; }
.product-full-section { display: grid; grid-template-columns: 350px 1fr; gap: 5rem; align-items: flex-start; border-bottom: 1px solid #eee; padding-bottom: 7rem; }
.product-full-section:last-child { border-bottom: none; padding-bottom: 0; }
.product-info-side { position: sticky; top: 120px; text-align: left; }
.product-info-side h2 { font-family: var(--font-sans); font-size: 2.8rem; margin-bottom: 0.8rem; color: var(--text-primary); transition: color 0.5s ease; font-weight: 300; text-transform: uppercase; }
.product-info-side .mat { color: var(--text-secondary); border: 1px solid #ddd; background: transparent; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 2rem; display: inline-block; padding: 0.4rem 1rem; border-radius: 0; }
.product-info-side p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2.5rem; font-size: 1.05rem; }
.product-price { font-family: var(--font-sans); font-size: 1.4rem; color: var(--text-primary); font-weight: 300; margin-bottom: 2.5rem; letter-spacing: 0.05em; font-style: italic; }
.btn-inquire { display: inline-block; background: transparent; color: var(--primary); border: 1px solid var(--primary); padding: 1rem 2.5rem; text-transform: uppercase; font-weight: 400; letter-spacing: 0.1em; font-size: 0.85rem; transition: var(--transition-smooth); cursor: pointer; border-radius: 0; }
.btn-inquire:hover { background: var(--primary); color: #fff; transform: none; box-shadow: none; }
.product-images-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-images-side img { width: 100%; border-radius: 0; object-fit: cover; transition: opacity 0.5s ease; border: none; box-shadow: none; }
.product-images-side img:hover { transform: none; opacity: 0.85; box-shadow: none; border-color: transparent; }
@media (max-width: 900px) { .product-full-section { grid-template-columns: 1fr; gap: 3rem; } .product-info-side { position: relative; top: 0; text-align: left; } .product-images-side { grid-template-columns: 1fr; } }
html[dir="rtl"] .product-info-side { text-align: right; }
