/* The Pearl Design System - Coming Soon Landing Page */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&family=Marcellus:wght@400&display=swap');

/* CSS Variables - Matching exact branding from src/index.css */
:root {
  /* Luxury Brand Colors - HSL values */
  --deep-navy: hsl(210, 65%, 8%);
  --midnight-blue: hsl(210, 50%, 20%);
  --champagne-gold: hsl(45, 35%, 55%);
  --champagne-light: hsl(45, 40%, 65%);
  --pearl-white: hsl(30, 15%, 97%);
  --warm-taupe: hsl(30, 20%, 80%);
  --soft-cream: hsl(40, 25%, 96%);
  
  /* System colors */
  --background: var(--pearl-white);
  --foreground: var(--deep-navy);
  --border: hsl(30, 15%, 85%);
  --input-border: hsl(30, 15%, 85%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(10, 24, 40, 0.08);
  --shadow-medium: 0 8px 30px rgba(10, 24, 40, 0.12);
  --shadow-luxury: 0 16px 50px rgba(10, 24, 40, 0.15);
  --shadow-lg: 0 10px 25px rgba(10, 24, 40, 0.15);
  --shadow-xl: 0 12px 40px rgba(10, 24, 40, 0.2);
  
  /* Transitions */
  --transition-smooth: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-luxury: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  
  /* Border radius */
  --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  /* Responsive hero image set dynamically by JavaScript */
  background-image: var(--hero-bg-image, url('img/hero/the-pearl-exterior-1a-1920.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 24, 40, 0.7) 0%, rgba(10, 24, 40, 0.5) 100%);
  z-index: 0;
}

/* Subtle ripple effect overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
  animation: ripple 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes ripple {
  0%, 100% {
    transform: scale(1) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05) translateX(10px);
    opacity: 0.15;
  }
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
  /* Ensure content is above background layers */
}

/* Logo */
.logo-container {
  animation: fadeInUp 0.6s ease-out;
}

.logo {
  height: auto;
  width: 100%;
  max-width: 150px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
  .logo {
    max-width: 180px;
  }
}

@media (min-width: 1024px) {
  .logo {
    max-width: 220px;
  }
}

/* Coming Soon Message */
.coming-soon-message {
  text-align: center;
  color: white;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  max-width: 800px;
}

.heading {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subheading {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--champagne-gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.location {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Manrope', sans-serif;
  font-style: italic;
}

.description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Form Container */
.form-container {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.form-card {
  background: hsl(0, 0%, 100%);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-luxury);
  padding: 2rem;
  position: relative;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: hsl(210, 15%, 45%);
  font-family: 'Manrope', sans-serif;
}

/* Form Styles */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  font-family: 'Manrope', sans-serif;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  color: var(--foreground);
  background: white;
  transition: var(--transition-smooth);
  min-height: 44px; /* Ensure touch target meets accessibility standards */
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.2);
}

.form-input::placeholder {
  color: hsl(210, 15%, 60%);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  color: var(--foreground);
  background: white;
  transition: var(--transition-smooth);
  resize: vertical;
  /* Ensure touch target meets accessibility standards - textarea needs more height than inputs */
  min-height: 80px;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.2);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: hsl(0, 72%, 51%);
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  cursor: pointer;
  accent-color: var(--champagne-gold);
  flex-shrink: 0;
  /* Ensure touch target meets accessibility standards on mobile */
  min-width: 1.125rem;
  min-height: 1.125rem;
}

.checkbox-label {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--foreground);
  cursor: pointer;
  line-height: 1.5;
  font-family: 'Manrope', sans-serif;
  user-select: none;
}

.checkbox-label:hover {
  color: var(--midnight-blue);
}

.form-error {
  font-size: 0.875rem;
  color: hsl(0, 72%, 51%);
  margin-top: 0.5rem;
  font-family: 'Manrope', sans-serif;
}

/* Button Styles - Luxury Variant */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-luxury {
  width: 100%;
  background: linear-gradient(to right, var(--champagne-gold), var(--champagne-light));
  color: var(--deep-navy);
  box-shadow: var(--shadow-lg);
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-luxury:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn-luxury:active:not(:disabled) {
  transform: translateY(0) scale(1);
}

.btn-luxury:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: flex;
}

/* Spinner Animation */
.spinner {
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Form Footer */
.form-footer {
  font-size: 0.75rem;
  color: hsl(210, 15%, 45%);
  text-align: center;
  margin-top: 0.5rem;
  font-family: 'Manrope', sans-serif;
}

/* Success Message */
.success-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: hsl(142, 76%, 96%);
  border: 1px solid hsl(142, 76%, 85%);
  border-radius: var(--radius);
  animation: fadeInUp 0.4s ease-out;
}

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

.success-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.success-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(142, 76%, 36%);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.success-title {
  font-weight: 600;
  color: hsl(142, 76%, 20%);
  margin-bottom: 0.25rem;
  font-family: 'Manrope', sans-serif;
}

.success-description {
  font-size: 0.875rem;
  color: hsl(142, 76%, 30%);
  font-family: 'Manrope', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
    /* Remove fixed background attachment on mobile for better performance */
    background-attachment: scroll;
    /* Add safe area insets for devices with notches */
    padding-top: max(2rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  .logo {
    max-width: 280px;
  }
  
  .form-card {
    padding: 1.5rem;
  }
  
  .heading {
    font-size: 2.5rem;
  }
  
  .subheading {
    font-size: 2rem;
  }
  
  .description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  .hero-content {
    gap: 1.25rem;
  }
  
  .form-card {
    padding: 1.25rem;
  }
  
  .enquiry-form {
    gap: 1rem;
  }
  
  .form-header {
    margin-bottom: 1.25rem;
  }
  
  .checkbox-group {
    gap: 0.25rem;
  }
  
  /* Increase checkbox size for better touch interaction on small screens */
  .checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
  }
  
  /* Ensure button maintains proper touch target */
  .btn-luxury {
    min-height: 44px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible styles for keyboard navigation */
.form-input:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--champagne-gold);
  outline-offset: 2px;
}

