/* Critical CSS - optimizat pentru First Contentful Paint */

/* Montserrat font cu font-display: swap pentru optimizare */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-v26-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-v26-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-v26-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset și variabile */
:root {
  --color-primary: #9e4f68;
  --color-primary-light: #b06a82;
  --color-primary-dark: #7a3c51;
  --color-secondary: #d4a188;
  --color-secondary-light: #e3b9a6;
  --color-secondary-dark: #c08e74;
  --color-dark: #2e1a23;
  --color-light: #f9f5f6;
  --color-gray: #ebe3e5;
  --color-gray-dark: #989093;
  
  /* Prevenție pentru mobile scrolling issues */
  --vh: 1vh;
}

/* Fix pentru mobile horizontal scroll issues */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  overscroll-behavior: none;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* Layout elemente de bază */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Butoane */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  line-height: 1.4;
}

/* Dark mode */
body.dark-mode {
  --color-dark: #f9f5f6;
  --color-light: #1a1118;
  --color-gray: #3e2f36;
  --color-gray-dark: #c0b5ba;
  
  background-color: var(--color-light);
  color: var(--color-dark);
}

/* Hero section styles - critical pentru first paint */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  contain: layout paint;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(46, 26, 35, 0.9),
    rgba(46, 26, 35, 0.6)
  );
  will-change: opacity;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
  will-change: transform;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title span {
  color: var(--color-secondary);
}

/* Fix pentru iOS 100vh */
@supports (-webkit-touch-callout: none) {
  .min-h-screen {
    min-height: -webkit-fill-available;
  }
}

/* Media queries pentru mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    height: 80vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
} 