/* =============================================
   Atrelika — Modern Luxury Minimal
   ============================================= */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F3EFE9;
  --text: #1C1917;
  --text-soft: #57534E;
  --accent: #9B1B2E;
  --accent-hover: #7F1525;
  --gold: #B8922F;
  --border: #E7E0D5;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max: 1200px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1 { font-size: clamp(2.6rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.7);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--text);
}

.btn-dark {
  background: var(--text);
  color: white;
}

.btn-dark:hover {
  background: #000;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* ----- Brand / Logo text ----- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 20px;
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease;
  filter: brightness(1.12);
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 14, 11, 0.68) 0%,
    rgba(18, 14, 11, 0.38) 55%,
    rgba(18, 14, 11, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  text-align: left;
  width: 100%;
}

.hero-content h1 {
  color: white;
  max-width: 13ch;
  margin-bottom: 20px;
}

.hero-content .lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 42ch;
  margin-bottom: 36px;
}

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

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid white;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.hero-dots button.active {
  background: white;
  opacity: 1;
}

.page-hero {
  padding: 90px 0 50px;
  border-bottom: 1px solid var(--border);
}

.page-hero .kicker {
  margin-bottom: 12px;
}

.page-hero h1 {
  margin: 0;
}


/* ========== Products ========== */
.products-section {
  padding: 70px 0 100px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-top: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(28, 25, 23, 0.18);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(1.06);   /* کمی روشن‌تر */
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-body {
  padding: 28px 26px 32px;
}

.product-body h3 {
  margin-bottom: 10px;
}

.product-body p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.link-arrow::after {
  content: " →";
  transition: margin 0.2s;
}

.product-card:hover .link-arrow::after {
  margin-left: 4px;
}

/* ========== R&D Section ========== */
.rd-section {
  padding: 80px 0 100px;
  background: var(--bg-alt);
}

.rd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.rd-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 6px;
  filter: brightness(1.06);
}

.rd-content h2 {
  margin: 10px 0 20px;
}

.rd-content p {
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 46ch;
}

/* ========== Footer ========== */
.site-footer {
  background: #1C1917;
  color: #D6D3D1;
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo {
  height: 42px;
  width: auto;
}

.footer-logo-wrap span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 32ch;
  color: #A8A29E;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
  color: #A8A29E;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.85rem;
  color: #78716C;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .rd-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rd-image img {
    height: 340px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0 24px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 28px;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 12px;
  }

  .hero {
    height: 80vh;
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-dots {
    left: 28px;
  }

  .brand-text {
    font-size: 1.35rem;
  }

  .logo-img {
    height: 50px;
  }
}