/* Zephyr Furnishings - Global Styles & Theme System */

/* ============================================
   IMPORTS & FONTS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES - LIGHT THEME
   ============================================ */

:root {
  --bg-primary: #FAF9F6;
  --bg-secondary: #F0EDE7;
  --bg-tertiary: #E8E3DC;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A47;
  --text-tertiary: #7A7A76;
  --accent-primary: #6B7B73;
  --accent-secondary: #D4A574;
  --accent-tertiary: #A8B5AA;
  --border-color: #E0DCD5;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.1);
  --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

[data-theme="dark"],
body.dark {
  --bg-primary: #0F1419;
  --bg-secondary: #1A1F28;
  --bg-tertiary: #252D36;
  --text-primary: #F5F5F0;
  --text-secondary: #D0CFC8;
  --text-tertiary: #9F9E98;
  --accent-primary: #A8D68F;
  --accent-secondary: #C9A876;
  --accent-tertiary: #8FA890;
  --border-color: #363F48;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY HIERARCHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.accent-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  font-weight: 700;
}

/* ============================================
   LINKS & BUTTONS
   ============================================ */

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

a:hover {
  color: var(--accent-secondary);
}

button, .btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-secondary);
  transition: width 0.3s ease;
}

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

/* Language & Theme Toggles */
.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: var(--transition);
  padding: 0.5rem;
}

.toggle-btn:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.5), rgba(107, 123, 115, 0.3));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: var(--bg-primary);
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 10vw, 5rem);
}

.hero-content p {
  color: rgba(245, 245, 240, 0.95);
  font-size: clamp(1.125rem, 4vw, 1.75rem);
}

/* ============================================
   BENTO GRID SYSTEM
   ============================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  grid-auto-rows: auto;
  margin: 3rem 0;
}

.bento-item {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Grid span variations */
.bento-item.hero {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-item.tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-item.full {
  grid-column: span 4;
}

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

  .bento-item.hero {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-item.large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-item,
  .bento-item.hero,
  .bento-item.large,
  .bento-item.tall,
  .bento-item.wide {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
  padding: 2rem;
  border-radius: 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-body {
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

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

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

/* ============================================
   SECTION STYLES
   ============================================ */

section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-intro .accent-text {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-intro h2 {
  margin-bottom: 1.5rem;
}

.section-intro p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animations */
.animate-stagger {
  animation: fadeInUp 0.8s ease-out;
}

.animate-stagger:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 3rem 0;
}

footer h6 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-secondary);
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-primary);
}

.footer-divider {
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(107, 123, 115, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }

.px-3 { padding: 0 1.5rem; }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  footer,
  .no-print {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}
