/* ==========================================================================
   STYLES.CSS — Agafay & Palmeraie Adventures
   Merged from: variables.css, base.css, components.css, layout.css
   ========================================================================== */

/* ========== variables.css ========== */

/* ==========================================================================
   DESIGN SYSTEM — Agafay & Palmeraie Adventures
   ========================================================================== 
   
   TYPOGRAPHY RATIONALE:
   ---------------------
   Heading: "Playfair Display" — An elegant transitional serif with strong 
   contrast and distinctive italics. Evokes the rich ornamentation of 
   Moroccan architecture and tilework while remaining refined and premium.
   Its warmth and personality create a sense of luxury travel.
   
   Body: "Source Sans 3" — A humanist sans-serif designed for readability 
   across screens. Its open letterforms and generous x-height ensure 
   legibility at small sizes on mobile, while its slightly warm character 
   complements Playfair's elegance without competing with it.
   
   This pairing creates a clear hierarchy: headings feel distinctive and 
   aspirational, body text reads effortlessly. Both fonts have excellent 
   language support for FR/ES/EN.
   
   COLOR PALETTE RATIONALE:
   ------------------------
   Inspired by Agafay's arid landscape at golden hour: warm terracotta earth, 
   sunlit sand dunes, and the deep blue-violet of desert twilight. The palm 
   green accent nods to the Palmeraie oasis, while the CTA green ensures 
   WhatsApp integration feels native. The palette balances warmth with 
   sophistication — premium without being cold.
   ========================================================================== */

:root {
  /* ============================
     COLOR PALETTE
     ============================ */

  /* Primary — Terracotta (desert earth at sunset) */
  --color-primary: #C4572A;
  --color-primary-light: #D97B56;
  --color-primary-dark: #9E3E1A;
  --color-primary-bg: #FDF5F2; /* Very light terracotta tint for backgrounds */

  /* Secondary — Desert Night Blue (twilight sky over Agafay) */
  --color-secondary: #1B3A5C;
  --color-secondary-light: #2D5A8A;
  --color-secondary-dark: #0F2340;

  /* Accent — Palm Oasis Green (Palmeraie palm fronds) */
  --color-accent: #3D7B4F;
  --color-accent-light: #5A9E6E;
  --color-accent-dark: #2A5A38;

  /* Neutrals — Warm sand tones */
  --color-neutral-50: #FEFCF9;   /* Lightest — page background */
  --color-neutral-100: #FAF6F0;  /* Card backgrounds, sections */
  --color-neutral-200: #F0E8DC;  /* Borders, dividers */
  --color-neutral-300: #DDD2C2;  /* Disabled states */
  --color-neutral-400: #B8A892;  /* Placeholder text */
  --color-neutral-500: #8C7B68;  /* Secondary text */
  --color-neutral-600: #6B5C4D;  /* Body text (lighter) */
  --color-neutral-700: #4A3D32;  /* Body text */
  --color-neutral-800: #2E2418;  /* Headings */
  --color-neutral-900: #1A1008;  /* Darkest — near black */

  /* CTA / WhatsApp Green */
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-whatsapp-light: #DCF8C6;

  /* Semantic colors */
  --color-success: #2E7D42;
  --color-warning: #E5A100;
  --color-error: #C62828;
  --color-info: #1565C0;

  /* Gold / star rating */
  --color-star: #F5A623;

  /* ============================
     TYPOGRAPHY SCALE
     ============================ 
     Using a 1.250 (Major Third) type scale for 
     harmonious size progression. Base: 16px */

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font sizes — modular scale (Major Third 1.250) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 3rem;       /* 48px */
  --text-5xl: 3.75rem;    /* 60px */

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ============================
     SPACING SCALE
     ============================ 
     Base unit: 4px. Scale: 4, 8, 12, 16, 24, 32, 48, 64, 96, 128 */

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ============================
     LAYOUT
     ============================ */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1440px;

  --grid-gap: var(--space-6);
  --section-padding-y: var(--space-16);
  --section-padding-y-mobile: var(--space-10);

  /* ============================
     BORDERS & RADIUS
     ============================ */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-color: var(--color-neutral-200);

  /* ============================
     SHADOWS
     ============================ */

  --shadow-sm: 0 1px 2px rgba(26, 16, 8, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(26, 16, 8, 0.07), 0 2px 4px -2px rgba(26, 16, 8, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(26, 16, 8, 0.08), 0 4px 6px -4px rgba(26, 16, 8, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(26, 16, 8, 0.1), 0 8px 10px -6px rgba(26, 16, 8, 0.04);
  --shadow-card: 0 2px 8px rgba(26, 16, 8, 0.06), 0 1px 3px rgba(26, 16, 8, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(26, 16, 8, 0.12), 0 4px 8px rgba(26, 16, 8, 0.06);

  /* ============================
     TRANSITIONS
     ============================ */

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ============================
     Z-INDEX SCALE
     ============================ */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-whatsapp: 900;
}

/* ============================
   DARK MODE (future enhancement)
   ============================ */
/* @media (prefers-color-scheme: dark) {
  :root { ... }
} */


/* ========== base.css ========== */

/* ==========================================================================
   BASE STYLES — Reset, Typography, Global Elements
   ========================================================================== */

/* --- RESET (Modern Minimal) --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-neutral-700);
  background-color: var(--color-neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
}

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-secondary);
  color: #fff;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* --- TYPOGRAPHY --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-neutral-800);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  max-width: 70ch; /* Optimal reading line length */
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-600);
}

strong, b {
  font-weight: var(--weight-semibold);
}

small {
  font-size: var(--text-sm);
}

/* --- LAYOUT UTILITIES --- */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-12);
  }
}

.section {
  padding-block: var(--section-padding-y-mobile);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--section-padding-y);
  }
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- RESPONSIVE TYPOGRAPHY --- */

@media (max-width: 767px) {
  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }
  h3 {
    font-size: var(--text-xl);
  }
  h4 {
    font-size: var(--text-lg);
  }
}

/* --- SELECTION --- */
::selection {
  background-color: var(--color-primary-light);
  color: #fff;
}


/* ========== components.css ========== */

/* ==========================================================================
   COMPONENTS — Buttons, Cards, Badges, Nav, Footer, WhatsApp
   ========================================================================== */

/* ==========================
   BUTTONS
   ========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px; /* Minimum touch target */
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button — Terracotta */
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

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

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button — Outlined */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
  font-weight: var(--weight-bold);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Dark Button — Desert Night */
.btn-dark {
  background-color: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn-dark:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Large Button */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-md);
  min-height: 52px;
  border-radius: var(--radius-lg);
}

/* Small Button */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

/* Full-width Button */
.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================
   CARDS
   ========================== */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--color-neutral-200);
}

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

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-neutral-200);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-5);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-bottom: var(--space-3);
}

.card-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.card-price .from {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
}

.card-price .amount {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-secondary);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-neutral-200);
  background-color: var(--color-neutral-100);
}

/* Horizontal card variant (for listings) */
@media (min-width: 768px) {
  .card-horizontal {
    display: grid;
    grid-template-columns: 300px 1fr;
  }

  .card-horizontal .card-image {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* ==========================
   BADGES & LABELS
   ========================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-bestseller {
  background-color: var(--color-warning);
  color: #fff;
}

.badge-new {
  background-color: var(--color-accent);
  color: #fff;
}

.badge-popular {
  background-color: var(--color-primary);
  color: #fff;
}

.badge-free-cancel {
  background-color: var(--color-success);
  color: #fff;
}

/* Positioned badge (top-left of card) */
.card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

/* ==========================
   RATING / STARS
   ========================== */

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
}

.rating-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rating-count {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
}

/* ==========================
   TRUST BADGES (USPs)
   ========================== */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-bg);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 20px;
  height: 20px;
}

.trust-badge-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-700);
}

/* ==========================
   BREADCRUMBS
   ========================== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
}

.breadcrumbs a {
  color: var(--color-neutral-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .separator {
  color: var(--color-neutral-400);
}

.breadcrumbs .current {
  color: var(--color-neutral-700);
  font-weight: var(--weight-medium);
}

/* ==========================
   SECTION HEADERS
   ========================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 700px;
  margin-inline: auto;
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  color: var(--color-neutral-600);
  font-size: var(--text-md);
  margin-inline: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* ==========================
   TESTIMONIALS
   ========================== */

.testimonial {
  background: #fff;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
  position: relative;
}

.testimonial::before {
  content: '\201C'; /* Opening curly quote */
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--color-primary-light);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-200);
  overflow: hidden;
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
  font-size: var(--text-sm);
}

.testimonial-origin {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

/* ==========================
   FAQ ACCORDION
   ========================== */

.faq-item {
  border-bottom: 1px solid var(--color-neutral-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
  text-align: left;
  cursor: pointer;
  border: none;
  background: none;
  gap: var(--space-4);
  min-height: 44px;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}

.faq-answer p {
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

/* ==========================
   FORMS
   ========================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background-color: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 87, 42, 0.15);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* ==========================
   FILTERS
   ========================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  background: #fff;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 36px;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ==========================
   IMAGE PLACEHOLDER
   ========================== */

.img-placeholder {
  background: linear-gradient(135deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-400);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
}


/* ========== layout.css ========== */

/* ==========================================================================
   LAYOUT — Header, Navigation, Footer, Page Structure
   ========================================================================== */

/* ==========================
   HEADER / NAVIGATION
   ========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(254, 252, 249, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-neutral-200);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-secondary);
  line-height: 1.2;
}

.site-logo-text span {
  color: var(--color-primary);
}

/* Desktop Navigation */
.nav-main {
  display: none;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

.nav-link {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

/* Dropdown for categories */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-neutral-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
}

/* Header actions (language switcher + CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
}

.lang-switcher a {
  padding: var(--space-1) var(--space-2);
  color: var(--color-neutral-500);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-switcher a:hover {
  color: var(--color-primary);
}

.lang-switcher a.active {
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
  font-weight: var(--weight-semibold);
}

.lang-switcher .divider {
  color: var(--color-neutral-300);
}

/* Header WhatsApp CTA (desktop only) */
.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-neutral-700);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--color-neutral-100);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile navigation overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(26, 16, 8, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  color: var(--color-neutral-700);
}

.mobile-nav-close:hover {
  background-color: var(--color-neutral-100);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
}

.mobile-nav-cta {
  margin-top: var(--space-8);
}

/* ==========================
   HERO SECTION
   ========================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 16, 8, 0.7) 0%,
    rgba(26, 16, 8, 0.3) 60%,
    rgba(26, 16, 8, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.hero-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 550px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: var(--text-5xl);
  }
}

/* ==========================
   FOOTER
   ========================== */

.site-footer {
  background-color: var(--color-secondary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .site-logo-text {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

/* ==========================
   FLOATING WHATSAPP BUTTON
   ========================== */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-whatsapp);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-base);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 20px rgba(37, 211, 102, 0);
  }
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border-top: 1px solid var(--color-neutral-200);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .mobile-cta-bar {
    display: none;
  }
}

.mobile-cta-bar .btn {
  flex: 1;
}

/* When mobile CTA bar is visible, add bottom padding to body */
@media (max-width: 1023px) {
  body {
    padding-bottom: 72px; /* Height of mobile CTA bar */
  }
  
  .whatsapp-float {
    bottom: 84px; /* Above mobile CTA bar */
  }
}

/* ==========================
   PAGE LAYOUT HELPERS
   ========================== */

.page-content {
  min-height: 60vh;
}

/* Two-column layout (content + sidebar) */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr 350px;
  }
}

/* Sticky sidebar */
.sidebar-sticky {
  position: sticky;
  top: 90px; /* Header height + spacing */
  align-self: start;
}



/* ==========================================================================
   BLOG ARTICLE LAYOUT — Two-column with sticky sidebar
   ========================================================================== */

/* Article section wrapper */
.blog-article {
  padding-top: var(--space-4);
}

/* Two-column grid: main content + sticky sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 1023px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    display: none; /* sidebar hidden on mobile — content shows inline */
  }
}

.blog-main {
  min-width: 0; /* prevent grid blowout */
}

/* ---- Article Hero Image ---- */
.blog-main .blog-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: block;
}

/* ---- Article Header ---- */
.blog-article-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-neutral-200);
}

.blog-article-header .article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-bottom: var(--space-3);
}

.blog-article-header .article-category {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.blog-article-header h1 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  line-height: 1.25;
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.blog-article-header .article-lead {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-neutral-600);
  margin: 0;
}

/* ---- Article Body Typography ---- */
.article-body {
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--color-neutral-800);
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-secondary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary-light);
}

.article-body h3 {
  font-size: var(--text-lg);
  color: var(--color-neutral-900);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.article-body p {
  margin-bottom: var(--space-5);
}

.article-body a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--color-primary);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.article-body li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.article-body strong {
  color: var(--color-neutral-900);
  font-weight: var(--weight-semibold);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body table th {
  background: var(--color-secondary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
}

.article-body table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-neutral-200);
}

.article-body table tr:last-child td {
  border-bottom: none;
}

.article-body table tr:nth-child(even) td {
  background: var(--color-neutral-50, #fafaf9);
}

/* Inline callout box */
.article-callout {
  background: var(--color-primary-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
}

.article-callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
}

/* WhatsApp inline CTA box */
.article-whatsapp-cta {
  background: #f0fdf0;
  border: 1px solid #bbf7bb;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-8) 0;
  text-align: center;
}

.article-whatsapp-cta p {
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-3);
}

/* Bottom CTA block */
.article-bottom-cta {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  margin-top: var(--space-10);
}

.article-bottom-cta h3 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.article-bottom-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-5);
  font-size: var(--text-md);
}

/* ---- Related articles at bottom (mobile) ---- */
.article-related-mobile {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-neutral-200);
}

.article-related-mobile h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.article-related-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-related-mobile li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-neutral-100);
}

.article-related-mobile li:last-child {
  border-bottom: none;
}

.article-related-mobile a {
  color: var(--color-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.article-related-mobile a:hover {
  text-decoration: underline;
}

/* ---- Sticky sidebar ---- */
.blog-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}

.sidebar-widget h4 {
  font-size: var(--text-base);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-widget p {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-neutral-100);
  font-size: var(--text-sm);
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

.sidebar-widget a {
  color: var(--color-secondary);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  font-weight: var(--weight-medium);
}

.sidebar-widget a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.sidebar-whatsapp {
  background: linear-gradient(145deg, #f0fff4, #e6ffed);
  border-color: #a7f3c0;
}

.sidebar-whatsapp h4 {
  color: #1a5c2e;
  border-bottom-color: #a7f3c0;
}

.sidebar-tip {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-light);
}

.sidebar-tip h4 {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-light);
}
