/* TCI Atelier Limited, Main Stylesheet */

:root {
  --black: #0b0b0b;
  --charcoal: #171614;
  --gold: #c9a227;
  --gold-light: #e6c869;
  --cream: #f7f4ec;
  --cream-dim: #ece6d6;
  --grey: #8a8578;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, sans-serif;

  --max-width: 1180px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { color: #3d3a34; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.gold-rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 18px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--black); color: var(--cream); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,11,11,0.96);
  border-bottom: 1px solid rgba(201,162,39,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo { height: 52px; width: auto; filter: brightness(0) invert(1); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none !important;
}
.nav-cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.75) 0%, rgba(11,11,11,0.55) 45%, rgba(11,11,11,0.92) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-content h1 { color: var(--cream); }

.hero-content p.lead {
  color: var(--cream-dim);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 18px 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201,162,39,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 40%, black 70%, transparent);
}

/* Sections */
section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--black); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: var(--cream-dim); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* About snippet / two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--radius); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201,162,39,0.25);
}
.service-card {
  background: var(--black);
  padding: 40px 32px;
  transition: background 0.25s ease;
}
.service-card:hover { background: #1c1a15; }
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.service-card h3 { margin: 16px 0 10px; }
.service-card p { font-size: 0.94rem; }

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-item { padding-left: 20px; border-left: 2px solid var(--gold); }
.why-item h4 { font-family: var(--font-body); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; color: var(--black); margin-bottom: 8px; }
.why-item p { font-size: 0.94rem; }

/* Products */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 30px;
  padding: 13px 20px;
  max-width: 440px;
  margin-bottom: 24px;
  color: var(--grey);
}
.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
  color: var(--charcoal);
}
.search-bar:focus-within { border-color: var(--gold); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-bar button {
  padding: 9px 20px;
  border: 1px solid var(--grey);
  background: transparent;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.2s ease;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--black); color: var(--gold-light); border-color: var(--black); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.1); }

.product-image-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-dim);
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.product-image-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-image-trigger:hover img { transform: scale(1.04); }

.gallery-zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11,11,11,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
.gallery-dot.active { background: var(--gold-light); transform: scale(1.3); }

.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.product-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-body p.desc { font-size: 0.9rem; color: var(--grey); flex: 1; margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; flex-wrap: wrap; }
.product-price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.product-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-whatsapp:hover { background: var(--gold); color: var(--black); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--grey); }

/* Product photo gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(11,11,11,0.92); }
.lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(11,11,11,0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--gold); color: var(--black); }
.lightbox-image-wrap {
  position: relative;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  max-height: 62vh;
}
.lightbox-image-wrap img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox-nav:hover { background: var(--gold); color: var(--black); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
  background: var(--cream);
}
.lightbox-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(11,11,11,0.18);
  cursor: pointer;
}
.lightbox-dots .dot.active { background: var(--gold); }
.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px 22px;
}
.lightbox-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--black); }
.lightbox-price { font-size: 0.9rem; color: var(--grey); margin-top: 4px; }

@media (max-width: 720px) {
  .lightbox { padding: 0; }
  .lightbox-content { max-height: 100vh; border-radius: 0; height: 100%; }
  .lightbox-image-wrap { max-height: 48vh; }
  .lightbox-image-wrap img { max-height: 48vh; }
  .lightbox-info { flex-direction: column; align-items: stretch; }
  .lightbox-info .btn { width: 100%; justify-content: center; }
}

/* CTA band */
.cta-band {
  background: var(--gold);
  color: var(--black);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: var(--black); }
.cta-band p { color: #34290a; margin: 16px 0 28px; }

/* Footer */
.site-footer { background: var(--black); color: var(--cream-dim); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-tagline { font-size: 0.9rem; color: var(--grey); max-width: 260px; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-light); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: var(--grey); margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.78rem; color: var(--grey); }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 300;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

.scroll-top-btn {
  position: fixed;
  bottom: 104px;
  right: 26px;
  width: 46px;
  height: 46px;
  background: var(--black);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 310;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { background: var(--gold); color: var(--black); }

@media (max-width: 720px) {
  .scroll-top-btn { bottom: 98px; right: 20px; width: 42px; height: 42px; }
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--black);
  color: var(--cream);
  padding: 140px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--cream); }
.page-hero p { color: var(--cream-dim); max-width: 560px; margin: 16px auto 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-card {
  background: var(--white);
  padding: 34px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 18px;
}
.contact-card h4 { font-family: var(--font-body); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 8px; }
form.contact-form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--charcoal);
}
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 20px;
  background: var(--white);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--grey); margin-top: -6px; margin-bottom: 20px; }

.image-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.image-manager-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--cream);
}
.image-manager-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.image-manager-item .image-radio,
.image-manager-item .image-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
  color: var(--charcoal);
  cursor: pointer;
}
.image-manager-item .image-radio input,
.image-manager-item .image-remove input {
  width: auto;
  margin: 0;
}
.image-manager-item .image-remove { color: #a11; }
.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.92rem; }
.alert-success { background: #e9f7ec; color: #1c5c2c; border: 1px solid #b6e2c1; }
.alert-error { background: #fbeaea; color: #7a1f1f; border: 1px solid #f0bcbc; }

/* Admin */
.admin-body { background: var(--cream); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--black);
  color: var(--cream);
  padding: 30px 24px;
  flex-shrink: 0;
}
.admin-sidebar img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 30px; }
.admin-sidebar a {
  display: block;
  padding: 12px 10px;
  font-size: 0.9rem;
  color: var(--cream-dim);
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(201,162,39,0.15); color: var(--gold-light); }
.admin-main { flex: 1; padding: 40px; max-width: 1000px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-card { background: var(--white); border: 1px solid rgba(0,0,0,0.08); padding: 30px; border-radius: var(--radius); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 0.92rem; }
.admin-table th { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--grey); }
.admin-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.tag-featured { background: var(--gold); color: var(--black); font-size: 0.7rem; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
.action-links a { font-size: 0.82rem; margin-right: 14px; color: var(--charcoal); text-decoration: underline; }
.action-links a.danger { color: #a11; }
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 24px;
}
.login-card {
  background: var(--cream);
  padding: 46px 40px;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  text-align: center;
}
.login-card img { height: 54px; margin: 0 auto 24px; filter: none; }
.login-card form { text-align: left; margin-top: 24px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: -10px 0 20px; }
.checkbox-row input { width: auto; margin: 0; }
.checkbox-row label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.88rem; }

/* Responsive */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 200px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 26px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    border-bottom: 1px solid rgba(201,162,39,0.25);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; overflow-x: auto; }
  .admin-sidebar img { margin-bottom: 0; }
  .admin-sidebar a { white-space: nowrap; }
  .admin-main { padding: 24px; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}
