/* ============================================
   HANIN WEBSITE - MAIN STYLESHEET
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-ecru: #f5f3ed;
  --color-black: #000000;
  --color-gray-light: #f8f8f8;
  --color-gray-mid: #e5e5e5;
  --color-gray-dark: #666666;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-brand-red: #d1463a;

  /* Typography */
  --font-primary: 'Inter', Arial, Helvetica, sans-serif;
  --font-heading: 'Playfair Display', serif;

  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 32px;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */

  /* Layout */
  --max-width-content: 1400px;
  --max-width-text: 800px;
  --header-height: 120px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-sm);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  z-index: 1000;
  border-bottom: 1px solid var(--color-gray-mid);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.logo-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.logo-brand {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-red);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.logo-img {
  height: 50px;
  /* Adjust height to match the visual impact of the original text */
  width: auto;
  display: block;
  margin: 0 auto;
}

.nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
}

/* ============================================
   MAIN CONTENT SPACING
   ============================================ */
.main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ============================================
   CAROUSEL / HERO SLIDER
   ============================================ */
.carousel {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--color-black);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity var(--transition-base), background-color var(--transition-fast);
}

.carousel:hover .carousel-control {
  opacity: 1;
}

.carousel-control:hover {
  background-color: var(--color-white);
}

.carousel-control.prev {
  left: var(--space-md);
}

.carousel-control.next {
  right: var(--space-md);
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
  z-index: 20;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.carousel-dot.active {
  background-color: var(--color-white);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   COLLECTION CARDS (Original Replica Style)
   ============================================ */
.collection-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  height: 500px;
  display: block;
}

.collection-card-image {
  width: 100%;
  height: 100%;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  top: 60px;
  right: 0;
  background-color: var(--color-brand-red);
  color: var(--color-white);
  padding: 20px 30px;
  width: 260px;
  text-align: left;
  z-index: 10;
  transition: transform var(--transition-base);
}

.collection-overlay-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.collection-overlay-btn {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-brand-red);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-fast);
}

.collection-card:hover .collection-overlay-btn {
  background-color: var(--color-black);
  color: var(--color-white);
}

.collection-card:hover .collection-overlay {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  margin-bottom: var(--space-xl);
}

.product-card-image {
  width: 100%;
  padding-bottom: 125%;
  /* 4:5 Aspect Ratio */
  position: relative;
  background-color: var(--color-gray-light);
  margin-bottom: var(--space-md);
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-xs);
}

.product-card-detail {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.product-card-colors {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-mid);
}

.color-white {
  background-color: #ffffff;
}

.color-ecru {
  background-color: #f5f3ed;
}

.color-black {
  background-color: #000000;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-gray-mid);
  text-align: center;
}

.footer-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
  padding: var(--space-xl) 0;
  text-align: center;
}

.page-title h1 {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-3xl);
  font-family: var(--font-heading);
  position: relative;
  display: inline-block;
}

.page-title h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-brand-red);
}

/* ============================================
   CONTENT SECTIONS (About)
   ============================================ */
.content-section {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  line-height: var(--line-height-relaxed);
}

.content-section h2 {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-xl);
  border-bottom: 2px solid var(--color-gray-mid);
  padding-bottom: var(--space-xs);
  display: inline-block;
}

.content-section p {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* ============================================
   CONTACT FORM
   ============================================ */
/* ============================================
   CONTACT GRID
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-details h2 {
  margin-bottom: var(--space-xl);
}

.contact-info-block {
  margin-bottom: var(--space-xl);
}

.contact-info-block h3 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-red);
  margin-bottom: var(--space-xs);
}

.contact-map iframe {
  filter: grayscale(1);
  transition: filter var(--transition-base);
}

.contact-map:hover iframe {
  filter: grayscale(0);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--color-gray-light);
  border-radius: 4px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-gray-mid);
  font-family: inherit;
}

.btn-submit {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 15px 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .logo-brand {
    font-size: 1.6rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: auto;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    left: 0;
  }

  .nav-right {
    top: calc(var(--header-height) + 120px);
    padding-top: 0;
    box-shadow: none;
  }

  .nav-link {
    font-size: var(--font-size-lg);
    width: 100%;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-gray-mid);
  }

  .collection-card {
    height: 350px;
  }

  .collection-overlay {
    width: 200px;
    padding: 12px 18px;
    top: 30px;
  }
}