/* ==========================================================================
   HIRAMON LUXURY COMING SOON - CORE STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Palette */
  --hm-color-maroon: #5B0B00;
  --hm-color-maroon-dark: #3D0700;
  --hm-color-bg: #F8F5EF;
  --hm-color-accent: #A45C40;
  --hm-color-accent-light: #FAF3E0;
  --hm-color-charcoal: #24201D;
  --hm-color-muted: #6B6560;
  --hm-color-border: #E2DBD0;
  --hm-color-white: #FFFFFF;
  
  /* State Colors */
  --hm-color-success: #2E5A36;
  --hm-color-error: #8B1E1E;

  /* Typography */
  --hm-font-heading: 'DM Serif Display', Georgia, serif;
  --hm-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Layout */
  --hm-max-width: 1140px;
  --hm-content-width: 760px;
  --hm-radius-sm: 4px;
  --hm-radius-pill: 100px;
  --hm-shadow-soft: 0 12px 32px rgba(91, 11, 0, 0.05);
  --hm-shadow-focus: 0 0 0 3px rgba(164, 92, 64, 0.25);

  /* Animation Timings */
  --hm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hm-duration-base: 0.6s;
}

/* --- Base Reset & Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--hm-font-body);
  background-color: var(--hm-color-bg);
  color: var(--hm-color-charcoal);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* --- Screen Reader Accessibility Utility --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   BACKGROUND TEXTURE & ARTISTIC OVERLAYS
   ========================================================================== */

/* SVG Craft Grain Texture Overlay */
.hm-bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Radial Warm Light Gradient */
.hm-radial-spotlight {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(250, 243, 224, 0.6) 0%, rgba(248, 245, 239, 0) 70%);
}

/* ==========================================================================
   LAYOUT CANVAS
   ========================================================================== */

.hm-landing-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.hm-header {
  width: 100%;
  max-width: var(--hm-max-width);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
}

.hm-logo-link {
  display: inline-block;
  text-decoration: none;
  border-radius: var(--hm-radius-sm);
  transition: transform 0.3s var(--hm-ease-out);
}

.hm-logo-link img {
    max-width: 160px;
    width: 100%;
    margin: auto;
    display: block;
}

.hm-logo-link:focus-visible {
  outline: none;
  box-shadow: var(--hm-shadow-focus);
}

.hm-logo-link:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN HERO CONTENT
   ========================================================================== */

.hm-hero {
  width: 100%;
  max-width: var(--hm-content-width);
  margin: auto 0;
  padding: 20px 0 40px;
  text-align: center;
}

.hm-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow Tag */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hm-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hm-color-accent);
  background-color: var(--hm-color-accent-light);
  padding: 6px 16px;
  border-radius: var(--hm-radius-pill);
  border: 1px solid rgba(164, 92, 64, 0.15);
  margin-bottom: 24px;
}

.hm-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--hm-color-maroon);
  display: inline-block;
}

/* Headline */
.hm-title {
  font-family: var(--hm-font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--hm-color-maroon);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Description Paragraph */
.hm-description {
  font-family: var(--hm-font-body);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--hm-color-charcoal);
  max-width: 640px;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ==========================================================================
   EMAIL SUBSCRIPTION FORM
   ========================================================================== */

.hm-subscribe {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hm-subscribe__heading {
  font-family: var(--hm-font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--hm-color-maroon);
  margin-bottom: 6px;
}

.hm-subscribe__subtext {
  font-size: 0.875rem;
  color: var(--hm-color-muted);
  margin-bottom: 24px;
}

/* Form Inline Controls */
.hm-form__group {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--hm-color-white);
  border: 1px solid var(--hm-color-border);
  border-radius: var(--hm-radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--hm-shadow-soft);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hm-form__group:focus-within {
  border-color: var(--hm-color-accent);
  box-shadow: var(--hm-shadow-focus);
}

.hm-form__input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-family: var(--hm-font-body);
  font-size: 0.9375rem;
  color: var(--hm-color-charcoal);
  outline: none;
  width: 100%;
}

.hm-form__input::placeholder {
  color: #A09A93;
}

/* Button Component */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--hm-color-maroon);
  color: var(--hm-color-white);
  font-family: var(--hm-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border: none;
  border-radius: var(--hm-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s var(--hm-ease-out), transform 0.2s var(--hm-ease-out);
}

.hm-btn:hover {
  background-color: var(--hm-color-maroon-dark);
  transform: translateY(-1px);
}

.hm-btn:active {
  transform: translateY(0);
}

.hm-btn:focus-visible {
  outline: none;
  box-shadow: var(--hm-shadow-focus);
}

.hm-btn__icon {
  transition: transform 0.3s var(--hm-ease-out);
}

.hm-btn:hover .hm-btn__icon {
  transform: translateX(3px);
}

/* Loading Spinner */
.hm-btn__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--hm-color-white);
  border-radius: 50%;
  animation: hm-spin 0.8s linear infinite;
}

@keyframes hm-spin {
  to { transform: rotate(360deg); }
}

.hm-btn--loading .hm-btn__spinner {
  display: inline-block;
}

.hm-btn--loading .hm-btn__icon,
.hm-btn--loading .hm-btn__text {
  display: none;
}

/* Form Feedback Messages */
.hm-form__message {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 10px;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

.hm-form__message--success {
  color: var(--hm-color-success);
}

.hm-form__message--error {
  color: var(--hm-color-error);
}

/* ==========================================================================
   FOOTER & SOCIALS
   ========================================================================== */

.hm-footer {
  width: 100%;
  max-width: var(--hm-max-width);
  padding-top: 20px;
  text-align: center;
}

.hm-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hm-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--hm-color-maroon);
  background-color: rgba(91, 11, 0, 0.04);
  text-decoration: none;
  transition: all 0.3s var(--hm-ease-out);
}

.hm-social-link:hover {
  background-color: var(--hm-color-maroon);
  color: var(--hm-color-white);
  transform: translateY(-2px);
}

.hm-social-link:focus-visible {
  outline: none;
  box-shadow: var(--hm-shadow-focus);
}

.hm-footer__note {
  font-size: 0.8125rem;
  color: var(--hm-color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hm-footer__divider {
  font-size: 0.625rem;
  opacity: 0.5;
}

/* ==========================================================================
   STAGGERED FADE-UP REVEAL ANIMATIONS
   ========================================================================== */

.hm-reveal-item {
  opacity: 0;
  transform: translateY(24px);
  animation: hmFadeUp var(--hm-duration-base) var(--hm-ease-out) forwards;
  animation-delay: calc(var(--reveal-index, 1) * 0.12s);
}

@keyframes hmFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect Reduced Motion Accessibility Settings */
@media (prefers-reduced-motion: reduce) {
  .hm-reveal-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hm-btn, 
  .hm-social-link, 
  .hm-btn__icon,
  .hm-logo-link {
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 640px) {
  .hm-landing-wrapper {
    padding: 24px 16px;
  }

  .hm-eyebrow {
    font-size: 0.625rem;
    padding: 5px 12px;
  }

  .hm-form__group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: 12px;
  }

  .hm-form__input {
    background-color: var(--hm-color-white);
    border: 1px solid var(--hm-color-border);
    border-radius: var(--hm-radius-pill);
    padding: 14px 20px;
    box-shadow: var(--hm-shadow-soft);
    text-align: center;
  }

  .hm-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .hm-footer__note {
    flex-direction: column;
    gap: 4px;
  }

  .hm-footer__divider {
    display: none;
  }
}
