/* ========================================
   Artvendoor - Brand Styles
   Premium Gallery-Clean Design
   ======================================== */

/* CSS Custom Properties - Brand Colors */
:root {
  /* Primary Colors */
  --color-terracotta: #B15A36;
  --color-terracotta-hover: #C46B45;
  --color-clay: #D57E40;
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-white-pure: #FFFFFF;
  --color-charcoal: #2A2A2A;
  --color-black: #151515;
  --color-overlay: linear-gradient(180deg, rgba(42, 42, 42, 0.2) 0%, rgba(42, 42, 42, 0.3) 50%, rgba(42, 42, 42, 0.4) 100%);
  --color-overlay-mobile: linear-gradient(180deg, rgba(42, 42, 42, 0.25) 0%, rgba(42, 42, 42, 0.35) 50%, rgba(42, 42, 42, 0.45) 100%);
  
  /* Typography */
  --font-heading: 'Gilroy', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Gilroy', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-terracotta: 0 8px 24px rgba(177, 90, 54, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

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

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ========================================
   Typography
   ======================================== */

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

h1 { font-size: clamp(2rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#hidden-mailerlite-form {
  display: none;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px 24px 28px;

  background: #151515;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;

  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;

  background:
      linear-gradient(
          to bottom,
          rgba(0,0,0,0.38),
          rgba(0,0,0,0.46)
      );
}

/* MAIN STAGE */

.hero__stage {
  position: relative;
  z-index: 5;

  width: 100%;
  max-width: 980px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ART FRAME */

.hero__frame {
  position: relative;

  width: 100%;
  max-width: 820px;

  padding:
      60px
      50px
      50px;

  border-radius: 14px;

  background:
      rgba(18,18,18,0.16);

  border:
      1px solid rgba(255,255,255,0.12);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);

  box-shadow:
      0 25px 80px rgba(0,0,0,0.34);
}

/* LOGO POSITIONING */

.hero__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero__logo img {
  width: 64px;
  height: auto;
}

/* CONTENT LAYOUT */

.hero__content {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* TYPOGRAPHY FIX */

.hero__headline {
  max-width: 760px;

  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;

  color: white;

  margin-bottom: 16px;
}

.hero__subheadline {
  max-width: 620px;

  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.6;
  font-weight: 400;

  color: rgba(255,255,255,0.88);

  margin-bottom: 24px;
}

/* ========================================
   Email Form
   ======================================== */

.email-form {
  width: 100%;
  max-width: 480px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;
}

.email-form__input {
  width: 100%;
  height: 52px;

  padding: 0 20px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);

  background: rgba(255,255,255,0.08);

  color: white;

  font-size: 0.95rem;

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  transition:
      border-color var(--transition-fast),
      background var(--transition-fast),
      box-shadow var(--transition-fast);
}

.email-form__input::placeholder {
  color: rgba(255,255,255,0.6);
}

.email-form__input:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(177, 90, 54, 0.25);
}

.email-form__button {
  min-width: 220px;
  height: 52px;

  border: none;
  border-radius: 999px;

  background: var(--color-terracotta);

  color: white;

  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;

  transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      box-shadow var(--transition-fast);

  box-shadow: 0 4px 16px rgba(177, 90, 54, 0.3);
}

.email-form__button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 8px 24px rgba(177, 90, 54, 0.4);
}

.email-form__button:active {
  transform: translateY(0);
}

.email-form__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.email-form__microcopy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.66);
  text-align: center;
  max-width: 360px;
}

/* ========================================
   Countdown Timer
   ======================================== */

.countdown {
  margin-top: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  flex-wrap: wrap;
}

.countdown__item {
  width: 80px;
  height: 80px;

  border-radius: 12px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.12);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: transform var(--transition-fast);
}

.countdown__item:hover {
  transform: translateY(-2px);
}

.countdown__number {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;

  color: white;
}

.countdown__label {
  margin-top: 6px;

  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.72);
}

/* ========================================
   Social Links
   ======================================== */

.social-links {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;

  flex-wrap: wrap;
}

.social-links__link {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.social-links__link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.social-links__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========================================
   Animations
   ======================================== */

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

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Subtle shake animation for CTA button */
@keyframes subtleShake {
  0%, 90%, 100% {
    transform: translateX(0);
  }
  92% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  94% {
    transform: translateX(2px) rotate(0.5deg);
  }
  96% {
    transform: translateX(-1px) rotate(-0.25deg);
  }
  98% {
    transform: translateX(1px) rotate(0.25deg);
  }
}

/* ========================================
   Success Message
   ======================================== */

.success-message {
  display: none;
  padding: var(--spacing-md);
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
  animation: fadeInUp 0.5s ease;
  font-weight: 500;
}

.success-message.visible {
  display: block;
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */

@media (max-width: 768px) {
  .hero {
    padding:
        60px
        16px
        24px;
  }

  .hero__background img {
    object-position: 65% center;
    transform: scale(1.2);
  }

  .hero__frame {
    padding:
        40px
        20px
        30px;

    border-radius: 16px;
  }

  .hero__logo {
    margin-bottom: 16px;
  }

  .hero__logo img {
    width: 48px;
  }

  .hero__headline {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: 1.1;

    margin-bottom: 12px;
  }

  .hero__subheadline {
    font-size: clamp(0.9rem, 4vw, 0.95rem);
    line-height: 1.5;

    margin-bottom: 20px;
  }

  .email-form {
    gap: 10px;
  }

  .email-form__input {
    height: 48px;
    font-size: 0.9rem;
  }

  .email-form__button {
    width: 100%;
    min-width: auto;
    height: 48px;
  }

  .email-form__microcopy {
    font-size: 0.72rem;
  }

  .countdown {
    gap: 8px;
    margin-top: 20px;
  }

  .countdown__item {
    width: calc(50% - 4px);
    height: 70px;
    border-radius: 10px;
  }

  .countdown__number {
    font-size: 1.8rem;
  }

  .countdown__label {
    margin-top: 6px;
    font-size: 0.6rem;
  }

  .social-links {
    gap: 12px;
    margin-top: 16px;
  }

  .social-links__link {
    width: 36px;
    height: 36px;
  }

  .social-links__icon {
    width: 18px;
    height: 18px;
  }
}

/* Landscape / short viewport fix */
@media (orientation: landscape) and (max-height: 700px) {
  .hero {
    min-height: 100svh;
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .hero__frame {
    padding: 1.2rem 1rem;
  }
  
  .hero__logo {
    margin-bottom: 12px;
  }
  
  .hero__logo img {
    width: 40px;
  }
  
  .hero__headline {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    margin-bottom: 0.5rem;
  }
  
  .hero__subheadline {
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    margin-bottom: 0.6rem;
  }
  
  .email-form {
    gap: 8px;
  }
  
  .email-form__input {
    height: 42px;
    font-size: 0.85rem;
  }
  
  .email-form__button {
    height: 42px;
    min-width: 160px;
  }
  
  .countdown {
    margin-top: 0.6rem;
    gap: 0.3rem;
  }
  
  .countdown__item {
    width: 60px;
    height: 60px;
  }
  
  .countdown__number {
    font-size: 1.3rem;
  }
  
  .countdown__label {
    font-size: 0.5rem;
    margin-top: 3px;
  }
  
  .social-links {
    margin-top: 0.6rem;
    gap: 10px;
  }
  
  .social-links__link {
    width: 32px;
    height: 32px;
  }
  
  .social-links__icon {
    width: 16px;
    height: 16px;
  }
}
