/* ==========================================================================
   DIMURA + PARTNERS - BASE STYLES & DESIGN TOKENS
   Foster + Partners Architecture Aesthetic: Pure Minimalist Monochromatic
   File: css/base.css (Under 700 lines)
   ========================================================================== */

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

:root {
  /* Foster + Partners Palette */
  --fp-pure-black: #1a1a1a;
  --fp-black: #333333;
  --fp-white: #ffffff;
  --fp-grey-base: #4d4d4d;
  --fp-grey-1: #747779;
  --fp-grey-2: #969499;
  --fp-grey-border: #ebebeb;
  --fp-grey-light: #f5f5f5;
  --fp-grey-lighter: #fafafa;
  --fp-wa: #25D366;
  --fp-wa-hover: #1EBE5D;

  /* Compatibility & Semantic Aliases */
  --color-black: var(--fp-pure-black);
  --color-hover-gray: var(--fp-black);
  --color-brand-wa: var(--fp-wa);
  --color-brand-wa-hover: var(--fp-wa-hover);
  --bg-primary: var(--fp-white);
  --bg-secondary: var(--fp-grey-light);
  --bg-tertiary: var(--fp-grey-light);
  --bg-surface: var(--fp-white);
  --bg-backdrop: rgba(10, 10, 10, 0.65);
  --text-primary: var(--fp-pure-black);
  --text-secondary: var(--fp-grey-base);
  --text-muted: var(--fp-grey-1);
  --text-inverted: var(--fp-white);
  --border-subtle: var(--fp-grey-border);
  --border-medium: #d1d5db;
  --border-strong: var(--fp-pure-black);

  /* Status Colors */
  --status-new: #0284C7;
  --status-pending: #D97706;
  --status-survey: #7C3AED;
  --status-deal: #16A34A;
  --status-cancel: #DC2626;

  /* Typography */
  --font-primary: 'Open Sans', 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  --font-sans: 'Open Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Open Sans', sans-serif;

  /* Architectural Soft Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Layout */
  --header-height: 75px;
  --container-max: 1440px;
  --container-narrow: 1140px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

/* Foster + Partners Architectural Dark Mode Palette */
[data-theme="dark"] {
  --fp-pure-black: #f3f4f6;
  --fp-black: #e5e7eb;
  --fp-white: #0c0e12;
  --fp-grey-base: #9ca3af;
  --fp-grey-1: #6b7280;
  --fp-grey-2: #4b5563;
  --fp-grey-border: #1f242d;
  --fp-grey-light: #141720;
  --fp-grey-lighter: #181c26;

  --color-black: #f3f4f6;
  --color-hover-gray: #d1d5db;
  --bg-primary: #0c0e12;
  --bg-secondary: #13161f;
  --bg-tertiary: #191d27;
  --bg-surface: #151822;
  --bg-card: #151822;
  --bg-header: rgba(12, 14, 18, 0.94);
  --bg-backdrop: rgba(0, 0, 0, 0.85);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverted: #0c0e12;

  --border-subtle: #1f242d;
  --border-medium: #2e3544;
  --border-strong: #4b5563;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fp-pure-black: #f3f4f6;
    --fp-black: #e5e7eb;
    --fp-white: #0c0e12;
    --fp-grey-base: #9ca3af;
    --fp-grey-1: #6b7280;
    --fp-grey-2: #4b5563;
    --fp-grey-border: #1f242d;
    --fp-grey-light: #141720;
    --fp-grey-lighter: #181c26;

    --color-black: #f3f4f6;
    --color-hover-gray: #d1d5db;
    --bg-primary: #0c0e12;
    --bg-secondary: #13161f;
    --bg-tertiary: #191d27;
    --bg-surface: #151822;
    --bg-card: #151822;
    --bg-header: rgba(12, 14, 18, 0.94);
    --bg-backdrop: rgba(0, 0, 0, 0.85);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-inverted: #0c0e12;

    --border-subtle: #1f242d;
    --border-medium: #2e3544;
    --border-strong: #4b5563;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fp-pure-black);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.65rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2vw, 1.85rem); font-weight: 500; }
h4 { font-size: clamp(1.15rem, 1.4vw, 1.35rem); font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

p {
  color: var(--fp-grey-base);
  font-size: 1rem;
  line-height: 1.7;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Containers - Full Screen Maximum Width with Sleek Architectural Edge Gap */
.container-fp {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(16px, 2.5vw, 40px);
  padding-right: clamp(16px, 2.5vw, 40px);
  margin-left: 0;
  margin-right: 0;
}

.container-narrow {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 2.5vw, 40px);
  padding-right: clamp(16px, 2.5vw, 40px);
}

/* Sections */
.section-fp {
  padding-top: clamp(56px, 5.5vw, 84px);
  padding-bottom: clamp(56px, 5.5vw, 84px);
  border-bottom: 1px solid var(--fp-grey-border);
}

.section-fp-sm {
  padding-top: clamp(40px, 4vw, 60px);
  padding-bottom: clamp(40px, 4vw, 60px);
  border-bottom: 1px solid var(--fp-grey-border);
}

.section-title-wrap {
  margin-bottom: clamp(28px, 2.8vw, 40px);
}

.eyebrow-fp {
  display: block;
  font-size: clamp(0.75rem, 0.85vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fp-grey-1);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Utilities */
.text-muted { color: var(--fp-grey-1); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

@media (max-width: 1024px) {
  .container-fp {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-fp {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

@media (max-width: 768px) {
  .container-fp {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section-fp {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .section-fp-sm {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .section-title-wrap {
    margin-bottom: 20px;
  }
}
