/* ============================================================
   Zirconium Digital — Main Stylesheet
   Palette: pink → purple → red gradient on white
   ============================================================ */

:root {
  --pink:   #EC4899;
  --purple: #8B5CF6;
  --red:    #E11D48;
  --grad:   linear-gradient(100deg, var(--pink) 0%, var(--purple) 52%, var(--red) 100%);
  --grad-soft: linear-gradient(100deg, rgba(236,72,153,.08), rgba(139,92,246,.08), rgba(225,29,72,.08));

  --ink:      #1A1A22;   /* near-black headings */
  --body:     #4B4B57;   /* grey body text */
  --muted:    #8A8A96;
  --line:     #E9E7EF;
  --bg:       #FFFFFF;
  --bg-alt:   #FAF9FC;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 30, 90, .10);
  --shadow-sm: 0 4px 14px rgba(60, 30, 90, .07);
  --container: 1180px;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background-color: var(--bg);
  /* subtle texture: faint dot grid on white */
  background-image: radial-gradient(rgba(139, 92, 246, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}
.btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.btn-gradient { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(211, 44, 130, .32); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(211, 44, 130, .4); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-white { background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============================================================
   HEADER + MEGA MENU
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-gem {
  width: 26px; height: 26px;
  background: var(--grad);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  display: inline-block;
}
.brand-text { font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 24px 16px;
  color: var(--body);
  font-weight: 500;
  font-size: .95rem;
  transition: color .15s;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--purple); }
.nav-contact {
  background: var(--grad);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 22px !important;
  margin-left: 8px;
}
.caret { font-size: .7em; opacity: .6; }

/* Mega dropdown */
.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  top: 100%;
  width: min(880px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  overflow: hidden;
}
.mega-menu::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--grad);
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  padding: 26px 28px 20px;
}
.mega-heading {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.mega-col a {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--body);
  transition: background .15s;
}
.mega-col a:hover { background: var(--grad-soft); }
.mega-col strong { display: block; color: var(--ink); font-size: .9rem; }
.mega-col small { color: var(--muted); font-size: .76rem; line-height: 1.35; display: block; }
.mega-icon { font-size: 1.1rem; line-height: 1.5; }
.mega-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}
.mega-cta p { font-size: .85rem; color: var(--muted); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; margin: 5px 0;
  background: var(--ink); border-radius: 2px; transition: .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero { position: relative; height: min(78vh, 640px); min-height: 480px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 8, 30, .82) 0%, rgba(60, 20, 70, .55) 48%, rgba(20, 8, 30, .25) 100%),
    linear-gradient(0deg, rgba(139,92,246,.18), rgba(236,72,153,.10));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero .container { width: 100%; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .eyebrow { color: #F6C6E4; }
.hero-sub { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 560px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots {
  position: absolute; z-index: 3;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dot {
  width: 34px; height: 5px; border-radius: 3px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.38);
  transition: background .2s;
}
.hero-dot.active { background: linear-gradient(90deg, var(--pink), var(--red)); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 84px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-sub { color: var(--muted); margin-top: .8rem; }

.page-hero {
  padding: 90px 0 56px;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(236,72,153,.10), transparent 60%),
    radial-gradient(700px 320px at 88% 10%, rgba(139,92,246,.12), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .6rem; }

/* ---------- Product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(236,72,153,.22), rgba(139,92,246,.22), rgba(225,29,72,.18));
  mix-blend-mode: multiply;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-icon { font-size: 1.4rem; }
.card-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-link {
  font-weight: 600; font-size: .9rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-note {
  font-size: .78rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; align-self: flex-start;
}
.category-title {
  margin-bottom: 26px;
  padding-left: 14px;
  border-left: 4px solid;
  border-image: var(--grad) 1;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--pink); letter-spacing: 3px; margin-bottom: 12px; }
.review-card blockquote { font-size: .95rem; color: var(--body); margin-bottom: 16px; }
.review-card figcaption strong { display: block; color: var(--ink); font-size: .9rem; }
.review-card figcaption span { color: var(--muted); font-size: .82rem; }

/* ---------- Inquiry ---------- */
.inquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.inquiry-points { margin-top: 1.4rem; }
.inquiry-points li {
  padding-left: 30px;
  position: relative;
  margin-bottom: .7rem;
  color: var(--body);
}
.inquiry-points li::before {
  content: '✓';
  position: absolute; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  top: 4px;
}
.inquiry-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.inquiry-form-card::before { content: ''; display: block; height: 5px; background: var(--grad); }
.inquiry-form { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.inquiry-form h3 { margin-bottom: 4px; }
.inquiry-form label { font-size: .84rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.inquiry-form input,
.inquiry-form textarea {
  font-family: var(--font);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color .15s, box-shadow .15s;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
.form-note { text-align: center; font-size: .76rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad);
  border-radius: 20px;
  text-align: center;
  padding: 60px 40px;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.6rem; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.about-copy h2 { margin: 2rem 0 .8rem; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin-bottom: 1rem; }
.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.fact-card h4 { margin-bottom: 14px; }
.fact-card dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 12px; }
.fact-card dd { color: var(--ink); font-weight: 600; font-size: .95rem; }
.fact-card-gradient { background: var(--grad); border: none; color: #fff; }
.fact-card-gradient h4, .fact-card-gradient p { color: #fff; }
.fact-card-gradient p { margin-bottom: 18px; font-size: .92rem; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Product detail ---------- */
.detail-hero {
  position: relative;
  padding: 110px 0 70px;
  background-size: cover; background-position: center;
}
.detail-hero .hero-content { position: relative; z-index: 2; }
.detail-hero h1, .detail-hero .hero-sub { color: #fff; }
.crumb { color: #F6C6E4; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.detail-body p { margin-bottom: 1rem; }
.detail-body h3 { margin: 2rem 0 1rem; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: .8rem; }
.price-note-lg { font-weight: 600; color: var(--ink); margin-bottom: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #17141D; color: #B9B4C7; margin-top: 40px; }
.footer-gradient-line { height: 4px; background: var(--grad); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 44px;
}
.brand-footer .brand-text { color: #fff; }
.footer-brand p { font-size: .88rem; margin-top: 14px; line-height: 1.6; }
.footer-muted { color: #7E7890; }
.footer-col h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: .9rem; }
.footer-col a { color: #B9B4C7; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px;
  font-size: .8rem; color: #7E7890;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .nav-list > li > a { padding: 14px 24px; }
  .nav-contact { margin: 8px 24px; text-align: center; }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    border: none; border-radius: 0;
    box-shadow: none;
    display: none;
    opacity: 1; visibility: visible;
  }
  .has-mega.mega-open .mega-menu { display: block; transform: none; }
  .mega-inner { grid-template-columns: 1fr; padding: 6px 24px 18px; }
  .mega-cta { flex-direction: column; align-items: flex-start; }

  .inquiry-wrap, .about-grid, .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
