/*
 * Swargam Fashion - Premium Boutique Website
 * Design System & Styles - Mobile-First
 */

/* ===== Google Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap");

/* ===== CSS Custom Properties ===== */
:root {
  /* Colors - Premium Fashion Theme (Burgundy/Taupe) */
  --color-bg-primary: #FAF6F5; /* Very soft warm blush white */
  --color-bg-secondary: #EADCD3; /* Soft taupe/beige - elegant and premium */
  --color-bg-card: #FFFFFF;
  --color-bg-glass: rgba(142, 58, 75, 0.08);

  --color-accent: #8E3A4B; /* Deep sophisticated burgundy/plum */
  --color-accent-light: #F2E3E6;
  --color-accent-dark: #5B2130;

  --color-secondary-accent: #C9A84C; /* Warm gold/champagne */

  --color-text-primary: #2C2628; /* Very deep warm gray, softer than black */
  --color-text-secondary: #5C5254;
  --color-text-muted: #8F8487;

  --color-border: rgba(44, 38, 40, 0.1);
  --color-border-accent: rgba(201, 168, 76, 0.4);

  /* Typography */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  /* Mobile-first Font Sizes */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(10, 25, 47, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 25, 47, 0.15);
  --shadow-glow: 0 0 30px rgba(142, 58, 75, 0.3);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 350ms ease;
  --transition-slow: 600ms ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

@media (min-width: 768px) {
  :root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
  }
}

/* ===== 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-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent);
}

.text-gold {
  color: var(--color-accent);
} /* Used dynamically */

.text-muted {
  color: var(--color-text-secondary);
}

/* ===== Layout Options ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ===== Enhanced Mobile-First Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 250, 250, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 2px;
}

.nav-logo span {
  color: var(--color-secondary-accent);
}

.nav-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--space-xl);
  gap: var(--space-sm);
  background: var(--color-bg-primary);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  height: calc(100vh - 70px);
}

.nav-menu.active {
  transform: translateX(0);
}

.nav-link {
  font-size: var(--text-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  position: relative;
  padding: var(--space-md) var(--space-xl);
  display: block;
  text-align: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-bg-glass);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

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

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

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

/* Tablet & Desktop Navigation */
@media (min-width: 768px) {
  .nav-container {
    height: 90px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    height: auto;
    background: transparent;
    transform: none;
    padding-top: 0;
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: var(--text-sm);
    padding: var(--space-sm) 0;
    text-align: left;
    background: transparent;
  }

  .nav-link::after {
    left: 0;
    transform: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: transparent;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

/* ===== Mobile-First Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 56px; /* Touch target size */
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-dark)
  );
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(142, 58, 75, 0.5);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-text-primary);
}

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

.btn-ghost {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(229, 89, 52, 0.15);
  border-color: var(--color-secondary-accent);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  min-height: 64px;
}

@media (min-width: 768px) {
  .btn {
    font-size: var(--text-sm);
    min-height: 48px;
  }
  .btn-lg {
    font-size: var(--text-base);
    min-height: 56px;
  }
}

/* ===== Mobile-First Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.65) saturate(1.2); /* Make background pop, but readable text */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 100%;
  padding: var(--space-lg);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: var(--text-base);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease forwards;
  backdrop-filter: blur(12px);
}

.hero-title {
  font-size: clamp(var(--text-3xl), 12vw, var(--text-6xl));
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  color: #FFFFFF;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  color: #C0F0E5;
  font-size: 1.1em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.95);
  max-width: 100%;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  width: 100%;
}

.hero-buttons .btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-primary);
  border: none;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 900px;
    padding: var(--space-xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
    line-height: 1.8;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .hero-buttons .btn {
    width: auto;
  }
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  justify-content: center;
}

.trust-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
}

.trust-content h4 {
  font-size: var(--text-xl);
  color: var(--color-accent-dark);
}

@media (min-width: 768px) {
  .trust-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .trust-item {
    width: auto;
    justify-content: flex-start;
  }
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 100%;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-sm);
}

.section-label {
  font-family: var(--font-accent);
  font-size: var(--text-base);
  color: var(--color-secondary-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-header {
    max-width: 700px;
  }
}

/* ===== Collections & Cards ===== */
.collection-grid, .features-grid, .testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.card {
  background: var(--color-bg-card);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-base);
}

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

.card-body {
  padding: var(--space-xl);
  text-align: center;
}

.card-category {
  font-family: var(--font-accent);
  font-size: var(--text-base);
  color: var(--color-secondary-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Features Grid */
.feature-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-lg);
  color: #FFFFFF;
}

.feature-card h4 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Testimonials */
.testimonials {
  background: var(--color-bg-secondary);
}

.testimonial-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: var(--text-6xl);
  font-family: var(--font-heading);
  color: var(--color-accent);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Form Grid */
.contact-form {
  max-width: 100%;
}
.form-group {
  margin-bottom: var(--space-lg);
}
.form-input, .form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

/* About Grid */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
.about-text h2 {
  font-size: var(--text-3xl);
}
@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Contact Info Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text-primary);
  color: #FFFFFF;
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.footer-brand h3 {
  color: #FFFFFF;
}

.footer-brand span {
  color: var(--color-secondary-accent);
}

.footer-brand p {
  color: var(--color-text-muted);
  margin: 0 auto;
}

.footer-column h4 {
  color: #FFFFFF;
}

.footer-links a {
  color: var(--color-text-muted);
}
.footer-links a:hover {
  color: var(--color-accent);
}

.social-links {
  justify-content: center;
  margin-top: var(--space-lg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }
  .footer-brand p { margin: 0; }
  .social-links { justify-content: flex-start; }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
  }
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-md);
  z-index: 999;
}
.whatsapp-btn {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-btn svg { width: 36px; height: 36px; fill: white; }

@media (min-width: 768px) {
  .whatsapp-float {
    right: var(--space-xl);
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-whatsapp {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Extras */
.page-header {
  padding: calc(70px + var(--space-4xl)) 0 var(--space-3xl);
  background: var(--color-bg-secondary);
  text-align: center;
}
.mt-4 { margin-top: var(--space-xl); }
.text-center { text-align: center; }
