/* ============================================================
   RK Keys — base.css
   Reset, Variables, Typography
   Author: Bharti Khanna
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

html,
body {
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-primary: #42979d;
  --clr-primary-dark: #2f7378;
  --clr-primary-light: #6db8bc;
  --clr-primary-bg: #f0f9fa;
  --clr-accent: #e8c547;
  --clr-accent-dark: #c9a82e;
  --clr-dark: #1a2e30;
  --clr-dark2: #243638;

  /* Neutrals */
  --clr-white: #ffffff;
  --clr-light: #f8fffe;
  --clr-gray-50: #f9fafb;
  --clr-gray-100: #f3f4f6;
  --clr-gray-200: #e5e7eb;
  --clr-gray-300: #d1d5db;
  --clr-gray-500: #6b7280;
  --clr-gray-700: #374151;
  --clr-text: #1f2937;
  --clr-text-muted: #6b7280;

  /* Status */
  --clr-success: #22c55e;
  --clr-danger: #ef4444;
  --clr-warning: #f59e0b;
  --clr-new: #8b5cf6;

  /* Typography */
  --font-main: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.625rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  /* Layout */
  --container: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-teal: 0 4px 20px rgba(66, 151, 157, 0.25);

  /* Transitions */
  --ease: 0.22s ease;
  --ease-slow: 0.4s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Tap highlight off for WebView */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ── Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 800;
  color: var(--clr-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ── Utility ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Section spacing */
.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* Section headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
}

.section-title.accent::after {
  background: var(--clr-accent);
}

.section-title.white {
  color: var(--clr-white);
}

.section-title.white::after {
  background: var(--clr-accent);
}

.view-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--ease);
}

.view-all:hover {
  gap: 8px;
}

.view-all::after {
  content: '→';
}