@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --bg: #f4f6f9;
  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --navy: #0f3460;
  --shadow: 0 4px 20px rgba(15, 52, 96, 0.07);
  --shadow-lg: 0 12px 40px rgba(15, 52, 96, 0.1);
  --radius: 12px;
  --font: 'Source Sans 3', system-ui, sans-serif;
  --header-h: 72px;

  /* Product themes */
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-soft: #dbeafe;
  --green: #059669;
  --green-light: #ecfdf5;
  --green-soft: #d1fae5;
  --rose: #db2777;
  --rose-light: #fdf2f8;
  --rose-soft: #fce7f3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

/* ── Top bar ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a {
  color: #fff;
  font-weight: 600;
  transition: opacity 0.2s;
}

.topbar a:hover { opacity: 0.85; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span { color: var(--blue); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav a:hover { color: var(--navy); }

.nav-cta {
  padding: 9px 20px !important;
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--blue) !important; color: #fff !important; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 5px 14px;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--navy); }

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.hero-card:first-child { grid-row: span 2; }

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.hero-card:first-child img { aspect-ratio: auto; min-height: 100%; }

.hero-card-cap {
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--border);
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Section ── */
section { padding: 80px 0; }

.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin-inline: auto; }

.sec-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sec-desc {
  color: var(--text-soft);
  max-width: 560px;
  font-size: 0.95rem;
}

/* ── About ── */
.about { background: var(--bg); }

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.about-card:hover { box-shadow: var(--shadow); }

.about-card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.about-card-icon svg {
  width: 24px; height: 24px;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card-icon.blue { background: var(--blue-light); stroke: var(--blue); }
.about-card-icon.green { background: var(--green-light); stroke: var(--green); }
.about-card-icon.rose { background: var(--rose-light); stroke: var(--rose); }

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Product overview ── */
.products-intro { background: var(--white); }

.product-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plink {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.plink:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plink-img { aspect-ratio: 4/3; overflow: hidden; }
.plink-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.plink:hover .plink-img img { transform: scale(1.04); }

.plink-body { padding: 20px; }

.plink-body .cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.plink-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.plink-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plink-body .more {
  font-size: 0.85rem;
  font-weight: 600;
}

.plink--blue .cat, .plink--blue .more { color: var(--blue); }
.plink--green .cat, .plink--green .more { color: var(--green); }
.plink--rose .cat, .plink--rose .more { color: var(--rose); }

/* ── Product detail ── */
.product-section { border-top: 1px solid var(--border); }

.product-section.theme-blue { background: var(--blue-light); }
.product-section.theme-green { background: var(--green-light); }
.product-section.theme-rose { background: var(--rose-light); }

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-inner.reverse { direction: rtl; }
.product-inner.reverse > * { direction: ltr; }

/* Gallery */
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }

.g-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.g-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}

.g-main img.fade { opacity: 0; }

.g-count {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.92);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.g-nav {
  position: absolute;
  bottom: 12px; right: 12px;
  display: flex;
  gap: 6px;
}

.g-nav button {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.g-nav button:hover { background: var(--white); }

.g-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.g-thumbs::-webkit-scrollbar { display: none; }

.g-thumbs button {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.g-thumbs button.active,
.g-thumbs button:hover { opacity: 1; }

.theme-blue .g-thumbs button.active { border-color: var(--blue); }
.theme-green .g-thumbs button.active { border-color: var(--green); }
.theme-rose .g-thumbs button.active { border-color: var(--rose); }

.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.pinfo { padding-top: 8px; }

.pinfo-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.theme-blue .pinfo-cat { background: var(--blue-soft); color: var(--blue); }
.theme-green .pinfo-cat { background: var(--green-soft); color: var(--green); }
.theme-rose .pinfo-cat { background: var(--rose-soft); color: var(--rose); }

.pinfo h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 24px;
}

.spec-list { list-style: none; }

.spec-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-list li:last-child { border-bottom: none; }

.spec-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 8px;
}

.theme-blue .spec-dot { background: var(--blue); }
.theme-green .spec-dot { background: var(--green); }
.theme-rose .spec-dot { background: var(--rose); }

.spec-list strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.spec-list span {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ── Contact ── */
.contact {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact .sec-tag { color: rgba(255,255,255,0.6); }
.contact .sec-title { color: #fff; }
.contact .sec-desc { color: rgba(255,255,255,0.75); }

.contact-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
  transition: color 0.2s;
}

.contact-email:hover { color: #93c5fd; }

.contact-email-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-email-icon svg { width: 20px; height: 20px; fill: #fff; }

.contact-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ── Footer ── */
.footer {
  background: #0a2544;
  color: rgba(255,255,255,0.45);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
}

.footer strong { color: rgba(255,255,255,0.7); }

/* ── Anim ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.show { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .product-inner { grid-template-columns: 1fr; gap: 36px; }
  .product-inner.reverse { direction: ltr; }
  .gallery { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cards, .product-links { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .hero-cards { max-width: 400px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
  .nav li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav li:last-child { border-bottom: none; padding-top: 8px; }
  .nav-cta { display: block !important; text-align: center; }
  .menu-btn { display: flex; }
  .header { position: relative; }
  section { padding: 60px 0; }
}
