/* ==========================================================================
   AVITUL LIVING - PREMIUM STYLE SYSTEM
   ========================================================================== */

/* 1. DESIGN SYSTEM VARIABLES */
:root {
  /* Colors */
  --bg-primary: #FAF6F0;       /* Luxury Cream */
  --bg-secondary: #FFFDF9;     /* Soft Ivory */
  --bg-sidebar: #F3ECE2;       /* Warm Taupe */
  --border-color: #E2D9CB;     /* Subtle Gold-Grey border */
  
  --text-primary: #1F1B18;     /* Warm Charcoal */
  --text-secondary: #60574F;   /* Soft Muted Grey */
  --text-light: #8E8377;       /* Warm light grey for captions */
  
  --accent-blue: #14233C;      /* Classic Navy/Slate */
  --accent-blue-hover: #0A1426;
  --accent-gold: #C59D6F;      /* Antique Gold/Brass */
  --accent-gold-hover: #AA8255;
  
  --white: #FFFFFF;
  --shadow-sm: 0 4px 12px rgba(31, 27, 24, 0.05);
  --shadow-md: 0 10px 30px rgba(31, 27, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 27, 24, 0.12);
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Animation Timing */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. BASE & RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* 3. COMMON COMPONENTS & TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

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

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Section Header Layout */
.section {
  padding: 100px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  position: relative;
}

.header-pre {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--accent-blue);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-divider {
  width: 80px;
  height: 2px;
  background-color: var(--accent-gold);
  margin-top: 1.2rem;
}

.subsection-title {
  font-size: 2rem;
  color: var(--accent-blue);
  margin-bottom: 2rem;
}

/* 4. FIXED SIDEBAR NAVIGATION */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
  transition: var(--transition-smooth);
  overflow-y: auto; /* Enable scroll if dropdown menu overflows viewport */
}

/* Sidebar Custom Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

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

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
}

.logo-subtitle {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.55em;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.logo-img {
  max-width: 170px;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.03);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--accent-blue);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.nav-menu {
  margin: 50px 0;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link .indicator {
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  margin-right: 0;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-link.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.nav-link.active .indicator {
  width: 15px;
  margin-right: 10px;
}

.sidebar-footer {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  line-height: 1.8;
}

/* MAIN CONTENT WRAPPER */
.main-content {
  margin-left: 280px;
  width: calc(100% - 280px);
  position: relative;
  transition: var(--transition-smooth);
}

/* 5. HOME/HERO SECTION */
.hero-section {
  position: relative;
  height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 15s forwards;
}

@keyframes slowZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(245, 239, 230, 0.88) 0%, rgba(245, 239, 230, 0.7) 50%, rgba(245, 239, 230, 0.25) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  width: 100%;
  padding: 0 80px;
  margin: 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--accent-blue);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Animations on Hero load */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* 6. THE COLLECTIONS SECTION */
.collections-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.collections-main-tabs {
  display: flex;
  gap: 1.5rem;
}

.main-tab {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
}

.main-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: var(--transition-fast);
}

.main-tab:hover {
  color: var(--accent-blue);
}

.main-tab.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.main-tab.active::after {
  width: 100%;
}

.collections-sub-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sub-tab {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sub-tab:hover {
  border-color: var(--accent-gold);
  color: var(--accent-blue);
}

.sub-tab.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--white);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-primary);
  margin-bottom: 1.5rem;
  cursor: zoom-in;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-blue);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  text-transform: uppercase;
}

/* Service Card customization */
.service-card {
  cursor: default;
}
.service-card .product-image-wrapper {
  cursor: default;
}

.service-icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(250, 246, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
  z-index: 3;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-bg {
  color: var(--accent-gold);
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Microscopic Magnifying Lens Effect */
.magnifier-lens {
  position: absolute;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  cursor: none;
  width: 160px;
  height: 160px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0,0,0,0.1);
  background-repeat: no-repeat;
  transition: opacity 0.2s ease-in-out;
  z-index: 5;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-weight: 600;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-blue);
  line-height: 1.3;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Callout Bar */
.microscope-callout {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3.5rem;
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 2rem;
}

.callout-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.callout-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.callout-text strong {
  color: var(--accent-blue);
  font-weight: 500;
}

/* 7. ATELIER & CAPABILITIES */
.capabilities-intro {
  max-width: 800px;
  margin-bottom: 4rem;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

.journey-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.journey-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.journey-step {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(197, 157, 111, 0.15);
  font-weight: 700;
  line-height: 1;
}

.journey-icon {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.journey-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
}

.journey-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technical Artistry split section */
.technical-artistry-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.artistry-text-block {
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artistry-text-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.artistry-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.detail-row {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-row strong {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.detail-row span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.artistry-image-block {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.artistry-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artistry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 253, 249, 1) 0%, rgba(255, 253, 249, 0) 20%);
}

/* 8. CUSTOM PROJECTS SECTION */
.custom-projects-intro {
  max-width: 800px;
  margin-bottom: 4rem;
}

.custom-projects-intro h3 {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.custom-projects-intro p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.custom-split-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}

.matrix-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3rem;
}

.matrix-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 1.2rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.matrix-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.matrix-table tbody tr {
  transition: var(--transition-fast);
}

.matrix-table tbody tr:hover {
  background-color: var(--bg-primary);
}

.scope-name {
  font-weight: 500;
  color: var(--accent-blue);
}

/* Icon classes inside table */
.check-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  position: relative;
}

.check-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dash-icon {
  color: var(--text-light);
  font-weight: 300;
}

/* B2B Call to Action Card */
.cta-card {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  padding: 3.5rem 3rem;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.cta-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cta-list li {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
}

.cta-list li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

/* 9. CONTACT & SHOWROOM SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.contact-form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
}

.contact-card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.contact-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Form controls styling */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 0;
  transition: var(--transition-fast);
  outline: none;
}

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

.form-status {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.form-status.success {
  color: #2e7d32;
}
.form-status.error {
  color: #c62828;
}

/* Showroom side card info */
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showroom-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.detail-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.detail-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-item strong {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.3rem;
}

.detail-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.detail-item a:hover {
  color: var(--accent-gold);
}

/* Beautiful Abstract Vector Map */
.mock-map {
  position: relative;
  height: 250px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 1rem;
}

/* Abstract design of road grids on map */
.map-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(197, 157, 111, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 157, 111, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.8;
}

/* Diagonals / roads */
.mock-map::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 20%;
  width: 4px;
  height: 200%;
  background-color: rgba(197, 157, 111, 0.2);
  transform: rotate(35deg);
}

.mock-map::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -50%;
  width: 200%;
  height: 4px;
  background-color: rgba(197, 157, 111, 0.2);
  transform: rotate(-15deg);
}

.map-pin {
  position: absolute;
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.pin-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pin-pulse {
  position: absolute;
  top: -14px;
  left: -14px;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(197, 157, 111, 0.4);
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.map-label {
  position: absolute;
  top: calc(45% + 20px);
  left: 55%;
  transform: translateX(-50%);
  background-color: var(--accent-blue);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-weight: 500;
  z-index: 5;
}

/* 10. MODAL DIALOGS */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  background-color: rgba(31, 27, 24, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 600px;
  padding: 3.5rem;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

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

.modal-header {
  margin-bottom: 2.5rem;
}

.modal-title {
  font-size: 2.2rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* 11. RESPONSIVE MEDIA QUERIES */

/* Large Tablets & Desktop scaling */
@media (max-width: 1200px) {
  .section {
    padding: 80px 40px;
  }
  .hero-content {
    padding: 0 40px;
  }
}

/* Mobile & Small Tablets */
@media (max-width: 1024px) {
  /* Sidebar conversion to Mobile Header & Drawer */
  .sidebar {
    width: 100%;
    height: auto;
    bottom: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 30px;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
  }

  .sidebar-header {
    width: 100%;
  }

  .mobile-toggle {
    display: block;
    z-index: 101;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 300px;
    height: calc(100vh - 75px);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    margin: 0;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    z-index: 99;
  }

  .sidebar.menu-open .nav-menu {
    left: 0;
  }

  .sidebar-footer {
    display: none;
  }

  /* Hamburger transform when menu is open */
  .sidebar.menu-open .mobile-toggle .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .sidebar.menu-open .mobile-toggle .bar:nth-child(2) {
    opacity: 0;
  }
  .sidebar.menu-open .mobile-toggle .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Menu Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(31, 27, 24, 0.4);
    backdrop-filter: blur(2px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Main content offset */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 75px;
  }

  /* Hero Section Adjustment */
  .hero-section {
    height: calc(100vh - 75px);
  }
  .hero-content {
    padding: 0 30px;
    text-align: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }

  /* Splitting blocks conversion */
  .technical-artistry-container {
    grid-template-columns: 1fr;
  }
  .artistry-text-block {
    padding: 3.5rem 2.5rem;
  }
  .artistry-image-block {
    min-height: 300px;
  }
  .artistry-overlay {
    background: linear-gradient(180deg, rgba(255, 253, 249, 1) 0%, rgba(255, 253, 249, 0) 20%);
  }

  .custom-split-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-card {
    order: -1; /* Place info above contact form on mobile */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 60px 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .collections-nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .matrix-container {
    padding: 1.5rem;
  }

  .matrix-table th, .matrix-table td {
    padding: 0.8rem;
  }

  .contact-form-card {
    padding: 2.5rem 1.5rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-content {
    padding: 2.5rem 1.5rem;
    max-width: 90%;
  }

  .modal-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   12. ADMIN DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.admin-section {
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.category-tree {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tree-node {
  border-left: 2px solid var(--accent-gold);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.tree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent-blue);
  font-size: 1rem;
}

.tree-delete-btn {
  background: none;
  border: none;
  color: #c62828;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.tree-delete-btn:hover {
  color: #d32f2f;
  text-decoration: underline;
}

.tree-children {
  list-style: none;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.subcategory-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.2rem 0;
}

.subcategory-node::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10px;
  width: 6px;
  height: 1px;
  background-color: var(--border-color);
}

/* Admin Upload List */
.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  padding: 1rem;
  background-color: var(--bg-secondary);
}

.admin-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-product-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-thumb-wrapper {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.admin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-details {
  flex-grow: 1;
}

.admin-item-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent-blue);
}

.admin-item-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

.admin-item-delete {
  background: none;
  border: none;
  color: #c62828;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border: 1px solid #c62828;
  transition: var(--transition-fast);
}

.admin-item-delete:hover {
  background-color: #c62828;
  color: var(--white);
}

/* ==========================================================================
   13. ADMIN LOGIN BUTTON & USEFUL LINKS SUBMENU
   ========================================================================== */
.admin-login-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 10;
  display: inline-flex;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background-color: rgba(255, 253, 249, 0.75);
  border: 1px solid var(--accent-gold);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.admin-login-btn:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sidebar nested sub-menu dropdown */
.dropdown-item {
  display: flex;
  flex-direction: column;
}

.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.arrow-icon {
  font-size: 0.65rem;
  transition: transform 0.4s ease;
  margin-left: 0.5rem;
}

.dropdown-item.open .arrow-icon {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  margin-top: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.4s ease;
}

.dropdown-item.open .submenu {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.8rem;
}

.sub-nav-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 0.2rem 0;
  transition: var(--transition-fast);
}

.sub-nav-link::before {
  content: '-';
  color: var(--accent-gold);
  margin-right: 0.5rem;
}

.sub-nav-link:hover {
  color: var(--accent-blue);
  padding-left: 3px;
}

/* Make sure header login works nicely on smaller viewports */
@media (max-width: 1024px) {
  .admin-login-btn {
    top: 22px;
    right: 90px; /* shift left to avoid overlapping hamburger menu */
  }
}

@media (max-width: 768px) {
  .admin-login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    right: 80px;
  }
}

/* ==========================================================================
   WORKFLOW SECTION STYLING (CIRCULAR CHART & MOBILE TIMELINE)
   ========================================================================== */
.workflow-section {
  position: relative;
  overflow: hidden;
}

.workflow-circle-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  margin-top: 3rem;
}

.workflow-circle-container {
  position: relative;
  width: 480px;
  height: 480px;
  display: block;
}

.workflow-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  z-index: 5;
  transition: var(--transition-smooth);
}

.hub-step-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.hub-step-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.hub-step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.workflow-node {
  --radius: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.workflow-node:hover,
.workflow-node.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--white);
  box-shadow: 0 0 15px rgba(197, 157, 111, 0.45);
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1.15);
}

/* Mobile Timeline Layout */
.workflow-mobile-timeline {
  display: none;
  flex-direction: column;
  position: relative;
  padding-left: 2.8rem;
  margin-top: 3rem;
}

.workflow-mobile-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: var(--border-color);
}

.mobile-timeline-step {
  position: relative;
  margin-bottom: 1.5rem;
  cursor: pointer;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.mobile-timeline-step:last-child {
  margin-bottom: 0;
}

.mobile-timeline-step.active {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
  background: var(--bg-secondary);
}

.mobile-step-badge {
  position: absolute;
  top: 1.4rem;
  left: -46px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  z-index: 2;
  transition: var(--transition-smooth);
}

.mobile-timeline-step.active .mobile-step-badge {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--white);
}

.mobile-step-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 0;
  transition: var(--transition-fast);
}

.mobile-timeline-step.active .mobile-step-title {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.mobile-step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.4s ease;
}

.mobile-timeline-step.active .mobile-step-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.5rem;
}

@media (max-width: 1023px) {
  .workflow-circle-outer {
    display: none;
  }
  .workflow-mobile-timeline {
    display: flex;
  }
}

/* ==========================================================================
   CATEGORY CARDS GRID STYLING
   ========================================================================== */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  margin-top: 2.5rem;
}

.category-card-item {
  position: relative;
  height: 280px;
  background-color: var(--accent-blue);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.category-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 20, 38, 0.9) 20%, rgba(10, 20, 38, 0.2) 70%, rgba(10, 20, 38, 0.4) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition-smooth);
}

.category-card-content {
  position: relative;
  z-index: 3;
  transition: var(--transition-smooth);
}

.category-card-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.category-card-subs {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 500;
}

/* Hover effects */
.category-card-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.category-card-item:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card-item:hover::before {
  background: linear-gradient(to top, rgba(10, 20, 38, 0.95) 20%, rgba(10, 20, 38, 0.3) 70%, rgba(10, 20, 38, 0.5) 100%);
}

/* ==========================================================================
   ADMIN PORTAL MODALS
   ========================================================================== */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 38, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.35s cubic-bezier(0.25, 1, 0.3, 1);
  padding: 1.5rem;
}

.admin-modal.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

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


