/* ============================================
   ATELIER HORIZON — Complete Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy: #0a1628;
  --navy-light: #122040;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --gold-dark: #a07840;
  --ivory: #f5f0e8;
  --ivory-dark: #ede5d8;
  --charcoal: #1a1a2e;
  --white: #ffffff;
  --gray-100: #f8f8f6;
  --gray-300: #d4d0c8;
  --gray-500: #8a8070;
  --gray-700: #4a4540;
  --text-dark: #1a1412;
  --text-mid: #4a4540;
  --text-light: #8a8070;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 80px;
  --topbar-h: 40px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 4px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

.section-tag { display: inline-block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--navy); margin-bottom: 1rem; }
.section-subtitle { font-size: 1rem; color: var(--text-mid); max-width: 560px; line-height: 1.7; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--radius); transition: var(--transition); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--ivory); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-danger { background: #f44336; color: var(--white); }
.btn-danger:hover { background: #d32f2f; transform: translateY(-2px); }

/* TOP BAR */
.topbar { height: var(--topbar-h); background: var(--navy); display: flex; align-items: center; position: relative; z-index: 200; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.topbar-left { font-size: 0.78rem; color: var(--gold-light); letter-spacing: 0.05em; font-style: italic; font-family: var(--font-display); }
.topbar-right { display: flex; gap: 24px; align-items: center; }
.topbar-right a { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--gray-300); transition: color var(--transition); }
.topbar-right a:hover { color: var(--gold); }
.topbar-right a svg { width: 14px; height: 14px; }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--white); height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid var(--ivory-dark); transition: box-shadow var(--transition), background var(--transition); }
.navbar.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }

.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; flex-shrink: 0; }
.logo-main { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; }
.logo-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.nav-menu { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.nav-item { position: relative; }

.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 11px; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dark); transition: color var(--transition); white-space: nowrap; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 11px; right: 11px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .chevron { width: 11px; height: 11px; transition: transform var(--transition); }
.nav-item:hover .chevron { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--ivory-dark); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition); z-index: 200; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item a { display: block; padding: 10px 20px; font-size: 0.82rem; color: var(--text-mid); transition: all var(--transition); border-bottom: 1px solid var(--ivory-dark); }
.dropdown-item:last-child a { border-bottom: none; }
.dropdown-item a:hover { color: var(--gold); background: var(--ivory); padding-left: 28px; }

.mega-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-8px); width: 860px; max-width: 95vw; background: var(--white); border: 1px solid var(--ivory-dark); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 200; padding: 24px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold-light); padding-bottom: 8px; margin-bottom: 10px; }
.mega-col a { display: block; padding: 5px 0; font-size: 0.78rem; color: var(--text-mid); transition: color var(--transition); }
.mega-col a:hover { color: var(--gold); padding-left: 6px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border: 1.5px solid var(--navy); border-radius: var(--radius); transition: all var(--transition); }
.admin-btn:hover { background: var(--navy); color: var(--white); }
.admin-btn svg { width: 13px; height: 13px; }

.login-btn { display: flex; align-items: center; gap: 7px; padding: 8px 18px; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: var(--navy); border: 1.5px solid var(--navy); border-radius: var(--radius); transition: all var(--transition); cursor: pointer; }
.login-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.login-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: var(--radius); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; position: fixed; top: calc(var(--topbar-h) + var(--nav-h)); left: 0; right: 0; bottom: 0; background: var(--white); overflow-y: auto; z-index: 99; padding: 16px; }
.mobile-nav.open { display: block; }
.mobile-nav-item { border-bottom: 1px solid var(--ivory-dark); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-size: 0.88rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); cursor: pointer; }
.mobile-sub { display: none; padding: 4px 0 12px 16px; }
.mobile-sub.open { display: block; }
.mobile-sub a { display: block; padding: 8px 0; font-size: 0.82rem; color: var(--text-mid); border-bottom: 1px solid var(--ivory-dark); }
.mobile-sub a:hover { color: var(--gold); }
.mobile-sub-group-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); padding: 10px 0 4px; }

/* HERO */
.hero { position: relative; height: calc(100vh - var(--topbar-h) - var(--nav-h)); min-height: 560px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,22,40,0.78) 0%, rgba(10,22,40,0.3) 60%, transparent 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; color: var(--white); }
.hero-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; opacity: 0; animation: fadeInUp 0.8s 0.3s forwards; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 300; line-height: 1.1; margin-bottom: 20px; opacity: 0; animation: fadeInUp 0.8s 0.5s forwards; }
.hero-title span { color: var(--gold-light); }
.hero-desc { font-size: clamp(0.9rem, 1.5vw, 1.05rem); color: rgba(255,255,255,0.85); max-width: 520px; margin-bottom: 36px; line-height: 1.7; opacity: 0; animation: fadeInUp 0.8s 0.7s forwards; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeInUp 0.8s 0.9s forwards; }
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all var(--transition); }
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.hero-arrows { position: absolute; bottom: 28px; right: 5%; display: flex; gap: 10px; }
.hero-arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-arrow svg { width: 16px; height: 16px; }

/* SECTION COMMON */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--navy); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-images { position: relative; height: 520px; }
.about-img-main { position: absolute; top: 0; left: 0; width: 72%; height: 78%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-secondary { position: absolute; bottom: 0; right: 0; width: 52%; height: 55%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--white); }
.about-img-main img, .about-img-secondary img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.about-img-main:hover img, .about-img-secondary:hover img { transform: scale(1.04); }
.about-badge { position: absolute; top: 50%; right: -24px; transform: translateY(-50%); background: var(--gold); color: var(--navy); width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--font-display); font-weight: 600; line-height: 1.1; box-shadow: var(--shadow-md); z-index: 2; }
.about-badge-num { font-size: 1.8rem; }
.about-badge-text { font-size: 0.6rem; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.about-text p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.8; font-size: 0.95rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--ivory-dark); }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* PRODUCTS */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.product-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; cursor: pointer; box-shadow: var(--shadow-sm); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover img { transform: scale(1.06); }
.product-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.2) 50%, transparent 100%); transition: background var(--transition); }
.product-card:hover .product-card-overlay { background: linear-gradient(to top, rgba(10,22,40,0.94) 0%, rgba(10,22,40,0.45) 65%, transparent 100%); }
.product-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; color: var(--white); }
.product-card-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.product-card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; }
.product-card-count { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.product-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); opacity: 0; transform: translateY(8px); transition: all var(--transition); }
.product-card:hover .product-card-link { opacity: 1; transform: translateY(0); }

/* FABRICS */
.fabrics-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.fabric-card { background: var(--white); border: 1px solid var(--ivory-dark); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: all var(--transition); cursor: pointer; }
.fabric-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.fabric-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ivory); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; transition: background var(--transition); }
.fabric-card:hover .fabric-icon { background: var(--gold-light); }
.fabric-icon svg { width: 22px; height: 22px; color: var(--gold); }
.fabric-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.fabric-desc { font-size: 0.78rem; color: var(--text-light); line-height: 1.6; }

/* PROCESS */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.process-card { position: relative; padding: 36px 28px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--ivory-dark); overflow: hidden; transition: all var(--transition); }
.process-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.process-num { position: absolute; top: 16px; right: 20px; font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--ivory-dark); line-height: 1; transition: color var(--transition); }
.process-card:hover .process-num { color: var(--gold-light); }
.process-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.process-icon svg { width: 20px; height: 20px; color: var(--gold); }
.process-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.process-desc { font-size: 0.83rem; color: var(--text-mid); line-height: 1.7; }

/* DESIGN GALLERY */
.gallery-grid { columns: 4; column-gap: 14px; margin-top: 48px; }
.gallery-item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(10,22,40,0.55); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { width: 36px; height: 36px; color: var(--white); }
.gallery-video-item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.gallery-video-item video { width: 100%; height: auto; display: block; }
.video-play-overlay { position: absolute; inset: 0; background: rgba(10,22,40,0.45); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.gallery-video-item:hover .video-play-overlay { background: rgba(10,22,40,0.25); }
.play-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; }
.play-btn svg { width: 20px; height: 20px; color: var(--navy); margin-left: 3px; }
.gallery-item-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(to top, rgba(10,22,40,0.8), transparent); color: var(--white); font-size: 0.72rem; }
.gallery-empty { text-align: center; padding: 80px 24px; color: var(--text-light); font-style: italic; font-size: 1rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info p { color: var(--text-mid); margin-bottom: 32px; line-height: 1.8; font-size: 0.95rem; }
.office-card { background: var(--ivory); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 14px; border-left: 3px solid var(--gold); }
.office-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.office-name { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.office-addr { font-size: 0.82rem; color: var(--text-mid); line-height: 1.7; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dark); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1.5px solid var(--ivory-dark); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-dark); background: var(--white); transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; padding: 14px; background: rgba(201,169,110,0.1); border: 1px solid var(--gold-light); border-radius: var(--radius); color: var(--gold-dark); font-size: 0.88rem; text-align: center; margin-top: 12px; }

/* FOOTER */
.footer { background: var(--charcoal); color: var(--gray-300); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-sub { color: var(--gold); }
.footer-brand p { font-size: 0.83rem; color: var(--gray-500); line-height: 1.7; margin-top: 14px; margin-bottom: 22px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: all var(--transition); color: var(--gray-300); }
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social-link svg { width: 15px; height: 15px; }
.footer-col-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.82rem; color: var(--gray-500); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.81rem; color: var(--gray-500); line-height: 1.6; }
.footer-contact-item svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 0.76rem; color: var(--gray-700); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img, .lightbox-content video { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.4rem; cursor: pointer; transition: background var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-caption { position: absolute; bottom: -32px; left: 0; right: 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

/* TOAST */
.toast { position: fixed; bottom: 32px; right: 32px; background: var(--navy); color: var(--white); padding: 14px 24px; border-radius: var(--radius); font-size: 0.88rem; box-shadow: var(--shadow-lg); z-index: 2000; transform: translateY(100px); opacity: 0; transition: all 0.35s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #4caf50; }
.toast.error { border-left: 4px solid #f44336; }

/* PAGE BANNER */
.page-banner { height: 340px; position: relative; overflow: hidden; display: flex; align-items: center; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.45) 100%); }
.page-banner-content { position: relative; padding: 0 8%; color: var(--white); }
.page-banner-content h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; margin-bottom: 10px; }
.page-banner-content p { font-size: 0.95rem; opacity: 0.8; max-width: 480px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ITEMS GRID (sub-pages) */
.items-section { padding: 72px 0; }
.items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.item-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); cursor: pointer; background: var(--white); border: 1px solid var(--ivory-dark); }
.item-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.item-card-img { aspect-ratio: 1; overflow: hidden; background: var(--ivory); display: flex; align-items: center; justify-content: center; }
.item-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.item-card:hover .item-card-img img { transform: scale(1.05); }
.item-card-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-light); font-size: 0.78rem; text-align: center; padding: 16px; }
.item-card-placeholder svg { width: 36px; height: 36px; opacity: 0.35; }
.item-card-body { padding: 16px; }
.item-card-name { font-family: var(--font-display); font-size: 1rem; color: var(--navy); }

/* ADMIN LOGIN */
.admin-login-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-box { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); text-align: center; }
.admin-login-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; margin-bottom: 4px; }
.admin-login-logo-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 32px; display: block; }
.admin-login-box h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 6px; }
.admin-login-box p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 32px; }
.admin-error { display: none; background: #fff0f0; border: 1px solid #ffcccc; color: #cc3333; padding: 12px; border-radius: var(--radius); font-size: 0.83rem; margin-bottom: 16px; text-align: left; }

/* ADMIN DASHBOARD */
.admin-layout { display: none; min-height: 100vh; }
.admin-sidebar { position: fixed; top: 0; left: 0; width: 256px; height: 100vh; background: var(--navy); display: flex; flex-direction: column; padding: 24px 0; overflow-y: auto; z-index: 50; }
.admin-sidebar-logo { padding: 0 20px; margin-bottom: 28px; }
.admin-sidebar-logo .logo-main { color: var(--white); font-size: 1.4rem; }
.admin-sidebar-logo .logo-sub { color: var(--gold); }
.sidebar-section-title { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.35); padding: 12px 20px 4px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.6); transition: all var(--transition); cursor: pointer; border-left: 3px solid transparent; }
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-nav-item.active { color: var(--white); background: rgba(255,255,255,0.1); border-left-color: var(--gold); }
.admin-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.admin-sidebar-footer { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-main { margin-left: 256px; padding: 32px; min-height: 100vh; background: var(--gray-100); }
.admin-page-header { margin-bottom: 28px; }
.admin-page-header h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); }
.admin-page-header p { font-size: 0.88rem; color: var(--text-light); margin-top: 4px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.admin-stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold); }
.admin-stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--navy); line-height: 1; }
.admin-stat-card .label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.upload-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.upload-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--ivory-dark); }
.drop-zone { border: 2px dashed var(--ivory-dark); border-radius: var(--radius-lg); padding: 44px 24px; text-align: center; transition: all var(--transition); cursor: pointer; background: var(--gray-100); }
.drop-zone.dragover { border-color: var(--gold); background: rgba(201,169,110,0.06); }
.drop-zone svg { width: 38px; height: 38px; color: var(--text-light); margin: 0 auto 10px; }
.drop-zone p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 6px; }
.drop-zone span { font-size: 0.76rem; color: var(--text-light); }
.drop-zone input[type="file"] { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 18px; }
.preview-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--ivory); }
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-remove { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.65); color: var(--white); font-size: 0.7rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.admin-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.admin-gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-gallery-item img, .admin-gallery-item video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.admin-gallery-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: opacity var(--transition); }
.admin-gallery-item:hover .admin-gallery-item-overlay { opacity: 1; }
.admin-gallery-item-label { padding: 4px 8px; background: rgba(255,255,255,0.95); font-size: 0.66rem; color: var(--text-dark); border-radius: 2px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.delete-btn { width: 30px; height: 30px; border-radius: 50%; background: #f44336; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.delete-btn:hover { background: #d32f2f; }
.delete-btn svg { width: 13px; height: 13px; }
.section-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip { padding: 5px 13px; border-radius: 20px; font-size: 0.73rem; border: 1.5px solid var(--ivory-dark); color: var(--text-mid); cursor: pointer; transition: all var(--transition); background: var(--white); }
.filter-chip.active, .filter-chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.08); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .fabrics-strip { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .items-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { columns: 3; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu { width: 680px; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; --topbar-h: 36px; }
  .topbar-left { display: none; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 300px; }
  .about-badge { right: 8px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fabrics-strip { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-main { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .fabrics-strip { grid-template-columns: repeat(2, 1fr); }
  .items-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .admin-stats-grid { grid-template-columns: 1fr; }
}

/* ── Fabric Card (fabrics.html full page) ── */
.fabric-card {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-lg);
  padding: 0 0 24px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.fabric-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.fabric-card-img { height: 200px; overflow: hidden; }
.fabric-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.fabric-card:hover .fabric-card-img img { transform: scale(1.05); }
.fabric-card-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--ivory); border-radius: 50%; margin: 20px 24px 12px; }
.fabric-card-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); padding: 0 24px; margin-bottom: 10px; }
.fabric-card-desc { font-size: 0.82rem; color: var(--text-mid); line-height: 1.7; padding: 0 24px; flex: 1; }
.fabric-card-uses { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px 0; }
.fabric-use-tag { padding: 4px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ivory); color: var(--gold-dark); border: 1px solid var(--gold-light); }

/* ── Process Card (process.html full page) ── */
.process-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--ivory-dark); line-height: 1; margin-bottom: 12px; }
.process-card-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.process-card-desc { font-size: 0.83rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.process-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.section-header { max-width: 720px; margin-bottom: 8px; }

/* ── Process Video Cards ── */
.proc-vid-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.proc-vid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border-color: var(--gold);
}
.proc-vid-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.proc-vid-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proc-vid-body {
  padding: 20px 22px 22px;
}
.proc-vid-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.proc-vid-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}
.proc-vid-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 14px;
}
.proc-vid-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proc-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(201,169,110,0.18);
  color: var(--gold-light);
  border: 1px solid rgba(201,169,110,0.35);
}

@media (max-width: 900px) {
  .proc-vid-card-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 560px) {
  .proc-vid-card-grid { grid-template-columns: 1fr !important; }
}

/* ── Fabric Background Scrolling Strip ── */
.fab-bg-track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100%;
  animation: fabScroll 40s linear infinite;
}

.fab-bg-track img {
  height: 100%;
  width: auto;
  min-width: 260px;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(0.7);
}

@keyframes fabScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
