/* ==========================================================================
   MS INTERIOR & DECOR — CHIDAMBARAM
   Core Design System Tokens & Base Reset (Royal Navy Blue & Burnished Gold)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Regal Royal Navy Blue & Burnished Gold Luxury (Signature Studio Aesthetic) */
  --bg-primary: #070b14;
  --bg-secondary: #0d1322;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(13, 20, 36, 0.86);
  --bg-card-hover: rgba(19, 29, 52, 0.96);
  --bg-glass: rgba(7, 11, 20, 0.92);
  
  --text-primary: #f8f9fc;
  --text-secondary: #c2c9db;
  --text-muted: #7d88a4;
  --text-inverse: #070b14;

  /* Burnished Gold & Brass Accents */
  --accent-gold: #c5a059;
  --accent-gold-light: #e5c57e;
  --accent-gold-dark: #9e7d38;
  --accent-bronze: #8f7236;
  --accent-sand: #ded5c4;
  --accent-navy-accent: #19243c;
  --accent-navy-deep: #050810;
  --accent-navy-sapphire: #14284b;

  /* Borders & Dividers */
  --border-subtle: rgba(197, 160, 89, 0.22);
  --border-focus: rgba(197, 160, 89, 0.7);
  --border-hairline: rgba(194, 201, 219, 0.12);

  /* Elevation & Shadows with Royal Navy Glow */
  --shadow-sm: 0 4px 16px rgba(4, 7, 14, 0.55);
  --shadow-md: 0 8px 32px rgba(4, 7, 14, 0.75);
  --shadow-lg: 0 16px 48px rgba(3, 5, 10, 0.92);
  --shadow-glow: 0 8px 32px rgba(197, 160, 89, 0.35);
  --shadow-navy-glow: 0 12px 42px rgba(20, 48, 96, 0.45);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.08);

  /* Typography Families */
  --font-serif-display: 'Cinzel', serif;
  --font-serif-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions & Easings */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.25s var(--ease-editorial);
  --transition-normal: 0.45s var(--ease-editorial);
  --transition-slow: 0.85s var(--ease-editorial);
  --transition-curtain: 1.1s cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --container-max: 1440px;
  --container-padding: clamp(1.25rem, 4vw, 4rem);
  --header-height: 90px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Light / Ambient Mood Modifiers */
[data-mood="midnight-navy"],
[data-mood="evening-noir"],
body[data-mood="midnight-navy"],
body[data-mood="evening-noir"] {
  --bg-primary: #060911;
  --bg-secondary: #0b1120;
  --bg-tertiary: #10182c;
  --bg-card: rgba(11, 17, 32, 0.92);
  --bg-card-hover: rgba(17, 26, 48, 0.98);
  --bg-glass: rgba(6, 9, 17, 0.94);
  --accent-gold: #c5a059;
  --accent-gold-light: #e5c57e;
  --border-subtle: rgba(197, 160, 89, 0.26);
  --shadow-glow: 0 8px 32px rgba(18, 45, 90, 0.55);
  --shadow-navy-glow: 0 14px 48px rgba(15, 38, 80, 0.65);
}

[data-mood="golden-hour"],
body[data-mood="golden-hour"] {
  --bg-primary: #0d0c0a;
  --bg-secondary: #161410;
  --bg-card: rgba(22, 20, 16, 0.88);
  --accent-gold: #d4af37;
  --accent-gold-light: #f3df9b;
  --shadow-glow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

[data-mood="morning-light"],
body[data-mood="morning-light"] {
  --bg-primary: #0f1218;
  --bg-secondary: #161b24;
  --bg-card: rgba(22, 27, 36, 0.88);
  --accent-gold: #c9b482;
  --accent-gold-light: #f0e2be;
  --shadow-glow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background-color: var(--bg-primary);
  line-height: 1.65;
  transition: background-color var(--transition-slow);
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Noise overlay texture for tactile richness */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.15;
}

.font-editorial {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-weight: 300;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.05rem;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

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

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-padding {
  padding-block: clamp(5rem, 10vw, 10rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-gold);
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-tag {
  justify-content: center;
}

.section-header.text-center .section-tag::before,
.section-header.text-center .section-tag::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-gold);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.section-header.text-center .section-subtitle {
  margin-inline: auto;
}

/* Custom Selection */
::selection {
  background: var(--accent-gold);
  color: var(--text-inverse);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}
