/*
Theme Name:  Custom Realty
Theme URI:   https://custom-realty.ca
Author:      Solid Mass Media
Author URI:  https://solidmassmedia.com
Description: Custom WordPress theme for Custom Realty property management.
Version:     1.0.3
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-realty
Tags:        custom-theme, real-estate, property-management
*/

/* ============================================================
   DESIGN TOKENS
   Source: Figma — custom-realty.ca (node 52-370)
   Fallback reference: designs/custom-realty.ca-home-v4.jpg
   ============================================================ */

:root {
  /* ----------------------------------------------------------
     COLORS
  ---------------------------------------------------------- */

  /* Brand */
  --color-primary: #c62828; /* Red — CTAs, icons, accents      */
  --color-primary-dark: #a40308; /* Red hover / pressed state        */
  --color-primary-bg: #c62828; /* Full-width red banner sections   */
  --color-primary-tint: #ffdad6; /* Light red — icon chip background */

  /* Neutrals */
  --color-dark: #111820; /* Hero overlay, footer background  */
  --color-dark-alt: #1a2535; /* Secondary dark surface           */
  --color-white: #ffffff; /* Default section background       */
  --color-gray-light: #f5f5f5; /* Footer background                */
  --color-gray-alt: #f3f3f3; /* Alternating section background   */
  --color-gray-mid: #e2e2e3; /* Borders, dividers                */
  --color-gray: #888888; /* Placeholder / disabled           */

  /* Text */
  --color-text: #1a1a1a; /* Body copy on light backgrounds   */
  --color-text-muted: #66666f; /* Secondary / caption text         */
  --color-text-light: #ffffff; /* Body copy on dark backgrounds    */
  --color-dimgray: #66666f; /* Section backgrounds (CLS panels) */

  /* ----------------------------------------------------------
     TYPOGRAPHY
  ---------------------------------------------------------- */

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Scale */
  --size-xs: 0.75rem; /*  12px */
  --size-sm: 0.875rem; /*  14px */
  --size-base: 1rem; /*  16px */
  --size-md: 1.125rem; /*  18px */
  --size-md-lg: 1.25rem; /*  20px */
  --size-lg: 1.5rem; /*  24px */
  --size-xl: 2rem; /*  32px */
  --size-2xl: 2.5rem; /*  40px */
  --size-3xl: 3rem; /*  48px */
  --size-4xl: 3.75rem; /*  60px */
  --size-5xl: 4.5rem; /*  72px */
  --size-6xl: 6.5625rem; /* 105px — hero title (Figma confirmed) */
  --size-heading: 2.75rem; /*  44px — section heading (Figma confirmed) */

  /* Weight */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Line height */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-loose: 1.8;

  /* Letter spacing */
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;
  --word-spacing-readable: 0.1rem;

  /* ----------------------------------------------------------
     SPACING  (8px base grid)
  ---------------------------------------------------------- */

  --space-1: 0.25rem; /*  4px */
  --space-2: 0.5rem; /*  8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-7: 2.5rem; /* 40px */
  --space-8: 3rem; /* 48px */
  --space-9: 4rem; /* 64px */
  --space-10: 5rem; /* 80px */
  --space-11: 6rem; /* 96px */
  --space-12: 8rem; /* 128px */

  /* Semantic aliases */
  --section-py: var(--space-10); /* 80px — desktop section padding */
  --section-py-sm: var(--space-8); /* 48px — mobile section padding  */
  --card-gap: var(--space-5); /* 24px — card grid gap           */
  --card-pad: var(--space-6); /* 32px — card inner padding      */

  /* ----------------------------------------------------------
     LAYOUT
  ---------------------------------------------------------- */

  --container-max: 1200px;
  --container-pad: var(--space-5); /* 24px horizontal gutter */

  /* ----------------------------------------------------------
     BORDER RADIUS
  ---------------------------------------------------------- */

  --radius-sm: 2px;
  --radius-base: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* ----------------------------------------------------------
     SHADOWS
  ---------------------------------------------------------- */

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.18);

  /* ----------------------------------------------------------
     TRANSITIONS
  ---------------------------------------------------------- */

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* ----------------------------------------------------------
     Z-INDEX SCALE
  ---------------------------------------------------------- */

  --z-below: -1;
  --z-base: 0;
  --z-above: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 9999;
}

/* ============================================================
   BASE RESET
   ============================================================ */

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

html {
  font-size: 100%; /* 16px base */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  line-height: var(--leading-normal);
  word-spacing: var(--word-spacing-readable);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

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

/* ============================================================
   ANIMATION PRE-HIDE
   Hide load-animated elements before GSAP runs to prevent
   flash of unanimated content. GSAP autoAlpha restores them.
   ============================================================ */

[data-animate='header-logo'],
[data-animate='header-nav'],
[data-animate='header-cta'],
[data-animate='header-toggle'],
[data-animate='hero-eyebrow'],
[data-animate='hero-title'],
[data-animate='hero-description'],
[data-animate='hero-cta'],
[data-animate='inner-hero-eyebrow'],
[data-animate='inner-hero-title'],
[data-animate='inner-hero-body'],
[data-animate='inner-hero-cta'],
[data-animate='inner-hero-media'],
[data-animate~='load-up'],
[data-animate~='load-down'],
[data-animate~='load-fade'],
[data-animate~='load-left'] {
  visibility: hidden;
}
