/* ==========================================================================
   Mihri Tekstil - Haute Tulle & Broderie Design System Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --sapphire-deep: #0A131F;
  --midnight: #0D1B2A;
  --heritage-blue: #274060;
  --sapphire-soft: #334E68;
  
  --secondary-gold: #C5A880;
  --champagne-sheen: #E2D3B8;
  --champagne-light: #F7F3EB;
  
  --pearl-base: #FAF8F5;
  --surface-low: #F4F3F0;
  --surface-card: #FFFFFF;
  --linen-border: #E4DFD7;
  --linen-border-light: rgba(228, 223, 215, 0.6);
  
  --text-main: #1A1C1A;
  --text-muted: #44474C;
  --text-light: #74777D;

  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  
  --container-max: 84rem; /* 1344px */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility Focus Visible */
*:focus-visible {
  outline: 2px solid var(--secondary-gold);
  outline-offset: 3px;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--sapphire-deep);
  color: #fff;
  padding: 10px 18px;
  z-index: 9999;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 20px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--pearl-base);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Headings Typography */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

/* Material Symbols alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* Tailored Textile Card Hovers */
.textile-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.textile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(10, 19, 31, 0.08), 0 2px 6px rgba(10, 19, 31, 0.03);
  border-color: var(--secondary-gold);
}

.textile-image-wrap {
  position: relative;
  overflow: hidden;
}
.textile-image-wrap img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.textile-card:hover .textile-image-wrap img {
  transform: scale(1.06);
}

/* Gold Gradient Accents */
.gold-gradient-text {
  background: linear-gradient(135deg, #E5C378 0%, #C5A059 40%, #F3E7C4 70%, #99732B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header Glassmorphism */
.header-glass {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--linen-border-light);
}

/* Sub-nav indicator */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--secondary-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Active Nav State */
.nav-link.active {
  color: var(--secondary-gold) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F4F3F0;
}
::-webkit-scrollbar-thumb {
  background: #D5CABB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C5A880;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.5);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Logo Sizing Classes (Replacing Inline Styles) */
.header-logo {
  height: 64px !important;
  max-height: 66px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.mobile-drawer-logo {
  height: 48px !important;
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.footer-logo {
  height: 60px !important;
  max-height: 64px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Background Image Classes (Replacing Inline Styles) */
.hero-bg-overlay {
  background-image: url('../img/hero-bg-mobile.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .hero-bg-overlay {
    background-image: url('../img/hero-bg.jpg');
    background-position: right center;
  }
}

.atelier-bg-overlay {
  background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuAm07uYa0HuXwzKNacsWyHGYODoH2en0nfBTRe-O-5gM7-03EJy-zLzpb7-ZPC_vSgRe0kkYU8l9B3O9PbXCEVi2RrSVu0bL0rFmfN1Czuk4ywonlFl3VQf1IMGeRKdnjYxrrRJiYSlWeJ6wxx7jERi24_pj7dWzs_aAPgn8H2FAqHOiyE3DXKGOaVfGV5eCoZe0jgc6m-SjD0fDahCvUSQ5aYJlj69olflSuwfbeiO8lwlIuUl_90E');
}

/* Map Iframe Styling (Replacing Inline Styles) */
.map-iframe {
  border: 0;
  min-height: 280px;
  width: 100%;
  height: 100%;
}

/* Obfuscated Email Protection (Anti-harvesting & SEOptimer plain text email fix) */
.email-protect {
  cursor: pointer;
  transition: color 0.2s ease;
}
.email-protect:hover .email-display {
  color: var(--secondary-gold);
}
