/* =============================================
   Sofiaromacom — Premium Niche Perfumery
   ТОО "INTERSAF" | intersaf.kz
   ============================================= */

/* --- CSS Variables --- */
:root {
  --color-black: #0a0a0a;
  --color-black-soft: #111111;
  --color-white: #faf9f7;
  --color-cream: #f5f0e8;
  --color-beige: #e8dfd0;
  --color-gold: #c4a265;
  --color-gold-light: #d4b87a;
  --color-gold-muted: rgba(196, 162, 101, 0.15);
  --color-text: #2a2a2a;
  --color-text-muted: #6b6560;
  --color-border: rgba(196, 162, 101, 0.25);

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

  --container-max: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 162, 101, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 162, 101, 0.25);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-black);
}

.logo span {
  color: var(--color-gold);
}

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

.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-black);
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  background-color: var(--color-black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.45) 45%,
    rgba(10, 10, 10, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(250, 249, 247, 0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__decor {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 420px;
  border: 1px solid rgba(196, 162, 101, 0.2);
  z-index: 1;
  display: none;
}

/* --- About / Philosophy --- */
.about {
  background-color: var(--color-cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-beige);
}

.about__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__visual:hover .about__visual-img {
  transform: scale(1.04);
}

.about__visual-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 12px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about__text p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.about__text p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-black);
  line-height: 1.6;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.about__feature {
  text-align: center;
}

.about__feature-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.about__feature-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Collection --- */
.collection {
  background-color: var(--color-white);
}

.collection__header {
  text-align: center;
  margin-bottom: 64px;
}

.collection__header .section-subtitle {
  margin: 0 auto;
}

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

/* Product Card */
.product-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-gold);
}

.product-card__image {
  aspect-ratio: 3 / 4;
  background-color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.06);
}

.product-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: var(--color-black);
  color: var(--color-gold);
  padding: 6px 12px;
}

.product-card__body {
  padding: 24px 20px 28px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 8px;
}

.product-card__notes {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 68px;
}

.product-card__btn {
  width: 100%;
}

/* --- Contact --- */
.contact {
  background-color: var(--color-black-soft);
  color: var(--color-white);
}

.contact .section-title {
  color: var(--color-white);
}

.contact .section-label {
  color: var(--color-gold-light);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info-item {
  margin-bottom: 32px;
}

.contact__info-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.contact__info-value {
  font-size: 1.1rem;
  color: rgba(250, 249, 247, 0.85);
}

.contact__info-value a:hover {
  color: var(--color-gold-light);
}

.contact__social {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid rgba(196, 162, 101, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  transition: all var(--transition);
}

.contact__social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Form */
.contact-form {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 162, 101, 0.2);
  padding: 40px;
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-white);
}

.contact-form__desc {
  font-size: 0.9rem;
  color: rgba(250, 249, 247, 0.5);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 162, 101, 0.25);
  color: var(--color-white);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
}

.form-group input::placeholder {
  color: rgba(250, 249, 247, 0.3);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  display: none;
  padding: 16px;
  background-color: rgba(196, 162, 101, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

/* --- Legal Sections (Privacy & Terms) --- */
.legal {
  background-color: var(--color-cream);
  padding: 80px 0;
}

.legal__content {
  max-width: 800px;
  margin: 0 auto;
}

.legal__content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-black);
  margin-bottom: 8px;
  padding-top: 40px;
}

.legal__content h2:first-child {
  padding-top: 0;
}

.legal__updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.legal__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-black);
  margin: 28px 0 12px;
}

.legal__content p,
.legal__content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal__content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 60px 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .collection__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 72px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background-color: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 0.9rem;
  }

  .hero__content {
    text-align: center;
    margin: 0 auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bg-img {
    object-position: center;
  }

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

  .about__visual {
    max-height: 400px;
  }

  .about__features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collection__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.75rem;
  }
}
