/* CSS Reset & Variables */
:root {
  /* Brand Colors - Earthy & Warm */
  --color-terracotta: #A0552D;
  --color-olive: #556B2F;
  --color-beige: #F5F5DC;
  --color-sand: #D2B48C;
  --color-charcoal: #36454F;
  --color-sage: #BCB88A;

  /* Text Colors */
  --text-main: var(--color-charcoal);
  --text-light: #F9F9F9;
  --text-muted: #666e75;

  /* Fonts */
  --font-heading: 'EB Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-beige);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.text-center {
  text-align: center;
}

.text-terracotta {
  color: var(--color-terracotta);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-charcoal);
  background: transparent;
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn:hover {
  background: var(--color-charcoal);
  color: var(--color-beige);
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: #8a4825;
  border-color: #8a4825;
  color: white;
}

/* Header & Nav */
header {
  padding: var(--spacing-md) 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
  transition: var(--transition-smooth);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 120px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-terracotta);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-terracotta);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #e0dcd3;
  /* Fallback */
  overflow: hidden;
}

/* Abstract organic shape in background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background-color: var(--color-olive);
  opacity: 0.1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 20s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background-color: var(--color-terracotta);
  opacity: 0.08;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 25s ease-in-out infinite alternate-reverse;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  opacity: 0;
  /* JS Fade in */
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-terracotta);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
  padding: var(--spacing-xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image {
  position: relative;
  height: 600px;
  background-color: #ddd;
  /* Placeholder */
  border-radius: 4px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.about-text p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

/* Collections Grid */
.collections-preview {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 3rem;
  color: var(--color-charcoal);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.collection-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collection-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #2c2a25;
  /* Darker charcoal */
  color: var(--color-beige);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

footer h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.social-links a {
  display: inline-block;
  margin: 0 var(--spacing-sm);
  font-size: 1.2rem;
  border-bottom: 1px solid transparent;
}

.social-links a:hover {
  border-bottom: 1px solid var(--color-terracotta);
  color: var(--color-terracotta);
}

.copyright {
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
  color: #888;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 20;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-charcoal);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Newsletter Styles */
.newsletter-signup {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
}

.newsletter-signup h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-beige);
}

.newsletter-signup p {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: #ccc;
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-xs);
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-beige);
  font-family: var(--font-body);
}

.newsletter-form input::placeholder {
  color: #aaa;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 400px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Slide out */
    height: 100vh;
    width: 70%;
    background-color: var(--color-beige);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 15;
  }

  .nav-links.active {
    right: 0;
  }
}