/*
 * Pedro & Itzy — Matrimonios con Propósito
 * Main Stylesheet
 * Design: Editorial Mediterráneo Contemporáneo
 * Colors: Marfil #f5f0eb | Teal #1a4a3a | Terracota #c4622d | Sand #e8e0d8
 * Fonts: Playfair Display (headings) + Lato (body)
 * /assets/css/style.css
 */

/* ─── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --color-marfil:     #f5f0eb;
  --color-teal:       #1a4a3a;
  --color-teal-light: #2d6b54;
  --color-terracota:  #c4622d;
  --color-terracota-dark: #a34e22;
  --color-sand:       #e8e0d8;
  --color-sand-dark:  #d4c8bc;
  --color-text:       #2d3748;
  --color-text-muted: #718096;
  --color-white:      #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);

  --transition: 0.25s ease;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-teal);
}

a {
  color: var(--color-terracota);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-terracota-dark); }

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

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary-mcp {
  background-color: var(--color-terracota);
  border-color: var(--color-terracota);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: var(--radius-md);
  padding: .65rem 1.5rem;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary-mcp:hover, .btn-primary-mcp:focus {
  background-color: var(--color-terracota-dark);
  border-color: var(--color-terracota-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,98,45,.35);
}

.btn-outline-mcp {
  background-color: transparent;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: .6rem 1.5rem;
  transition: all var(--transition);
}
.btn-outline-mcp:hover, .btn-outline-mcp:focus {
  background-color: var(--color-teal);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-sand);
  box-shadow: var(--shadow-sm);
}

.navbar-brand .brand-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-teal);
  display: block;
  line-height: 1.1;
}
.navbar-brand .brand-text small {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.navbar .nav-link {
  font-weight: 400;
  color: var(--color-text);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-teal);
  background: var(--color-marfil);
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--color-marfil);
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/misc/hero-bg.png');
  background-size: cover;
  background-position: center right;
  opacity: .18;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  border-radius: 100px;
  padding: .35rem 1rem;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-teal);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  max-height: 600px;
}

/* ─── Section Utilities ──────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--marfil { background-color: var(--color-marfil); }
.section--teal { background-color: var(--color-teal); color: var(--color-white); }
.section--teal h2, .section--teal h3 { color: var(--color-white); }
.section--sand { background-color: var(--color-sand); }

.section-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-terracota);
  display: block;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-teal);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.mcp-card {
  background: var(--color-white);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.mcp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.mcp-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-marfil);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-teal);
  margin-bottom: 1.25rem;
}

/* ─── Feature Sections (Quiz / Book / Podcast) ───────────────────────────── */
.feature-block { padding: 5rem 0; }
.feature-block__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.feature-block__badge {
  display: inline-block;
  background: var(--color-terracota);
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.feature-block__title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--color-teal);
  margin-bottom: 1rem;
}

/* ─── Quiz Page ──────────────────────────────────────────────────────────── */
.quiz-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}
.quiz-progress { height: 6px; border-radius: 100px; background: var(--color-sand); }
.quiz-progress__bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-terracota));
  transition: width .4s ease;
}
.quiz-question { font-size: 1.3rem; color: var(--color-teal); margin: 1.5rem 0 1rem; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: .9rem 1.25rem;
  margin-bottom: .6rem;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  font-size: .95rem;
}
.quiz-option:hover { border-color: var(--color-teal); background: var(--color-marfil); }
.quiz-option.selected { border-color: var(--color-teal); background: var(--color-teal); color: var(--color-white); }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--color-sand-dark);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(26,74,58,.15);
  outline: none;
}
.form-label { font-weight: 700; font-size: .9rem; color: var(--color-teal); margin-bottom: .4rem; }

/* ─── Testimonials ───────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--color-white);
  border-left: 4px solid var(--color-terracota);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-card__quote { font-style: italic; font-size: 1.05rem; color: var(--color-text); margin-bottom: 1rem; }
.testimonial-card__author { font-weight: 700; color: var(--color-teal); }
.testimonial-card__location { font-size: .85rem; color: var(--color-text-muted); }

/* ─── Blog ───────────────────────────────────────────────────────────────── */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card__img { width: 100%; height: 220px; object-fit: cover; }
.blog-card__body { padding: 1.5rem; }
.blog-card__category { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-terracota); }
.blog-card__title { font-size: 1.15rem; color: var(--color-teal); margin: .5rem 0; }
.blog-card__excerpt { font-size: .9rem; color: var(--color-text-muted); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-teal); color: rgba(255,255,255,.85); }
.footer-newsletter { background: var(--color-teal-light); }
.footer-newsletter__title { font-family: var(--font-display); color: var(--color-white); font-size: 1.6rem; }
.footer-newsletter__subtitle { color: rgba(255,255,255,.75); }
.footer-newsletter__disclaimer { font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-main { background: var(--color-teal); }
.footer-brand strong { font-family: var(--font-display); color: var(--color-white); font-size: 1.1rem; }
.footer-brand small { color: rgba(255,255,255,.6); font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; }
.footer-about { font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-heading { font-family: var(--font-display); color: var(--color-white); font-size: 1rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-white); }
.footer-social a { color: rgba(255,255,255,.7); transition: color var(--transition), transform var(--transition); display: inline-block; }
.footer-social a:hover { color: var(--color-white); transform: translateY(-2px); }
.footer-bottom { background: rgba(0,0,0,.2); color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--color-white); }

/* ─── Admin ──────────────────────────────────────────────────────────────── */
.admin-sidebar { width: 260px; background: var(--color-teal); min-height: 100vh; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.75); border-radius: var(--radius-sm); padding: .65rem 1rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: var(--color-white); background: rgba(255,255,255,.12); }
.admin-stat-card { border-radius: var(--radius-lg); padding: 1.5rem; color: var(--color-white); }
.admin-stat-card--teal { background: var(--color-teal); }
.admin-stat-card--terracota { background: var(--color-terracota); }
.admin-stat-card--sand { background: var(--color-sand-dark); color: var(--color-text); }
.admin-stat-card__value { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.admin-stat-card__label { font-size: .85rem; opacity: .8; margin-top: .25rem; }

/* ─── Sidebar (blog/resource pages) ─────────────────────────────────────── */
.sidebar-widget {
  background: var(--color-marfil);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-sand);
}
.sidebar-widget--quiz { background: var(--color-teal); color: var(--color-white); }
.sidebar-widget--quiz h4 { color: var(--color-white); }
.sidebar-widget--quiz p { color: rgba(255,255,255,.8); font-size: .9rem; }
.sidebar-widget__icon { font-size: 2rem; margin-bottom: .75rem; }
.sidebar-social-link { color: var(--color-teal); transition: color var(--transition); }
.sidebar-social-link:hover { color: var(--color-terracota); }

/* ─── Popup ──────────────────────────────────────────────────────────────── */
.quiz-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.quiz-popup-overlay.active { opacity: 1; pointer-events: all; }
.quiz-popup {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.quiz-popup-overlay.active .quiz-popup { transform: translateY(0); }
.quiz-popup__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb-section { background: var(--color-marfil); padding: .75rem 0; border-bottom: 1px solid var(--color-sand); }
.breadcrumb-item a { color: var(--color-teal); }
.breadcrumb-item.active { color: var(--color-text-muted); }

/* ─── Alert / Flash Messages ─────────────────────────────────────────────── */
.alert-mcp-success { background: #d4edda; border-color: #c3e6cb; color: #155724; border-radius: var(--radius-md); }
.alert-mcp-error   { background: #f8d7da; border-color: #f5c6cb; color: #721c24; border-radius: var(--radius-md); }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-teal       { color: var(--color-teal) !important; }
.text-terracota  { color: var(--color-terracota) !important; }
.bg-marfil       { background-color: var(--color-marfil) !important; }
.bg-teal         { background-color: var(--color-teal) !important; }
.bg-terracota    { background-color: var(--color-terracota) !important; }
.font-display    { font-family: var(--font-display) !important; }
.divider-terracota { border-top: 3px solid var(--color-terracota); width: 60px; margin: 1rem 0; }
