/*
Theme Name: Hotel Baby Coming Soon
Theme URI: https://thehotelbaby.com
Author: By Suraj
Author URI: https://thehotelbaby.com
Description: A luxury coming soon theme for The Hotel Baby — featuring silk fabric aesthetics, chrome metallic typography, and an elegant editorial feel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotel-baby-coming-soon
Tags: coming-soon, one-page, responsive-layout, custom-logo, custom-colors, full-width-template, luxury
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;1,6..96,400;1,6..96,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Montserrat:wght@300;400;500&display=swap');

/* ============================================================
   CSS RESET & ROOT VARIABLES
   ============================================================ */

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

:root {
  --cream: #f0ebe3;
  --cream-dark: #e8dfd4;
  --cream-mid: #ede7de;
  --silk-warm: #f5f0e8;
  --silk-light: #faf8f4;
  --silver-1: #ffffff;
  --silver-2: #e8e8e8;
  --silver-3: #c8c8c8;
  --silver-4: #a0a0a0;
  --silver-5: #707070;
  --silver-6: #404040;
  --chrome-highlight: #f8f8f8;
  --chrome-mid: #d0d0d0;
  --chrome-shadow: #808080;
  --chrome-deep: #202020;
  --burgundy: #8B1A1A;
  --dark-red: #6B0F0F;
  --red-sphere: #9B2020;
  --nav-color: #4a4540;
  --text-dark: #2c2825;
  /* Title font: Bodoni Moda — high-contrast Didone to match reference */
  --font-serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', 'Georgia', serif;
  --font-sans: 'Cormorant Garamond', 'Georgia', serif;
  --font-nav: 'Montserrat', 'Arial', sans-serif;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-nav);
  background-color: #f0ebe3;
  /* fallback if image fails to load */
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SILK FABRIC BACKGROUND
   ============================================================ */

.site-wrapper {
  position: relative;
  min-height: 100vh;
  background: transparent;
  /* background.png shown via .silk-bg */
  overflow: hidden;
}

/* ─── Silk SVG filter (applied via CSS filter property) ─── */

/* Inline SVG filter for fabric turbulence is injected via JS below;
   the .silk-folds element uses a CSS filter referencing it */

/* Background image */
.silk-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('assets/images/background.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Silk fold overlays — disabled (real background image is used) */
.silk-folds {
  display: none;
}

.silk-folds::before,
.silk-folds::after {
  display: none;
}

/* Shimmer — disabled */
@keyframes silkShimmer {

  0%,
  100% {
    opacity: 0;
  }
}

.silk-shimmer {
  display: none;
}

/* ============================================================
   CONTENT LAYER
   ============================================================ */

.content-layer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  margin-top: 0px;
  position: relative;
}

/* Logo / Monogram — elegant italic serif, no box */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* PNG/SVG logo image */
.site-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.logo-monogram {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-block;
  /* No border box — clean editorial letterform */
}

/* Remove the box styling — keep .logo-box class harmless */
.logo-box {
  border: none;
  padding: 0;
  display: inline-block;
  line-height: 1;
}

/* Primary Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav ul li a {
  font-family: var(--font-nav);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1714;
  /* dark — almost black */
  text-decoration: none;
  transition: color 0.3s var(--transition), opacity 0.3s;
  opacity: 1;
  white-space: nowrap;
}

.site-nav ul li a:hover {
  opacity: 1;
  color: #000000;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #1a1714;
  opacity: 1;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.nav-search-btn:hover {
  opacity: 1;
}

.nav-search-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Hamburger for mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  transition: all 0.3s;
}

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

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 40px 60px;
  gap: 32px;
}

/* "THE" subtitle above main title */
.hero-subtitle {
  font-family: var(--font-nav);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.72em;
  text-transform: uppercase;
  color: rgba(140, 130, 120, 0.85);
  margin-bottom: -6px;
}

/* ============================================================
   CHROME METALLIC TITLE
   ============================================================ */

.hero-title-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  user-select: none;
  overflow: visible;
}

/* Hero center logo image (replaces chrome text) */
.hero-logo-img {
  width: 72%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  /* Subtle drop shadow so transparent PNG lifts off the silk bg */
  filter:
    drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.12)) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.08));
  animation: titleReveal 1.4s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-title {
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  /* Large enough that after scaleX(0.80) it still fills ~85% of viewport width */
  font-size: clamp(5.5rem, 15vw, 14.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.85;
  letter-spacing: 0.01em;
  margin: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.02em;
  white-space: nowrap;
}

/* ─── THE KEY TRICK: horizontal compression ───
   scaleX(0.80) makes letters 20% narrower → tall, condensed editorial look
   transform-origin: center keeps text centred
   Note: scaleX is on the inner span, not the h1, so alignment stays clean */

/* Chrome / metallic text effect
   Formula: dark-grey → bright-white → mid-silver → near-black → white gleam */
.chrome-text {
  display: inline-block;
  /* needed for transform to work on inline text */
  transform: scaleX(0.80);
  transform-origin: center center;
  background: linear-gradient(180deg,
      #b0b0b0 0%,
      /* dark top edge */
      #f8f8f8 8%,
      /* bright highlight band */
      #ffffff 14%,
      /* peak white */
      #d8d8d8 22%,
      /* mid silver */
      #a8a8a8 30%,
      /* shadow */
      #e8e8e8 38%,
      /* secondary highlight */
      #c0c0c0 46%,
      /* mid tone */
      #989898 55%,
      /* shadow band */
      #d4d4d4 63%,
      /* lift */
      #686868 72%,
      /* dark lower */
      #303030 82%,
      /* near-black */
      #181818 90%,
      /* deep dark */
      #f0f0f0 96%,
      /* bottom gleam */
      #c8c8c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  filter:
    drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.6))
    /* top edge highlight */
    drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.22))
    /* lift shadow */
    drop-shadow(0px 10px 30px rgba(0, 0, 0, 0.12));
  /* ambient */
}

/* Inner specular highlight — sharp white glint along character edges */
.chrome-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: scaleX(1);
  /* inherits parent scaleX already */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 1.00) 0%,
      rgba(255, 255, 255, 0.85) 8%,
      rgba(255, 255, 255, 0.25) 22%,
      transparent 38%,
      transparent 58%,
      rgba(255, 255, 255, 0.30) 75%,
      rgba(255, 255, 255, 0.10) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
}

/* Ground shadow — soft downward cast for 3-D lift */
.chrome-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 6px 0 -6px 0;
  background: linear-gradient(180deg,
      transparent 38%,
      rgba(50, 32, 16, 0.35) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  filter: blur(2.5px);
}

/* The red period sphere */
.hero-title .title-period {
  position: relative;
  margin-left: 0.04em;
  margin-bottom: 0.12em;
  flex-shrink: 0;
}

.red-sphere {
  display: inline-block;
  width: clamp(18px, 2.5vw, 36px);
  height: clamp(18px, 2.5vw, 36px);
  background: radial-gradient(circle at 35% 30%,
      #e86060 0%,
      #c02020 25%,
      #8B1010 55%,
      #5a0808 80%,
      #3a0505 100%);
  border-radius: 50%;
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.35),
    inset -2px -2px 4px rgba(0, 0, 0, 0.3),
    inset 1px 1px 3px rgba(255, 120, 120, 0.4);
  vertical-align: bottom;
  margin-bottom: 0.12em;
  margin-left: 0.03em;
  animation: sphereFloat 4s ease-in-out infinite;
  position: relative;
  bottom: clamp(4px, 1vw, 14px);
}

@keyframes sphereFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ============================================================
   COMING SOON TEXT
   ============================================================ */

.coming-soon-text {
  font-family: var(--font-nav);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 8px;
  opacity: 0;
  animation: fadeInUp 1.2s 0.8s var(--transition) forwards;
}

/* ============================================================
   SEARCH / SUBSCRIBE BAR
   ============================================================ */

.hero-search-wrap {
  width: 100%;
  max-width: 540px;
  opacity: 0;
  animation: fadeInUp 1.2s 1s var(--transition) forwards;
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 12px 12px 12px 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  gap: 10px;
  transition: box-shadow 0.3s var(--transition), border-color 0.3s;
}

.hero-search-form:focus-within {
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(200, 195, 190, 0.9);
}

.search-sparkle {
  flex-shrink: 0;
  color: var(--silver-4);
  display: flex;
  align-items: center;
}

.search-sparkle svg {
  width: 18px;
  height: 18px;
  fill: var(--silver-4);
}

.hero-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  caret-color: var(--text-dark);
}

.hero-search-input::placeholder {
  color: var(--silver-4);
  font-style: italic;
}

.search-submit-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(220, 215, 208, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.search-submit-btn:hover {
  background: rgba(200, 195, 188, 0.8);
  transform: scale(1.05);
}

.search-submit-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dark);
  fill: none;
  stroke-width: 2;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 32px;
  opacity: 0;
  animation: fadeIn 1.2s 1.5s var(--transition) forwards;
}

.scroll-indicator span {
  font-family: var(--font-nav);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-5);
}

.scroll-arrow {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--silver-5);
  fill: none;
  stroke-width: 1.5;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15)) drop-shadow(0px 6px 20px rgba(0, 0, 0, 0.08));
  }
}

.hero-subtitle {
  animation: fadeInUp 1s 0.2s var(--transition) forwards;
  opacity: 0;
}

.hero-title {
  animation: titleReveal 1.4s 0.4s var(--transition) forwards;
  opacity: 0;
}

/* ============================================================
   MOBILE NAVIGATION OVERLAY
   ============================================================ */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 240, 235, 0.97);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
}

.mobile-nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-overlay ul li a {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nav-color);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav-overlay ul li a:hover {
  color: var(--text-dark);
}

/* ============================================================
   COUNTDOWN TIMER (Optional Widget)
   ============================================================ */

.countdown-wrap {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  opacity: 0;
  animation: fadeInUp 1.2s 1.2s var(--transition) forwards;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-nav);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver-5);
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--silver-4);
  line-height: 1;
  padding-top: 2px;
  align-self: flex-start;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
  .site-header {
    padding: 10px 32px;
  }

  .site-nav ul {
    gap: 18px;
  }

  .hero-section {
    padding: 20px 28px 50px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .site-header {
    padding: 10px 20px;
  }

  /* Hide desktop nav, show hamburger */
  .site-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-section {
    padding: 16px 24px 40px;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(4rem, 18vw, 7.5rem);
  }

  .hero-logo-img {
    width: 80%;
  }

  .red-sphere {
    bottom: clamp(2px, 1vw, 8px);
  }

  .hero-search-wrap {
    max-width: 100%;
  }

  .countdown-wrap {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .logo-monogram {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
  }

  .hero-title {
    font-size: clamp(3.5rem, 20vw, 6rem);
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.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;
}

/* WordPress admin bar compatibility */
.admin-bar .content-layer {
  padding-top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .content-layer {
    padding-top: 46px;
  }
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: fadeInUp 1.2s 1.4s var(--transition) forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--silver-5);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s var(--transition);
}

.social-link:hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   SUBSCRIBE FORM STATES
   ============================================================ */

.subscribe-message {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 10px;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-search-form.submitted {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   SITE FOOTER / COPYRIGHT
   ============================================================ */

.site-footer {
  text-align: center;
  padding: 16px 24px 28px;
  position: relative;
  z-index: 10;
}

.copyright-text {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.75;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 70%);
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width 0.3s, height 0.3s;
}

/* ============================================================
   PRINT — Hide decorative layers
   ============================================================ */

@media print {

  .silk-bg,
  .silk-folds,
  .silk-shimmer,
  .cursor-glow,
  .scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
  }
}