/* ==========================================================================
   MVR SIGNATURE SPACES PVT LTD - FOUNDATIONAL DESIGN SYSTEM
   "Spaces that define status"
   Plain CSS3 - Mobile-First - Dual Theme (Light & Dark)
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES & TOKENS
   ========================================================================== */
:root {
  /* --- Brand Core Palette --- */
  --brand-navy: #132238;          /* Authoritative Corporate Navy */
  --brand-navy-dark: #0a1320;
  --brand-navy-light: #1e3352;
  --brand-navy-rgb: 19, 34, 56;

  --brand-gold: #c5a059;          /* Architectural Champagne Gold */
  --brand-gold-hover: #b38e46;
  --brand-gold-light: rgba(197, 160, 89, 0.12);
  --brand-gold-dark: #8c6d31;
  --brand-gold-rgb: 197, 160, 89;

  /* --- Light Theme (Default) --- */
  --color-bg: #fcfcfc;
  --color-bg-subtle: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-hover: #f3f5f8;

  --color-border: #e2e6eb;
  --color-border-subtle: #edf0f3;
  --color-border-focus: #c5a059;

  --color-text-primary: #111827;   /* High-contrast crisp charcoal */
  --color-text-secondary: #576275; /* Balanced neutral gray */
  --color-text-muted: #8c97a8;     /* Subtle caption gray */
  --color-text-inverse: #ffffff;

  --color-primary-action: #132238;
  --color-primary-action-text: #ffffff;
  --color-accent-action: #c5a059;
  --color-accent-action-text: #0d1726;

  /* Header & Navigation */
  --header-bg: rgba(252, 252, 252, 0.94);
  --header-border: rgba(226, 230, 235, 0.85);
  --header-height: 84px;
  --header-height-mobile: 62px;

  /* Footer */
  --footer-bg: #0d1726;
  --footer-surface: #132238;
  --footer-border: #1e304b;
  --footer-text: #f0f3f8;
  --footer-text-secondary: #95a3b8;
  --footer-text-muted: #64748b;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(19, 34, 56, 0.05), 0 1px 2px rgba(19, 34, 56, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(19, 34, 56, 0.07), 0 2px 6px -1px rgba(19, 34, 56, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(19, 34, 56, 0.09), 0 4px 12px -2px rgba(19, 34, 56, 0.04);
  --shadow-xl: 0 22px 48px -8px rgba(19, 34, 56, 0.14);

  /* Typography Scale */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --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-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.16em;

  /* Spacing System */
  --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-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-18: 4.5rem;  /* 72px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radii & Borders */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-base: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-base);
  --transition-normal: 250ms var(--ease-base);
  --transition-smooth: 350ms var(--ease-base);
  --transition-slow: 450ms var(--ease-base);

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: 1.5rem;
}

/* --- Dark Theme Tokens --- */
[data-theme="dark"] {
  --color-bg: #0b111e;              /* Deepest midnight navy */
  --color-bg-subtle: #10192a;
  --color-surface: #142035;          /* Elevated slate navy */
  --color-surface-elevated: #1a2a46;
  --color-surface-hover: #1f3252;

  --color-border: #223450;
  --color-border-subtle: #19273c;
  --color-border-focus: #d4af37;

  --color-text-primary: #f6f8fb;
  --color-text-secondary: #98a7bc;
  --color-text-muted: #64748b;
  --color-text-inverse: #0b111e;

  --color-primary-action: #1e3352;
  --color-primary-action-text: #ffffff;
  --color-accent-action: #d4af37;
  --color-accent-action-text: #09101b;

  --header-bg: rgba(11, 17, 30, 0.94);
  --header-border: rgba(34, 52, 80, 0.85);

  --footer-bg: #070c14;
  --footer-surface: #0e1625;
  --footer-border: #182436;
  --footer-text: #f0f3f8;
  --footer-text-secondary: #90a0b6;
  --footer-text-muted: #536378;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.65), 0 4px 12px -2px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 22px 48px -8px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   2. MODERN CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  overflow-x: clip;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY SCALE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: clamp(2.25rem, 5vw, var(--text-5xl));
  letter-spacing: var(--tracking-tighter);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, var(--text-4xl));
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--text-3xl));
  line-height: 1.28;
}

h4 {
  font-size: clamp(1.25rem, 1.8vw, var(--text-2xl));
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

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

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

.text-xs {
  font-size: var(--text-xs);
}

.text-primary { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-accent { color: var(--brand-gold) !important; }
.text-navy { color: var(--brand-navy) !important; }

.font-serif { font-family: var(--font-heading) !important; }
.font-sans { font-family: var(--font-body) !important; }

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

.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }
.font-medium { font-weight: var(--font-medium); }

.uppercase-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-2);
  display: block;
}

/* ==========================================================================
   4. LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-sm {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

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

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

.gap-1 { gap: var(--space-1); }
.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); }

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }


/* ==========================================================================
   SHARED SECTION HEADINGS & TYPOGRAPHY
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-8);
}

.section-header.flex-between {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .section-header.flex-between {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin-bottom: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--brand-gold);
  transition: transform var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.view-all-link svg {
  transition: transform var(--transition-fast);
}

.view-all-link:hover {
  color: var(--brand-gold-hover);
  transform: translateX(3px);
}

.view-all-link:hover svg {
  transform: translateX(4px);
}


/* ==========================================================================
   GLOBAL RESPONSIVE GRID & CONTAINER UTILITIES
   ========================================================================== */

/* --- 480px: Small Tablets / Landscape Phones --- */
@media (min-width: 480px) {
  :root {
    --container-padding: 2rem;
  }

  .grid-cols-2-xs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- 768px: Tablets --- */
@media (min-width: 768px) {
  :root {
    --header-height-mobile: 72px;
  }

  .grid-cols-2-md {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- 1024px: Laptops / Desktop --- */
@media (min-width: 1024px) {
  .grid-cols-3-lg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-cols-4-lg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- 1440px: Large Monitors / Wide Displays --- */
@media (min-width: 1440px) {
  :root {
    --container-max-width: 1360px;
  }
}
