/* ==========================================================================
   Base Styles — PA Interior Designing Solutions & Construction
   Multi-page Editorial Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — light, warm, refined */
  --color-bg-primary: #faf8f5;
  --color-bg-secondary: #f2efe9;
  --color-bg-tertiary: #e8e4dd;
  --color-bg-card: #ffffff;
  --color-accent: #2c2c2c;
  --color-accent-dark: #1a1a1a;
  --color-accent-light: #444444;
  --color-accent-warm: #a0714f;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #5c5c5c;
  --color-text-muted: #999999;
  --color-border: rgba(28, 28, 28, 0.1);
  --color-border-subtle: rgba(28, 28, 28, 0.06);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-size-base: 16px;
  --font-size-display: clamp(3rem, 6vw, 5.5rem);
  --font-size-h1: clamp(2.5rem, 5vw, 4rem);
  --font-size-h2: clamp(2rem, 4vw, 3.25rem);
  --font-size-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;

  /* Spacing */
  --section-padding: clamp(5rem, 10vw, 9rem);
  --container-max: 1600px;
  --container-narrow: 900px;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 250ms var(--ease-out);
  --transition-medium: 500ms var(--ease-out);
  --transition-slow: 800ms var(--ease-out);

  /* Layout */
  --nav-height: 72px;
}

/* --------------------------------------------------------------------------
   Dark Theme Override
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --color-bg-primary: #0f0f0f;
  --color-bg-secondary: #1a1a1a;
  --color-bg-tertiary: #242424;
  --color-bg-card: #161616;
  --color-accent: #f0f0f0;
  --color-accent-dark: #ffffff;
  --color-accent-light: #cccccc;
  --color-accent-warm: #d4a373;
  --color-text-primary: #f0ede8;
  --color-text-secondary: #9a9590;
  --color-text-muted: #5c5854;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-subtle: rgba(255, 255, 255, 0.05);
}

/* Smooth transition between themes */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Section Label — small uppercase pill text */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-warm);
  margin-bottom: 1.5rem;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding-block: var(--section-padding);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 113, 79, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent-warm);
  color: var(--color-accent-warm);
}

.btn--ghost {
  padding: 0;
  color: var(--color-accent-warm);
  font-weight: 500;
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Reveal animation base */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }
