/*
YATHARTH-PROPERTIES / Assets/Modules/base.css
Theme: Rouge Classic
Version: 1.0.0
Created: 2025-10-26
Last Edited: 2025-10-26
Developer: Mayank Chawdhari (BOSS294)
Trademark: © YATHARTH PROPERTIES

DESCRIPTION
Base system CSS used across YATHARTH-PROPERTIES. Provides:
- Core CSS variables for the Rouge Classic theme.
- Global resets and typographic scale.
- Container/layout utilities.
- Primary component styles: buttons (primary + outline), inputs, cards, navs.
- Accessibility + focus styles.
- Responsive breakpoints and utility helpers.
- Export-ready tokens are referenced via CSS custom properties.

HOW TO USE
1. Drop this file into Assets/Modules/base.css and include it before component-specific CSS.
2. Use CSS variables (--*) from :root to theme components. Example:
     background: var(--bg);
     color: var(--text);
3. Buttons: use .btn + modifier classes:
     .btn               - base
     .btn--primary      - primary CTA
     .btn--outline      - bordered CTA
     .btn--sm / .btn--lg for sizes
4. To switch theme colors at runtime, update the root variables or set a data-theme attribute on <body> and override variables.
5. Use utility classes: .container, .stack, .muted, .sr-only for quick layouts.

FEATURES (sections)
  1 - :root variables (theme tokens, sizing, breakpoints)
  2 - Global reset + base typography
  3 - Layout helpers (.container, .stack, grid helpers)
  4 - Buttons (base, primary, outline, sizes, disabled, interactions)
  5 - Forms (inputs, labels, selects, textareas)
  6 - Cards & surfaces
  7 - Navigation & header basics
  8 - Utilities (text helpers, visibility, spacing small helpers)
  9 - Responsive breakpoints & helper adjustments

END OF DOCUMENTATION
*/

/* 1. THEME TOKENS & GLOBAL VARIABLES */
:root{
  /* Theme identity */
  --theme-name: "Rouge Classic";
  --theme-version: "1.0.0";
  --theme-trademark: "© YATHARTH PROPERTIES";

  --bg: #ffffff;            /* ~60% primary background */
  --surface: #ffffff;       /* ~30% cards / surfaces */
  --accent: #ff385b;        /* ~10% primary accent */
  --accent-2: #ff7c96;      /* accent gradient / secondary accent */
  --text: #18121a;          /* primary text */
  --muted: #7b6b73;         /* muted text / meta */
  --border: rgba(24,18,26,0.06);
  --shadow-1: 0 6px 18px rgba(24,18,26,0.06);
  --shadow-2: 0 14px 40px rgba(24,18,26,0.08);

  /* Typography (Rogue Classic as primary; provide fallbacks) */
  --font-family: "Rogue Classic", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-sans: var(--font-family);
  --font-serif: "Merriweather", Georgia, serif;
  --font-mono: "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;

  /* Type scale */
  --fs-hero: 2rem;        /* 32px */
  --fs-xl: 1.5rem;        /* 24px */
  --fs-lg: 1.125rem;      /* 18px */
  --fs-base: 1rem;        /* 16px */
  --fs-sm: 0.875rem;      /* 14px */
  --fs-xs: 0.75rem;       /* 12px */

  --lh-tight: 1.1;
  --lh-base: 1.45;

  /* Layout */
  --max-width: 1200px;
  --gutter: 20px;
  --card-radius: 12px;
  --btn-radius: 10px;

  /* Buttons */
  --btn-padding-y: 10px;
  --btn-padding-x: 16px;
  --btn-font-weight: 700;
  --btn-transition: transform 160ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease, background-color 160ms ease;

  /* Breakpoints */
  --bp-sm: 640px;
  --bp-md: 980px;
  --bp-lg: 1200px;
}

/* 2. RESET + BASE TYPOGRAPHY */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { font-family: inherit; color: inherit; border: none; background: transparent; }

:focus { outline: none; }

/* Accessibility focus */
:focus-visible {
  outline: 3px solid rgba(255,56,91,0.14);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Headings */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1rem 0; color: var(--text); }

/* Small text */
.small, .muted { font-size: var(--fs-sm); color: var(--muted); }

/* 3. LAYOUT HELPERS */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--gutter));
  padding-right: calc(var(--gutter));
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--gutter));
}

/* Simple column helper */
.col {
  flex: 1 1 0%;
  min-width: 0;
}

/* vertical stack */
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Card / surface base */
.surface {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  padding: 16px;
}

/* 4. BUTTONS - base + primary + outline (default patterns)
   Usage: <button class="btn btn--primary"> or <button class="btn btn--outline"> */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: 0 6px 18px rgba(24,18,26,0.06);
  user-select: none;
}

/* sizes */
.btn--sm { padding: 8px 12px; font-size: .85rem; border-radius: calc(var(--btn-radius) - 4px); }
.btn--lg { padding: 12px 20px; font-size: 1rem; border-radius: calc(var(--btn-radius) + 2px); }

/* Primary */
.btn--primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--surface);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 28px rgba(255,56,91,0.10);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255,56,91,0.12);
}
.btn--primary:active { transform: translateY(-1px) scale(.997); transition: none; }
.btn--primary:disabled,
.btn--primary[disabled] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn--outline:hover {
  background: linear-gradient(90deg, rgba(255,56,91,0.06), rgba(255,124,150,0.04));
  color: var(--surface);
  border-color: transparent;
  transform: translateY(-2px);
}
.btn--outline:active { transform: translateY(0); }

/* Secondary variant (muted) */
.btn--muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(24,18,26,0.04);
}
.btn--muted:hover { color: var(--text); background: rgba(24,18,26,0.02); }

/* Ghost (for icon-only or inline) */
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 8px;
}
.btn--ghost:hover { background: rgba(255,56,91,0.04); border-radius: 8px; }

/* Utility: full-width */
.btn--block { width: 100%; display: inline-flex; }

/* 5. FORMS */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
label { font-weight: 600; font-size: .95rem; color: var(--text); }

.input,
.select,
.textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: box-shadow 140ms ease, border-color 140ms ease;
  min-height: 40px;
}

.input:focus,
.select:focus,
.textarea:focus {
  box-shadow: 0 6px 20px rgba(255,56,91,0.08);
  border-color: rgba(255,56,91,0.24);
  outline: none;
}

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

/* Input invalid */
.input[aria-invalid="true"],
.input:invalid {
  border-color: #ff385b;
  box-shadow: 0 6px 18px rgba(255,56,91,0.06);
}

/* 6. CARDS & PANELS */
.card {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow-1);
}

.card--elevated { box-shadow: var(--shadow-2); transform: translateZ(0); }

/* media / preview image */
.card__media { border-radius: 8px; overflow: hidden; }

/* 7. NAV, HEADER, FOOTER */
.header {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.nav a:hover { background: rgba(24,18,26,0.02); }

/* 8. UTILITIES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }

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

/* spacing helpers (tiny set) */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.p-12 { padding: 12px; }

/* tiny responsive utility */
.hide-sm { display: none; }
@media (min-width: var(--bp-sm)) { .hide-sm { display: inline-block; } }

/* 9. RESPONSIVE ADJUSTMENTS */
@media (max-width: 980px) {
  :root { --max-width: 920px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .doc-header { padding: 20px; border-radius: 10px; }
}

@media (max-width: 640px) {
  :root { --max-width: 640px; --gutter: 14px; }
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.5rem; }
  .swatches { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .buttons-grid { gap: 8px; }
  .nav { display: none; }
  .btn { padding: 9px 12px; }
}

/* EXTRA: small helpers for token export or overrides */
:root[data-theme="dark"] {
  --bg: #0f1214;
  --surface: #0b0d0f;
  --text: #e6eef6;
  --muted: #9aa4b2;
  --border: rgba(234,234,234,0.04);
}

/* End of base.css */
