/* ============================================
   MAIN.CSS - Global Styles for Tiny Mobile Space
   ============================================ */

@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;600&display=swap');

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

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); line-height: 1.8; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: 5rem 0; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 2rem; }
.bg-alt { background-color: var(--bg-alt); }

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-color);
  max-width: 360px;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hide-mobile { display: none; }
}

/* --- Reviews Marquee --- */
.reviews-section {
  background-color: var(--bg-alt);
  padding: 3rem 0;
  overflow: hidden;
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  padding: 1rem 0;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  animation: scroll-left 120s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* Assumes the track content is duplicated once */
}

.review-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 2rem 1.5rem;
  width: 360px;
  min-width: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  white-space: normal;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.review-card-quote {
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent-color);
  font-family: Georgia, serif;
  opacity: 0.4;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.review-author {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.3;
}

.review-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: #F59E0B;
  font-size: 0.9rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

