/* ============================================================
   main.css — printezpereți.ro
   Global styles, CSS variables, typography, layout
   ============================================================ */

/* ── Google Fonts sunt încărcate din HTML <head> ── */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --color-primary:       #0D0D1A;
  --color-violet:        #7B2DBE;
  --color-violet-dark:   #6020A0;
  --color-violet-light:  #A055D6;
  --color-violet-pale:   #EEE0FF;
  --color-white:         #FFFFFF;
  --color-gray-light:    #F5F2FF;
  --color-gray-text:     #888899;
  --color-gold:          #E8AC00;
  --color-success:       #15803D;

  /* Typography */
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-display:  'Playfair Display', serif;

  /* Font sizes — mobile first */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:     1200px;
  --section-py:    80px;
  --section-px:    24px;
  --border-radius: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.2);
  --shadow-violet: 0 8px 24px rgba(123,45,190,0.4);

  /* Transitions — specifice (nu 'all') pentru GPU compositing */
  --transition-fast:   transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  --transition-base:   transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  --transition-slow:   transform 0.5s ease, opacity 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;

  /* Navigation */
  --nav-height: 72px;
}

/* ============================================================
   2. RESET & BOX MODEL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-white);
  background-color: #05050a;
  width: 100%;
  max-width: none;
  isolation: isolate;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
}

h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: 600;
}

h4 {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* Body text */
p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: inherit;
}

/* Display / tagline */
.text-display {
  font-family: var(--font-display);
  font-style: italic;
}

/* Utility text sizes */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }

/* Colors */
.text-white        { color: var(--color-white); }
.text-violet       { color: var(--color-violet); }
.text-violet-light { color: var(--color-violet-light); }
.text-gray         { color: var(--color-gray-text); }
.text-gold         { color: var(--color-gold); }
.text-primary      { color: var(--color-primary); }

/* Weight */
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black     { font-weight: 900; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.section {
  padding-block: var(--section-py);
}

/* Alternating section backgrounds */
.section--dark  { background-color: var(--color-primary); }
.section--light { background-color: var(--color-gray-light); }
.section--pale  { background-color: var(--color-violet-pale); }
.section--white { background-color: var(--color-white); }

/* Dark sections: text white by default */
.section--dark  { color: var(--color-white); }
.section--light { color: var(--color-primary); }
.section--pale  { color: var(--color-primary); }
.section--white { color: var(--color-primary); }

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { flex-direction: column; }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

/* Spacing */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mx-auto     { margin-inline: auto; }

/* ============================================================
   5. SECTION TITLE BLOCK
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-violet-light);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

/* Violet underline bar */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-violet);
  margin: var(--space-4) auto 0;
  border-radius: 2px;
}

/* On dark sections, keep bar violet */
.section--light .section-header h2::after,
.section--pale  .section-header h2::after,
.section--white .section-header h2::after {
  background: var(--color-violet);
}

.section-header .section-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gray-text);
  font-size: var(--text-lg);
  max-width: 600px;
  margin-inline: auto;
  margin-top: var(--space-4);
}

/* On dark bg subtitle */
.section--dark .section-subtitle {
  color: var(--color-gray-text);
}

/* On light bg subtitle */
.section--light .section-subtitle,
.section--pale  .section-subtitle,
.section--white .section-subtitle {
  color: #666677;
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: #05050a;
  width: 100%;
  max-width: none;
  isolation: isolate;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.nav__inner {
  max-width: var(--max-width);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* nav-logo: logo + text */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) {
  .nav-logo-text {
    display: inline;
    font-size: 1.2rem;
  }
}

/* Legacy selectors kept for backward compat */
.nav__logo img {
  max-height: 60px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav__logo-text span {
  color: var(--color-violet-light);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
  transition: var(--transition-fast);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-violet);
}

.nav__cta {
  display: none;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: #05050a;
  width: 100%;
  max-width: none;
  isolation: isolate;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-6) var(--section-px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition-fast);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--color-violet-light);
}

.nav__mobile .nav__mobile-cta {
  margin-top: var(--space-4);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #05050a;
  width: 100%;
  max-width: none;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #05050a;
  background-image: url('../videos/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(13,13,26,0.7) 0%,
    rgba(13,13,26,0.5) 50%,
    rgba(13,13,26,0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-inline: var(--section-px);
  /* spațiu pentru scroll indicator absolute (30px bottom + ~60px înălțime) */
  padding-bottom: 100px;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero__content h1 em {
  font-style: normal;
  color: var(--color-violet-light);
}

.hero__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-6);
  line-height: 1.4;
}

@media (max-width: 639px) {
  .hero__slogan {
    font-size: 1.1rem;
    /* max 2 rânduri la 375px */
    max-width: 280px;
    margin-inline: auto;
  }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.hero__sub-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-10);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hero .badge {
  max-width: min(100%, calc(100vw - 48px));
  white-space: normal;
  text-wrap: balance;
  line-height: 1.5;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.2s both;
  white-space: nowrap;
}

/* Legacy — păstrat pentru alte pagini */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  background-color: #080810;
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-top: 8px;
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-violet-light);
  margin-top: var(--space-3);
  font-size: var(--text-base);
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer__col ul a:hover {
  color: var(--color-violet-light);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-3);
}

.footer-cities {
  margin-top: var(--space-4);
}

.footer-cities-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.footer-cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.footer-cities-grid span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
}

.footer-cities-grid span::first-letter {
  color: var(--color-violet-light);
  font-weight: 700;
}

/* Override pentru footer site (fundal #0D0D1A) */
footer .footer-cities-title,
.site-footer .footer-cities-title {
  color: var(--color-gold) !important;
}

footer .footer-cities-grid span,
.site-footer .footer-cities-grid span {
  color: rgba(255,255,255,0.85) !important;
}

footer .footer-cities-grid span::first-letter,
.site-footer .footer-cities-grid span::first-letter {
  color: var(--color-violet-light) !important;
}

.footer__contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--color-violet-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer__bottom a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--color-violet-light);
}

.cookie-settings-link {
  display: inline-flex;
  width: auto;
  min-height: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #d8bcff;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: #ffffff;
  outline: 2px solid #d8bcff;
  outline-offset: 3px;
}

/* ============================================================
   9. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.3s ease;
  /* Ring pulse via pseudo-element — GPU composited */
}

/* Ripple ring — scale+opacity: compozit GPU, fără box-shadow */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-green 2s ease-out infinite;
  z-index: -1;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float:hover::before {
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

/* ============================================================
   10. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Mobile-first hero — CTA vizibil above-the-fold (<640px) ── */
@media (max-width: 639px) {
  /* Reduce hero height to 80vh on mobile so CTA fits higher */
  .hero {
    min-height: 80vh;
    align-items: flex-start;
  }

  /* Tight vertical spacing so all hero content fits in 80vh */
  .hero__content {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  /* Smaller H1 on mobile — still impactful but fewer lines */
  .hero__content h1 {
    max-width: min(100%, 260px);
    margin-inline: auto;
    font-size: clamp(1.2rem, 5.4vw, 1.35rem);
    margin-bottom: 10px;
  }

  .hero__slogan {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: 8px;
  }

  .hero__sub-subtitle {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* sm: 640px */
@media (min-width: 640px) {
  :root {
    --section-px: 32px;
  }

  /* Desktop: 90vh is enough and avoids address-bar expansion */
  .hero {
    min-height: 90vh;
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* md: 768px */
@media (min-width: 768px) {
  :root {
    --section-py: 100px;
  }

  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  :root {
    --section-px: 40px;
    --section-py: 120px;
  }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  :root {
    --section-px: 24px;
  }
}

/* ── Mobile overrides ── */
@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 64px;
  }
}
