/* ============================================
   Margot's Closet — Custom Styles
   Deep Navy + Warm Gold Palette
   ============================================ */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f2140;
  --navy-800: #152d58;
  --navy-700: #1a3a6e;
  --navy-600: #1e4a8a;
  --gold-500: #c8943e;
  --gold-400: #d4a84b;
  --gold-300: #e0be6e;
  --gold-200: #f0d89a;
  --gold-100: #faf0d6;
  --cream-50: #fdf9f3;
  --cream-100: #f9f3e8;
  --warm-100: #f5efe5;
  --warm-200: #ede4d4;
  --text-dark: #0f1a2e;
  --text-mid: #3a4a5c;
  --text-light: #6b7f96;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 6px 24px rgba(10, 22, 40, 0.09);
  --shadow-lg: 0 14px 48px rgba(10, 22, 40, 0.12);
  --shadow-gold: 0 6px 24px rgba(200, 148, 62, 0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 249, 243, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 148, 62, 0.12);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
}
.logo svg {
  color: var(--gold-500);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
  transition: width var(--transition);
}
.main-nav a:hover {
  color: var(--navy-900);
}
.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(15, 33, 64, 0.75) 50%,
    rgba(26, 58, 110, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin-left: 8%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 148, 62, 0.15);
  border: 1px solid rgba(200, 148, 62, 0.35);
  color: var(--gold-300);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  color: var(--gold-400);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200,148,62,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg {
  transition: transform var(--transition);
}
.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(200, 148, 62, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.btn-light:hover {
  background: var(--cream-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================
   Categories
   ============================================ */
.categories {
  background: var(--cream-50);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover .cat-img img {
  transform: scale(1.06);
}

.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 28px 28px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 100%);
}
.cat-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.cat-info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 12px;
}
.cat-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.category-card:hover .cat-link {
  gap: 8px;
}

/* ============================================
   About
   ============================================ */
.about {
  background: var(--white);
  overflow: hidden;
}

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

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 80%;
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-float {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  border: 5px solid var(--white);
}
.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translateY(-50%);
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  z-index: 2;
}

.about-content .section-tag {
  text-align: left;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 24px;
}
.about-content p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
}
.feature-item svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

/* ============================================
   Banner
   ============================================ */
.banner {
  background: var(--navy-900);
  padding: 80px 0;
  overflow: hidden;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  flex: 1;
  min-width: 280px;
}
.banner .btn-light:hover {
  background: var(--cream-50);
}

/* ============================================
   Visit
   ============================================ */
.visit {
  background: var(--cream-50);
}

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

.visit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(200, 148, 62, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.visit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.visit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--gold-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}
.visit-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.visit-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.visit-card a {
  color: var(--gold-500);
  font-weight: 600;
  transition: color var(--transition);
}
.visit-card a:hover {
  color: var(--navy-700);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--white);
}

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

.contact-info .section-tag {
  text-align: left;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 18px;
}
.contact-info > p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  padding: 12px 20px;
  background: var(--cream-50);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.contact-link:hover {
  background: var(--gold-100);
  color: var(--navy-950);
}
.contact-link svg {
  color: var(--gold-500);
}

/* Form */
.contact-form {
  background: var(--cream-50);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(200, 148, 62, 0.1);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-md);
  color: #2e7d32;
  font-weight: 500;
  font-size: 0.92rem;
  margin-top: 16px;
}
.form-success.show {
  display: flex;
}
.form-success svg {
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--gold-400);
}
.footer-contact p {
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-contact a {
  color: var(--gold-400);
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--navy-900);
  color: var(--gold-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--navy-700);
  transform: translateY(-3px);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.category-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.category-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.category-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.category-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.visit-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.visit-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.visit-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.visit-grid .reveal:nth-child(4) { transition-delay: 0.26s; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .hero-scroll { display: none; }
  .scroll-line { animation: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }
  .about-images {
    height: 480px;
  }
  .contact-grid {
    gap: 48px;
  }
  .visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 100;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav a {
    font-size: 1.1rem;
  }

  .hero-content {
    margin-left: 0;
    padding: 140px 24px 100px;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-scroll {
    display: none;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-images {
    height: 400px;
    order: -1;
  }
  .about-content .section-tag {
    text-align: center;
  }
  .about-content h2 {
    text-align: center;
  }
  .about-content p {
    text-align: left;
  }
  .about-features {
    grid-template-columns: 1fr;
  }

  .banner-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info .section-tag {
    text-align: center;
  }
  .contact-info h2 {
    text-align: center;
  }
  .contact-info > p {
    text-align: center;
  }
  .contact-direct {
    align-items: center;
  }
  .contact-form {
    padding: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-brand p {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .btn {
    padding: 13px 24px;
    font-size: 0.88rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
