/* ========== DESIGN SYSTEM VARIABLES ========== */
:root {
  /* Color System */
  --color-charcoal: #0F0F0F;
  --color-space-gray: #1C1C1E;
  --color-graphite: #2C2C2E;
  --color-ash: #3A3A3C;
  --color-accent: #E50914;
  --color-white: #FFFFFF;
  --color-light: #F5F5F7;
  --color-mid: #D1D1D6;

  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Work Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Borders & Radiuses */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hard: 0 12px 32px rgba(0, 0, 0, 0.16);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== RESET & BASE STYLES ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button, 
.btn {
  cursor: pointer;
  font-family: var(--font-secondary);
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--color-accent); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

/* ========== HEADER & NAVIGATION ========== */
.header {
  position: absolute;
  width: 100%;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: transform 0.4s ease-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-scrolled {
  transform: translateY(-100%);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  z-index: 101;
}

.logo-dark {
  color: var(--color-charcoal);
}

.nav-toggle {
  display: none;
  z-index: 101;
  width: 30px;
  height: 24px;
  position: relative;
  background: transparent;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.nav-toggle-dark span {
  background: var(--color-charcoal);
}

.nav-toggle span:nth-child(1) { top: 0px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link-dark {
  color: var(--color-charcoal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--color-space-gray);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15,15,15,0.8) 0%, rgba(15,15,15,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: #c30812;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: #0F0F0F;
  font-weight: 600;
  border: 2px solid ;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: var(--space-sm);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-space-gray);
  transform: translateY(-2px);
}

.btn-dark {
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn-dark:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

/* ========== SECTION STYLES ========== */
.section {
  padding: var(--space-lg) 0;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.section-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  margin-bottom: var(--space-md);
  max-width: 700px;
  font-size: 1.1rem;
  opacity: 0.8;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-dark {
  background-color: var(--color-space-gray);
  color: var(--color-white);
}

/* ========== CARD COMPONENTS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-img {
  height: 240px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-md);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  opacity: 0.7;
}

.card-meta i {
  font-size: 1rem;
}

/* ========== FEATURES SECTION ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.feature {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  margin: 0 auto var(--space-sm);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(229, 9, 20, 0.1);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 2rem;
}

.feature-title {
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.feature-text {
  opacity: 0.8;
}

/* ========== CONTACT FORM ========== */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.contact-form {
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-mid);
  border-radius: var(--radius-sm);
  background-color: transparent;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.form-check-input {
  margin-right: var(--space-xs);
  margin-top: 5px;
}

.form-btn {
  width: 100%;
  margin-top: var(--space-sm);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-md) 0;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-text {
  opacity: 0.7;
  max-width: 400px;
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--color-mid);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-accent);
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
  position: fixed;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-md));
  max-width: 400px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-medium);
  z-index: 9999;
  display: none;
}

.cookie-consent.active {
  display: block;
  animation: fadeIn 0.5s forwards;
}

.cookie-text {
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  gap: var(--space-xs);
}

.btn-cookie {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  flex: 1;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== 404 PAGE ========== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.error-content {
  max-width: 600px;
}

.error-title {
  font-size: 8rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.error-subtitle {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.error-text {
  margin-bottom: var(--space-md);
}

/* ========== THANK YOU PAGE ========== */
.thank-you {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-light);
}

.thank-you-content {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  max-width: 700px;
  box-shadow: var(--shadow-medium);
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.thank-you-title {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  html { font-size: 15px; }
  
  .hero-title { font-size: 3.5rem; }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  
  .section { padding: var(--space-md) 0; }
  
  .nav-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-medium);
    z-index: 100;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link, .nav-link-dark {
    color: var(--color-charcoal);
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .footer-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html { font-size: 14px; }
  
  .hero-title { font-size: 2.5rem; }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 300px;
  }
  
  .error-title { font-size: 6rem; }
  .error-subtitle { font-size: 1.5rem; }
}

@media (max-width: 320px) {
  .container { padding: 0 var(--space-xs); }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
}