/* ===================================
   ACOFER DESIGN SYSTEM (STITCH)
   Central CSS Custom Properties
   =================================== */

:root {
  /* Brand Colors — Constitution Principle III */
  --color-primary-dark: #0f4e81;
  --color-primary-darker: #0a3556;
  --color-secondary: #08558c;
  --color-cta-yellow: #ffcc29;
  --color-cta-yellow-hover: #facc15;

  /* Neutrals */
  --color-white: #ffffff;
  --color-bg-light: #f3f4f6;
  --color-gray-medium: #989898;
  --color-text-dark: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #eaeaea;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);

  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Layout maxwidth */
  --max-content: 1160px;
  --gutter: 5%;

  /* Home vertical rhythm */
  --home-pad-sm: 2.5rem;
  --home-pad-md: 4rem;
  --home-pad-lg: 5.5rem;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  /* API Timeout (Constitution Principle II) */
  --api-timeout: 7500;

  /* WhatsApp (Single Central Number — Clarification) */
  --whatsapp-number: 55XX000000000;
}

@media (max-width: 640px) {
  :root {
    --home-pad-sm: 1.75rem;
    --home-pad-md: 2.8rem;
    --home-pad-lg: 3.85rem;
  }
}

/* ===================================
   HOME — HISTORY SECTION (T003)
   =================================== */

.history-section {
  background-color: var(--color-primary-dark);
  padding: var(--space-4xl) 0;
  color: var(--color-white);
}

.history-container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.history-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.history-content h2 {
  color: var(--color-white);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  font-weight: var(--font-weight-extrabold);
}

.history-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
  font-weight: var(--font-weight-bold);
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.history-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
  .history-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .history-content h2 {
    font-size: 2rem;
  }
  
  .history-image {
    height: 300px;
    order: -1;
  }
}
