/*
Theme Name: Excelsior Kitchens Child
Theme URI: https://excelsior-kitchens.ca
Template: hello-elementor
Description: Custom child theme for Excelsior Kitchens Limited. Houses the design system tokens, self-hosted fonts, and base typography for the monochromatic architectural site.
Author: Cosi Customs
Author URI: https://cosicustoms.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: monochromatic, architectural, cabinetry, millwork, premium
Text Domain: hello-elementor-child
*/

/* =========================================================================
   EXCELSIOR KITCHENS — DESIGN SYSTEM
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. SELF-HOSTED FONTS
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('fonts/Mulish-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('fonts/Mulish-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('fonts/Mulish-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ------------------------------------------------------------------------- */

:root {
  /* COLOR PALETTE — Monochromatic */
  --ek-black: #0a0a0a;
  --ek-charcoal: #1a1a1a;
  --ek-gray-900: #2a2a2a;
  --ek-gray-600: #6b6b6b;
  --ek-gray-300: #d4d4d4;
  --ek-gray-100: #f4f4f4;
  --ek-white: #ffffff;
  --ek-green: #006225;

  /* TYPOGRAPHY — Font Families */
  --ek-font-heading: 'Cinzel', Georgia, serif;
  --ek-font-body: 'Mulish', 'Helvetica Neue', system-ui, sans-serif;
  --ek-font-accent: 'Cormorant Garamond', Georgia, serif;

  /* TYPOGRAPHY — Fluid Scale */
  --ek-h1: clamp(2.5rem, 5vw, 4.5rem);
  --ek-h2: clamp(1.75rem, 3vw, 2.75rem);
  --ek-h3: clamp(1.25rem, 2vw, 1.5rem);
  --ek-h4: 1.125rem;
  --ek-body: 1rem;
  --ek-small: 0.875rem;
  --ek-xs: 0.75rem;

  /* TYPOGRAPHY — Tracking */
  --ek-tracking-tight: -0.01em;
  --ek-tracking-normal: 0;
  --ek-tracking-wide: 0.05em;
  --ek-tracking-wider: 0.1em;
  --ek-tracking-widest: 0.15em;

  /* TYPOGRAPHY — Line Heights */
  --ek-leading-tight: 1.1;
  --ek-leading-snug: 1.3;
  --ek-leading-normal: 1.5;
  --ek-leading-relaxed: 1.6;

  /* SPACING */
  --ek-space-xs: 0.5rem;
  --ek-space-sm: 1rem;
  --ek-space-md: 2rem;
  --ek-space-lg: 4rem;
  --ek-space-xl: 8rem;
  --ek-space-2xl: 12rem;

  /* LAYOUT */
  --ek-content-width: 1280px;
  --ek-content-narrow: 880px;

  /* MOTION */
  --ek-transition: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ek-transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --ek-transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  /* BORDERS */
  --ek-divider: 1px solid var(--ek-black);
  --ek-divider-light: 1px solid var(--ek-gray-300);
}

/* -------------------------------------------------------------------------
   3. BASE RESETS
   ------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ek-font-body);
  font-size: var(--ek-body);
  line-height: var(--ek-leading-relaxed);
  color: var(--ek-black);
  background-color: var(--ek-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------------------------
   4. BASE TYPOGRAPHY
   ------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ek-font-heading);
  color: var(--ek-black);
  font-weight: 400;
  line-height: var(--ek-leading-tight);
  letter-spacing: var(--ek-tracking-wider);
  text-transform: uppercase;
  margin-top: 0;
}

h1 {
  font-size: var(--ek-h1);
  margin-bottom: var(--ek-space-md);
}

h2 {
  font-size: var(--ek-h2);
  margin-bottom: var(--ek-space-md);
}

h3 {
  font-size: var(--ek-h3);
  margin-bottom: var(--ek-space-sm);
}

h4 {
  font-size: var(--ek-h4);
  margin-bottom: var(--ek-space-sm);
}

p {
  margin-top: 0;
  margin-bottom: var(--ek-space-sm);
  line-height: var(--ek-leading-relaxed);
}

a {
  color: var(--ek-green);
  text-decoration: none;
  transition: opacity var(--ek-transition);
}

a:hover {
  opacity: 0.7;
}

/* -------------------------------------------------------------------------
   5. ACCESSIBILITY
   ------------------------------------------------------------------------- */

*:focus-visible {
  outline: 2px solid var(--ek-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ek-black);
  color: var(--ek-white);
  padding: var(--ek-space-xs) var(--ek-space-sm);
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* -------------------------------------------------------------------------
   6. UTILITY CLASSES
   ------------------------------------------------------------------------- */

.ek-divider {
  width: 100%;
  height: 1px;
  background: var(--ek-black);
  border: 0;
  margin: var(--ek-space-lg) 0;
}

.ek-divider--light {
  background: var(--ek-gray-300);
}

.ek-quote {
  font-family: var(--ek-font-accent);
  font-style: italic;
  font-size: 1.25rem;
  line-height: var(--ek-leading-snug);
  color: var(--ek-black);
}

.ek-section {
  padding: var(--ek-space-lg) var(--ek-space-md);
}

.ek-section--lg {
  padding: var(--ek-space-xl) var(--ek-space-md);
}

.ek-section--dark {
  background: var(--ek-charcoal);
  color: var(--ek-white);
}

.ek-section--dark h1,
.ek-section--dark h2,
.ek-section--dark h3,
.ek-section--dark h4 {
  color: var(--ek-white);
}

.ek-section--gray {
  background: var(--ek-gray-100);
}

/* -------------------------------------------------------------------------
   7. SIGNATURE INTERACTIONS
   ------------------------------------------------------------------------- */

.ek-hover-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ek-hover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  transition: background var(--ek-transition);
  z-index: 1;
}

.ek-hover-card:hover::before {
  background: rgba(10, 10, 10, 0);
}

.ek-hover-card__content {
  position: relative;
  z-index: 2;
}

.ek-hover-card--heavy::before {
  background: rgba(10, 10, 10, 0.7);
}

.ek-portrait {
  filter: grayscale(100%);
  transition: filter var(--ek-transition);
}

.ek-portrait:hover {
  filter: grayscale(0%);
}

.ek-project-thumb {
  position: relative;
  overflow: hidden;
}

.ek-project-thumb__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--ek-black);
  color: var(--ek-white);
  padding: var(--ek-space-sm) var(--ek-space-md);
  transform: translateY(100%);
  transition: transform var(--ek-transition);
}

.ek-project-thumb:hover .ek-project-thumb__overlay {
  transform: translateY(0);
}

.ek-logo-marquee {
  display: flex;
  gap: var(--ek-space-lg);
  animation: ek-scroll 40s linear infinite;
}

.ek-logo-marquee img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity var(--ek-transition);
}

.ek-logo-marquee img:hover {
  opacity: 1;
}

@keyframes ek-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
