/* Bliss on Riverside — Global CSS Stylesheet */

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

:root {
  --primary: #1A4A5C;        /* River Deep */
  --primary-hover: #0E3344;
  --secondary: #D4A853;      /* Sunrise Gold */
  --secondary-hover: #C59842;
  --bg: #F8F5F0;             /* Linen background */
  --bg-dark: #123340;        /* Deep River */
  --surface: #FFFFFF;        /* Soft White */
  --text: #1E2022;           /* Charcoal */
  --text-light: #6B7A85;     /* River Mist */
  --border: #DDE4E9;         /* Light Blue-Grey */
  --accent: #2D7D6F;         /* River Green */
  
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 10px 40px -10px rgba(26, 74, 92, 0.05), 0 1px 3px rgba(26, 74, 92, 0.02);
  --shadow-hover: 0 30px 60px -15px rgba(26, 74, 92, 0.1), 0 1px 5px rgba(26, 74, 92, 0.03);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
  overflow-x: hidden;
}

/* Custom Selection & Scrollbar */
::selection {
  background-color: var(--primary);
  color: var(--surface);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(26, 74, 92, 0.15);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  font-weight: 300;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
  font-weight: 400;
}

h3 {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 400;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

.section {
  padding: 90px 0;
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding: 140px 0;
  }
}

/* Flex & Grid Systems */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Premium Asymmetric Column Split */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .editorial-split {
    grid-template-columns: 5fr 7fr;
    gap: 90px;
  }
  .editorial-split.reverse {
    grid-template-columns: 7fr 5fr;
  }
}

/* Rotated Badge Styling */
.badge-rotated {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}

.badge-rotated::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.2rem;
  height: 1px;
  background-color: var(--secondary);
}

/* Premium Buttons with Fluid Hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: 40px; /* Fully rounded pill buttons feel more modern and premium */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--surface);
  box-shadow: 0 10px 25px -5px rgba(26, 74, 92, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(26, 74, 92, 0.3);
  color: var(--primary);
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline {
  background-color: transparent;
  color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
  color: var(--primary);
  border-color: var(--surface);
  transform: translateY(-3px);
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--surface);
  box-shadow: 0 10px 25px -5px rgba(212, 168, 83, 0.2);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  color: var(--surface);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(212, 168, 83, 0.3);
}

.btn-secondary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Alignment and helper classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3.5rem; }

/* Dynamic Animations */
[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ken Burns Zoom Effect */
@keyframes kenBurns {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -0.5%); }
  100% { transform: scale(1.02) translate(0, 0); }
}

/* Premium Visual Upgrades & Micro-animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes goldGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(212, 168, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
}

.glow-hover:hover {
  box-shadow: 0 10px 30px -5px rgba(212, 168, 83, 0.35);
  border-color: var(--secondary) !important;
}

.reveal-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

