/*
Theme Name: Hello Elementor Child - Modern
Theme URI: https://weckapp.com
Description: Child theme of Hello Elementor with a modern styling layer. Parent theme is never modified.
Author: ABC Creative Agency
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Change these variables to retheme the whole site from one place.
   ========================================================================== */
:root {
  --color-primary: #6C5CE7;
  --color-primary-dark: #5849c2;
  --color-accent: #00D2A0;
  --color-ink: #14151A;
  --color-ink-soft: #55575F;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F7F7FB;
  --color-border: #EAEAF0;
  --color-star: #FFB800;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(20, 21, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 21, 26, 0.08);
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --transition: all 0.2s ease;
}

/* ==========================================================================
   2. GLOBAL MODERN STYLING
   Applies on top of Hello Elementor's minimal base without editing it.
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

a {
  transition: var(--transition);
}

/* Buttons - covers Elementor default + theme buttons */
.elementor-button,
button,
input[type="submit"] {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 0.85em 1.8em !important;
  transition: var(--transition) !important;
  background-color: var(--color-primary) !important;
  border: none !important;
}

.elementor-button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cards / boxed sections */
.elementor-widget-container {
  --card-radius: var(--radius-md);
}

/* Generic modern card helper class you can add to any Elementor section via
   Advanced > CSS Classes */
.modern-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.modern-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Section spacing helper - add class "modern-section" to any Elementor section */
.modern-section {
  padding-top: 6vw;
  padding-bottom: 6vw;
}

/* ==========================================================================
   3. REVIEWS GRID
   Powers the [modern_reviews] shortcode.
   ========================================================================== */
.mr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.mr-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.mr-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mr-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.mr-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mr-card__stars {
  color: var(--color-star);
  font-size: 18px;
  letter-spacing: 2px;
}

.mr-card__stars .mr-star-empty {
  color: var(--color-border);
}

.mr-card__text {
  color: var(--color-ink-soft);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.mr-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
}

.mr-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.mr-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-ink-soft);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
}

@media (max-width: 600px) {
  .mr-grid {
    grid-template-columns: 1fr;
  }
}
