/*
Theme Name: GHAZARCCI Teaser
Theme URI: https://ghazarcci.com
Author: GHAZARCCI LLC
Author URI: https://ghazarcci.com
Description: Mobile-friendly high-fashion utilitarian workwear coming-soon teaser theme for GHAZARCCI.
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghazarcci
*/

:root {
  --bg-deep: #070809;
  --bg-card: rgba(18, 20, 23, 0.96);
  --metal-charcoal: #1c1f24;
  --metal-light: #2b3038;
  --mineral-teal: #004749;
  --mineral-teal-light: #0d6b6e;
  --sand-clay: #b09b72;
  --sand-gold: #c5a880;
  --alabaster: #ededed;
  --alabaster-muted: #8e959e;
  --border-subtle: rgba(176, 155, 114, 0.22);
  --border-bright: rgba(197, 168, 128, 0.5);
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--alabaster);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.site-viewport {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-deep);
  isolation: isolate;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.65) contrast(1.18) saturate(0.9);
  z-index: -3;
}

.bg-overlay-teal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 71, 73, 0.28) 0%, rgba(7, 8, 9, 0.88) 75%, #070809 100%);
  z-index: -2;
  pointer-events: none;
}

.bg-texture-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Top Header */
.site-header {
  width: 100%;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.brand-tag {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: var(--sand-clay);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background-color: var(--mineral-teal-light);
  border-radius: 50%;
  box-shadow: 0 0 10px #00f0ff;
  animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--alabaster-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--sand-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-btn:hover {
  color: var(--alabaster);
}

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

/* Main Hero Center */
.hero-center {
  width: 100%;
  max-width: 900px;
  margin: auto;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 15%, #d1d5db 70%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
  max-width: 100%;
  word-wrap: break-word;
}

.hero-subhead {
  font-size: 0.86rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--sand-clay);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 22px;
  background: rgba(0, 71, 73, 0.28);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #c9eff1;
  text-transform: uppercase;
  margin-bottom: 34px;
  backdrop-filter: blur(8px);
}

.waitlist-card {
  width: 100%;
  max-width: 520px;
  background: rgba(18, 20, 23, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 9, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 16px;
  color: var(--alabaster);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  outline: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.waitlist-input:focus {
  border-color: var(--sand-gold);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.2);
}

.waitlist-btn {
  background: linear-gradient(135deg, var(--sand-gold) 0%, #95794d 100%);
  color: #0d0e10;
  border: none;
  padding: 15px 26px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 48px;
}

.waitlist-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.form-msg {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  margin-top: 8px;
  min-height: 20px;
  color: var(--sand-gold);
  line-height: 1.5;
  padding: 0 12px;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 9, 0.96) 100%);
  position: relative;
  z-index: 10;
}

.footer-nav, .footer-socials {
  display: flex;
  gap: 22px;
  list-style: none;
}

.footer-link, .social-link {
  color: var(--alabaster-muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover, .social-link:hover {
  color: var(--alabaster);
}

.copyright-text {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(237, 237, 237, 0.45);
  text-transform: uppercase;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 7, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  width: 100%;
  max-width: 680px;
  padding: 40px;
  position: relative;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--alabaster-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--sand-gold);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  color: var(--sand-gold);
  text-transform: uppercase;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  padding-right: 36px;
}

.modal-body {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--alabaster-muted);
  letter-spacing: 0.05em;
}

.timeline-item {
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--mineral-teal);
}

.timeline-date {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--sand-clay);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* =========================================================
   MOBILE & PHONE RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 768px) {
  .site-header {
    padding: 18px 16px 10px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .brand-tag {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero-center {
    padding: 20px 18px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.8rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero-subhead {
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    margin-bottom: 20px;
  }

  .launch-pill {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    padding: 8px 16px;
    margin-bottom: 26px;
  }

  /* Prevent iOS Safari auto-zoom by keeping input font-size >= 16px */
  .waitlist-input {
    font-size: 16px;
    padding: 14px;
  }

  .site-footer {
    padding: 18px 16px 24px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-nav, .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .copyright-text {
    order: 3;
    margin-top: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .modal-content {
    padding: 28px 20px;
  }

  .modal-title {
    font-size: 1.2rem;
    letter-spacing: 0.16em;
  }
}

/* Small Phone Screens: Stack Email Box & Button Vertically */
@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
    gap: 8px;
  }

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

  .waitlist-btn {
    width: 100%;
    padding: 15px;
  }
}
