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

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

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  line-height: 1.8;
  color: #3e3c38; /* Dark Warm Grey */
  background-color: #fdfcf8; /* Very Light Cream */
  overflow-x: hidden;
  opacity: 0; /* Initial state for fade-in */
  transition: opacity 1.2s ease-in-out;
}

/* Subtle Noise Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body.loaded {
  opacity: 1;
}

a {
  color: #a65d57; /* Muted Terracotta */
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 93, 87, 0.2);
  transition: all 0.3s ease;
}

a:hover {
  color: #7a8b7a; /* Sage Green */
  border-bottom: 1px solid rgba(122, 139, 122, 0.6);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.25;
  color: #2c2a25; /* Dark Charcoal Brown */
}

h1 { font-size: 3.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2.6rem; margin-top: 3.5rem; }
h3 { font-size: 1.8rem; margin-top: 2rem; font-style: italic; color: #5d5a55; }

p { margin-bottom: 1.8rem; font-weight: 300; }

/* Layout */
.container {
  max-width: 1000px; /* Slightly narrower for readability */
  margin: 0 auto;
  padding: 0 40px;
}

header {
  padding: 70px 0;
  text-align: center;
  border-bottom: 1px solid rgba(44, 42, 37, 0.08); /* Soft border */
  margin-bottom: 70px;
  background-color: #fdfcf8;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 25px;
}

nav a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  border-bottom: none;
  color: #5d5a55;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #a65d57;
  border-bottom: 1px solid #a65d57;
}

footer {
  margin-top: 120px;
  padding: 80px 0;
  background: #f0efe9; /* Warm Light Grey/Beige */
  text-align: center;
  font-size: 0.95rem;
  color: #706d68;
  border-top: 1px solid rgba(44, 42, 37, 0.05);
}

/* Phase 4: AdSense CLS Armor */
.ad-container-leaderboard {
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
  background-color: #f7f6f2; /* Light Beige */
  border: 1px dashed rgba(44, 42, 37, 0.1);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .ad-container-leaderboard {
    min-height: 250px;
  }
}

/* Artistic & Modern Aesthetics */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out, filter 1.2s ease-out;
  will-change: opacity, transform, filter;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.hero {
  text-align: center;
  padding: 140px 20px;
  margin-bottom: 100px;
  /* Warm gradient */
  background: radial-gradient(circle at 50% 50%, #fffcf5 0%, #f0efe9 100%);
  border-radius: 8px; /* Softer edges */
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 30px;
  color: #2c2a25;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #5d5a55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 70px;
  margin: 90px 0;
}

.feature-card {
  padding: 45px;
  background: #fff; /* Pure white creates nice contrast on cream BG */
  border: 1px solid rgba(44, 42, 37, 0.06);
  border-radius: 6px; /* Softer radius */
  box-shadow: 0 4px 20px rgba(44, 42, 37, 0.03); /* Warmer shadow */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  opacity: 0; /* Handled by JS stagger */
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(44, 42, 37, 0.08);
}

.feature-card h2 { margin-top: 0; font-size: 2.2rem; color: #2c2a25; }
.feature-card h3 { margin-top: 0; font-size: 1.6rem; color: #a65d57; font-style: normal; }

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: #4a4843; /* Dark Warm Grey */
  color: #fff; /* Off-white text */
  border-radius: 4px;
  margin-top: 35px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  border: 1px solid #4a4843;
  transition: all 0.4s ease;
}

.btn:hover {
  background: transparent;
  color: #a65d57; /* Terracotta on hover */
  border-color: #a65d57;
}

/* Reviews Page Specifics */
.review-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c7b75; /* Warm Taupe */
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(44, 42, 37, 0.1);
  padding-bottom: 1rem;
}

.review-content {
  font-size: 1.15rem;
  line-height: 1.9;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #4a4843;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #a65d57;
  transform: translateY(-3px);
}

/* Stagger Delays */
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }

/* Scroll Bar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fdfcf8;
}

::-webkit-scrollbar-thumb {
  background: #dcdbd5; /* Muted warm grey */
  border-radius: 5px;
  border: 2px solid #fdfcf8;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8b6af;
}
