/**
 * Academia Buenos Aires - Design System
 * Version: 2.0 - Complete with all page components
 *   2026-06-24: --font-family-* set to Inter (the FIGMA design font) and applied
 *     site-wide via a !important override at the end of this file (the font is
 *     otherwise controlled by GeneratePress). Inter is enqueued in functions.php.
 *   2026-06-22: hero gradients use background-image (not the `background`
 *     shorthand) so they no longer reset background-size/position on the
 *     image-based homepage hero (fixed the cropped mobile hero at the root;
 *     lets home-sections.css drop its !important)
 *   2026-06-20: added global .badge-yellow (course-card category/"Most chosen" badge) so it works outside the homepage (e.g. the All Courses page)
 * 
 * Complete CSS Custom Properties based on Figma Design Tokens
 * This file contains all colors, typography, spacing, and component styles
 * for the Academia Buenos Aires multisite.
 */

/* ============================================================================
   ROOT VARIABLES - SHARED ACROSS ALL SITES
   ========================================================================= */

:root {
  /* === PRIMITIVE COLORS === */
  
  /* Neutrals */
  --color-neutrals-1100: #000000;
  --color-neutrals-1000: #383838;
  --color-neutrals-900: #4a4a4a;
  --color-neutrals-800: #5f5f5f;
  --color-neutrals-700: #7a7a7a;
  --color-neutrals-600: #868686;
  --color-neutrals-500: #9e9e9e;
  --color-neutrals-400: #aeaeae;
  --color-neutrals-300: #c7c7c7;
  --color-neutrals-200: #d9d9d9;
  --color-neutrals-100: #fafafa;
  --color-neutrals-0: #ffffff;
  
  /* Deep Blue (Primary Brand for all sites) */
  --color-deepblue-900: #002136;
  --color-deepblue-800: #002b46;
  --color-deepblue-700: #00385b;
  --color-deepblue-600: #004874;
  --color-deepblue-500: #004f80;
  --color-deepblue-400: #337299;
  --color-deepblue-300: #5489aa;
  --color-deepblue-200: #8aaec5;
  --color-deepblue-100: #b0c8d8;
  --color-deepblue-50: #e6edf2;
  
  /* Light Blue (Buenos Aires Secondary) */
  --color-lightblue-900: #1a3c5b;
  --color-lightblue-800: #234e77;
  --color-lightblue-700: #2d6599;
  --color-lightblue-600: #008fdd;
  --color-lightblue-500: #5fb4f9;
  --color-lightblue-400: #7fc3fa;
  --color-lightblue-300: #b5e0f3;
  --color-lightblue-200: #ddf1fb;
  --color-lightblue-100: #e8f5fb;
  --color-lightblue-50: #f8fcfe;
  
  /* Yellow (Accent for all sites) */
  --color-yellow-900: #6b5e15;
  --color-yellow-800: #8c7b1c;
  --color-yellow-700: #b59f24;
  --color-yellow-600: #e8cc2e;
  --color-yellow-500: #ffe033;
  --color-yellow-400: #fff93f;
  --color-yellow-300: #fffa5e;
  --color-yellow-200: #fffb91;
  --color-yellow-100: #fffdb5;
  --color-yellow-50: #fffee7;
  
  /* Uruguay Blue */
  --color-urublue-900: #35495d;
  --color-urublue-800: #455f7a;
  --color-urublue-700: #597b9e;
  --color-urublue-600: #729dca;
  --color-urublue-500: #7dadde;
  --color-urublue-400: #97bde5;
  --color-urublue-300: #a8c8e9;
  --color-urublue-200: #b8d7f2;
  --color-urublue-100: #d7e6f5;
  --color-urublue-50: #f2f7fc;
  
  /* Orange (Bariloche) */
  --color-orange-900: #542c11;
  --color-orange-800: #6f3916;
  --color-orange-700: #8f4a1c;
  --color-orange-600: #c96828;
  --color-orange-500: #e28c4b;
  --color-orange-400: #e8a36f;
  --color-orange-300: #ffc49c;
  --color-orange-200: #ffd7bd;
  --color-orange-100: #ffede0;
  --color-orange-50: #fff9f5;
  
  /* Green (Success) */
  --color-green-900: #2f5100;
  --color-green-800: #3e6a00;
  --color-green-700: #508800;
  --color-green-600: #66af00;
  --color-green-500: #70bf00;
  --color-green-400: #8dcd33;
  --color-green-300: #9fd554;
  --color-green-200: #bde28a;
  --color-green-100: #d3ebb0;
  --color-green-50: #f1f9e6;
  
  /* Red (Danger/Error) */
  --color-red-900: #620d1e;
  --color-red-800: #811228;
  --color-red-700: #a61733;
  --color-red-600: #d51d42;
  --color-red-500: #ea2048;
  --color-red-400: #ee4d6d;
  --color-red-300: #f16a84;
  --color-red-200: #f598ab;
  --color-red-100: #f8bac6;
  --color-red-50: #fde9ed;
  
  /* Alpha (Overlays) */
  --color-alpha-light-20: rgba(255, 255, 255, 0.2);
  --color-alpha-light-50: rgba(255, 255, 255, 0.5);
  --color-alpha-dark-20: rgba(0, 0, 0, 0.2);
  --color-alpha-dark-50: rgba(0, 0, 0, 0.5);
  
  /* === TYPOGRAPHY === */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                      "Helvetica Neue", Arial, sans-serif;
  --font-family-headings: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                          "Helvetica Neue", Arial, sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* === SPACING === */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  --spacing-4xl: 6rem;      /* 96px */
  --spacing-5xl: 8rem;      /* 128px */
  
  /* === BORDERS === */
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;
  
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 4px;
  
  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* === TRANSITIONS === */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* === LAYOUT === */
  --container-max-width: 1200px;
  --container-padding: var(--spacing-md);
  
  /* === Z-INDEX LAYERS === */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* ============================================================================
   SITE-SPECIFIC SEMANTIC TOKENS - BUENOS AIRES (DEFAULT)
   ========================================================================= */

:root,
body.site-buenos-aires {
  /* Foreground */
  --semantic-fg-primary-black: var(--color-neutrals-1100);
  --semantic-fg-primary-white: var(--color-neutrals-0);
  --semantic-fg-primary-grey: var(--color-neutrals-1000);
  --semantic-fg-secondary-grey: var(--color-neutrals-700);
  --semantic-fg-tertiary-grey: var(--color-neutrals-400);
  --semantic-fg-primary-brand: var(--color-deepblue-500);
  --semantic-fg-secondary-brand: var(--color-lightblue-600);
  --semantic-fg-primary-hover: var(--color-lightblue-700);
  --semantic-fg-primary-disabled: var(--color-neutrals-600);
  --semantic-fg-primary-success: var(--color-green-500);
  --semantic-fg-primary-danger: var(--color-red-500);
  --semantic-fg-primary-info: var(--color-lightblue-600);
  --semantic-fg-secondary-danger-hover: var(--color-red-700);
  
  /* Background */
  --semantic-bg-primary-white: var(--color-neutrals-0);
  --semantic-bg-primary-black: var(--color-neutrals-1100);
  --semantic-bg-primary-background: var(--color-neutrals-100);
  --semantic-bg-primary-brand: var(--color-deepblue-500);
  --semantic-bg-secondary-brand: var(--color-lightblue-600);
  --semantic-bg-tertiary-brand: var(--color-lightblue-50);
  --semantic-bg-primary-hover: var(--color-lightblue-700);
  --semantic-bg-secondary-hover: var(--color-lightblue-50);
  --semantic-bg-tertiary-hover: var(--color-neutrals-0);
  --semantic-bg-primary-disabled: var(--color-neutrals-300);
  --semantic-bg-primary-accent: var(--color-yellow-500);
  --semantic-bg-secondary-accent: var(--color-yellow-600);
  --semantic-bg-primary-success: var(--color-green-500);
  --semantic-bg-primary-danger: var(--color-red-500);
  --semantic-bg-secondary-danger: var(--color-red-50);
  --semantic-bg-secondary-danger-hover: var(--color-red-700);
  --semantic-bg-primary-info: var(--color-lightblue-50);
  
  /* Stroke/Borders */
  --semantic-stroke-primary-white: var(--color-neutrals-0);
  --semantic-stroke-primary-black: var(--color-neutrals-1100);
  --semantic-stroke-primary-grey: var(--color-neutrals-500);
  --semantic-stroke-secondary-grey: var(--color-neutrals-200);
  --semantic-stroke-primary-brand: var(--color-deepblue-500);
  --semantic-stroke-secondary-brand: var(--color-lightblue-600);
  --semantic-stroke-primary-danger: var(--color-red-500);
  --semantic-stroke-primary-info: var(--color-lightblue-500);
}

/* ============================================================================
   SITE-SPECIFIC SEMANTIC TOKENS - URUGUAY
   ========================================================================= */

body.site-uruguay {
  /* Foreground */
  --semantic-fg-secondary-brand: var(--color-urublue-700);
  --semantic-fg-primary-hover: var(--color-urublue-800);
  --semantic-fg-primary-disabled: var(--color-neutrals-800);
  
  /* Background */
  --semantic-bg-secondary-brand: var(--color-urublue-600);
  --semantic-bg-tertiary-brand: var(--color-urublue-50);
  --semantic-bg-primary-hover: var(--color-urublue-800);
  --semantic-bg-secondary-hover: var(--color-urublue-50);
  --semantic-bg-primary-disabled: var(--color-neutrals-100);
  
  /* Stroke/Borders */
  --semantic-stroke-secondary-brand: var(--color-urublue-700);
}

/* ============================================================================
   SITE-SPECIFIC SEMANTIC TOKENS - BARILOCHE
   ========================================================================= */

body.site-bariloche {
  /* Foreground */
  --semantic-fg-secondary-brand: var(--color-orange-600);
  --semantic-fg-primary-hover: var(--color-orange-700);
  --semantic-fg-primary-disabled: var(--color-neutrals-800);
  
  /* Background */
  --semantic-bg-secondary-brand: var(--color-orange-600);
  --semantic-bg-tertiary-brand: var(--color-orange-50);
  --semantic-bg-primary-hover: var(--color-orange-700);
  --semantic-bg-secondary-hover: var(--color-orange-50);
  --semantic-bg-primary-disabled: var(--color-neutrals-100);
  
  /* Stroke/Borders */
  --semantic-stroke-secondary-brand: var(--color-orange-600);
}

/* ============================================================================
   COMPONENTS - BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  text-decoration: none;
  border: var(--border-width-medium) solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Primary Button */
.btn-primary {
  color: var(--semantic-fg-primary-white);
  background-color: var(--semantic-bg-secondary-brand);
  border-color: var(--semantic-bg-secondary-brand);
}

.btn-primary:hover {
  background-color: var(--semantic-bg-primary-hover);
  border-color: var(--semantic-bg-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
  color: var(--semantic-fg-primary-grey);
  background-color: transparent;
  border-color: var(--semantic-stroke-secondary-grey);
}

.btn-secondary:hover {
  color: var(--semantic-fg-primary-brand);
  background-color: var(--semantic-bg-secondary-hover);
  border-color: var(--semantic-stroke-primary-brand);
}

/* Accent Button */
.btn-accent {
  color: var(--semantic-fg-primary-black);
  background-color: var(--semantic-bg-primary-accent);
  border-color: var(--semantic-bg-primary-accent);
}

.btn-accent:hover {
  background-color: var(--semantic-bg-secondary-accent);
  border-color: var(--semantic-bg-secondary-accent);
}

/* Button Modifiers */
.btn-white {
  color: var(--semantic-fg-primary-white) !important;
  border-color: var(--semantic-stroke-primary-white) !important;
}

.btn-white:hover {
  background-color: var(--color-alpha-light-20) !important;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}

/* ============================================================================
   COMPONENTS - BADGES
   ========================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-full);
}

.badge-accent {
  color: var(--semantic-fg-primary-black);
  background-color: var(--semantic-bg-primary-accent);
}

.badge-success {
  color: var(--semantic-fg-primary-white);
  background-color: var(--semantic-bg-primary-success);
}

/* Yellow "category / Most chosen" badge used by academia_render_course_card().
   Lived only in home-sections.css before, so it was missing on the All Courses
   page (which loads courses-listing.css, not home-sections.css).
   The colour is hardcoded on purpose: var(--accent) is only set to yellow on the
   homepage (in home-sections.css); on other pages --accent resolves to a blue
   value, which turned this badge blue there. The category badge is yellow by
   design, so we pin it. (#ffe033 / #383838 match the homepage values.) */
.badge-yellow {
  background: #ffe033;
  color: #383838;
}

/* ============================================================================
   COMPONENTS - CARDS
   ========================================================================= */

.card {
  background-color: var(--semantic-bg-primary-white);
  border: var(--border-width-thin) solid var(--semantic-stroke-secondary-grey);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--semantic-fg-primary-grey);
  margin: 0 0 var(--spacing-md) 0;
}

.card-text {
  font-size: var(--font-size-base);
  color: var(--semantic-fg-secondary-grey);
  line-height: var(--line-height-normal);
  margin: 0 0 var(--spacing-md) 0;
}

/* ============================================================================
   COMPONENTS - COURSE CARDS (Specific)
   ========================================================================= */

.course-specs {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.course-specs li {
  padding: 12px 0;
  border-bottom: var(--border-width-thin) solid var(--semantic-stroke-secondary-grey);
  color: var(--semantic-fg-secondary-grey);
}

.course-specs li:last-child {
  border-bottom: none;
}

.course-pricing {
  margin: var(--spacing-lg) 0;
}

.discount-tag {
  color: var(--semantic-fg-primary-success);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  margin-bottom: 5px;
}

.old-price {
  color: var(--color-neutrals-400);
  text-decoration: line-through;
  font-size: var(--font-size-sm);
}

.current-price {
  color: var(--semantic-fg-primary-grey);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  margin-top: 5px;
}

/* ============================================================================
   COMPONENTS - HERO SECTIONS
   ========================================================================= */

/* Base Hero Styles */
.hero-section {
  color: var(--semantic-fg-primary-white);
  padding: 80px var(--spacing-lg);
  border-radius: var(--border-radius-xl);
  margin-bottom: var(--spacing-3xl);
}

/* Buenos Aires Hero - Blue Gradient
   NOTE: background-image longhand, NOT the `background` shorthand. The shorthand
   also resets background-size/repeat/position/color to initial; because this
   selector (body.site-* .hero-section, specificity 0,2,1) outranks the homepage
   .hero-section rules, that reset bled onto the image-based homepage hero and
   forced background-size back to "auto" (image at natural size → cropped on
   mobile). The longhand sets only the gradient and leaves the rest alone. */
.hero-section,
body.site-buenos-aires .hero-section {
  background-image: linear-gradient(135deg, var(--color-deepblue-500) 0%, var(--color-lightblue-600) 100%);
}

/* Uruguay Hero - Uruguay Blue Gradient */
body.site-uruguay .hero-section,
.hero-uruguay {
  background-image: linear-gradient(135deg, var(--color-deepblue-500) 0%, var(--color-urublue-600) 100%);
}

/* Bariloche Hero - Orange Gradient */
body.site-bariloche .hero-section,
.hero-bariloche {
  background-image: linear-gradient(135deg, var(--color-deepblue-500) 0%, var(--color-orange-600) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--semantic-fg-primary-white) !important;
  margin: 0 0 var(--spacing-lg) 0;
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--semantic-fg-primary-white);
  margin: 0 0 var(--spacing-xl) 0;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   COMPONENTS - WHY CHOOSE US / FEATURES SECTION
   ========================================================================= */

.why-section {
  background-color: var(--semantic-bg-tertiary-brand);
  padding: var(--spacing-3xl) var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.why-section h2 {
  margin-bottom: var(--spacing-lg);
}

.why-intro {
  font-size: var(--font-size-lg);
  color: var(--semantic-fg-secondary-grey);
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl) auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-md);
}

.feature h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.feature p {
  color: var(--semantic-fg-secondary-grey);
  margin: 0;
}

/* ============================================================================
   COMPONENTS - LOCATION CARDS
   ========================================================================= */

.location-card {
  text-align: center;
}

.location-flag {
  font-size: 64px;
  margin-bottom: var(--spacing-lg);
}

/* ============================================================================
   COMPONENTS - COMING SOON SECTION
   ========================================================================= */

.coming-soon-section {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.coming-soon-section h2 {
  margin-bottom: var(--spacing-xl);
}

.coming-soon-text {
  font-size: var(--font-size-lg);
  color: var(--semantic-fg-secondary-grey);
  margin-bottom: var(--spacing-3xl);
}

/* ============================================================================
   COMPONENTS - PROMO BANNER
   ========================================================================= */

.promo-banner {
  background-color: var(--semantic-bg-primary-accent);
  color: var(--semantic-fg-primary-black);
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

/* ============================================================================
   LAYOUT - CONTAINER & UTILITIES
   ========================================================================= */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center {
  text-align: center;
}

/* Margin Utilities */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */

@media (max-width: 768px) {
  :root {
    --container-padding: var(--spacing-md);
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   FIGMA DESIGN FONT (Inter)
   The font family is controlled by GeneratePress (parent theme), so the
   --font-family-* variables alone don't apply. This override sets Inter on the
   text-bearing elements with !important to win over GP's typography CSS.
   Inter itself is loaded via wp_enqueue_style('academia-inter') in functions.php.
   Icon fonts (.fa, .material-icons-*) target their own elements and are unaffected.
   ============================================================================= */
body,
button, input, select, textarea, optgroup {
    font-family: var(--font-family-base) !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings) !important;
}
