/*
  FILE: global.css
  ══════════════════════════════════════════════════
  PURPOSE:
  Global design system tokens and base resets for the
  entire PLUS33 website. Must be the first CSS file loaded.

  RESPONSIBILITIES:
  - Defines all CSS custom properties (brand palette,
    typography, spacing scale, shadows, easing curves).
  - Applies minimal opinionated base reset.
  - Provides shared layout utilities (container, section,
    typography scale, text utilities).

  DEVELOPED BY : MIRRO
  CODED BY     : SIVASURYA
  ══════════════════════════════════════════════════
*/

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


/* ═══════════════════════════════════════════════════
   DESIGN SYSTEM TOKENS
═══════════════════════════════════════════════════ */

:root {
  /* ── Color Palette ── */
  --navy:           #203e5f;         /* Medium Steel Navy */
  --navy-deep:      #1a2634;         /* Deep Dark Navy */
  --navy-mid:       #203e5f;         /* Medium Steel Navy */
  --cream:          #fee5b1;         /* Beige / Rich Cream */
  --copper:         #ffcc00;         /* Golden Yellow / Gold */
  --copper-light:   #ffd633;         /* Lighter Gold */
  --copper-pale:    rgba(255, 204, 0, 0.08);
  --gold:           #ffcc00;         /* Golden Yellow / Gold */
  --gold-pale:      rgba(255, 204, 0, 0.08);
  --burgundy-deep:  #1a2634;         /* Deep Dark Navy */
  --marble:         #eaeaea;         /* Light Grey / White */
  --walnut:         #4A2C1A;
  --espresso:       #2C1A11;

  /* ── Text ── */
  --text-main:      #1a2634;         /* Deep Dark Navy */
  --text-on-dark:   #fee5b1;         /* Beige / Rich Cream */
  --text-muted:     rgba(26, 38, 52, 0.55);
  --text-copper:    var(--copper);

  /* ── Borders / Glass ── */
  --border-copper:  rgba(255, 204, 0, 0.20);
  --border-glass:   rgba(255, 255, 255, 0.10);
  --glass-dark:     rgba(26, 38, 52, 0.65);
  --glass-blur:     blur(24px) saturate(180%);

  /* ── Shadows ── */
  --shadow-copper-sm: 0 4px 14px rgba(255, 204, 0, 0.18);
  --shadow-copper:    0 12px 36px rgba(255, 204, 0, 0.26);
  --shadow-card:      0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-dark:      0 24px 60px rgba(0, 0, 0, 0.40);

  /* ── Typography ── */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-serif:   'Cormorant Garamond', 'Georgia', serif;
  --font-sans:    'Manrope', 'Inter', sans-serif;
  --font-ui:      'Manrope', sans-serif;

  /* ── Spacing Scale ── */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  96px;
  --s8:  128px;

  /* ── Border Radius ── */
  --r-sm: 2px;
  --r-md: 6px;
  --r-lg: 16px;

  /* ── Easing Curves ── */
  --ease-luxury:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-rr:        cubic-bezier(0.19, 1.00, 0.22, 1.00);
  --ease-out-expo:  cubic-bezier(0.16, 1.00, 0.30, 1.00);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1.00);
  --ease-cinema:    cubic-bezier(0.19, 1.00, 0.22, 1.00);
}


/* ═══════════════════════════════════════════════════
   BASE RESET
═══════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-main);
  background: var(--navy-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════ */

/* Centered max-width container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* App shell — fills page between fixed navbar and footer */
#app {
  flex: 1;
  position: relative;
}

/* Generic section spacing */
.section    { padding: var(--s8) 0; }
.section-sm { padding: var(--s6) 0; }
.section-lg { padding: calc(var(--s8) + var(--s5)) 0; }


/* ═══════════════════════════════════════════════════
   TYPOGRAPHY SCALE
═══════════════════════════════════════════════════ */

/* Large display heading */
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* Medium display heading */
.display-md {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* Small display heading */
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* Sub-heading */
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 300;
  line-height: 1.3;
}

/* Body copy */
.t-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 200;
  line-height: 1.90;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* Uppercase label */
.t-label {
  font-family: var(--font-ui);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
}

/* Italic accent */
.italic { font-style: italic; }


/* ═══════════════════════════════════════════════════
   TEXT COLOR UTILITIES
═══════════════════════════════════════════════════ */

.text-navy   { color: var(--navy);   }
.text-cream  { color: var(--cream);  }
.text-gold   { color: var(--gold);   }
.text-copper { color: var(--copper); }
.text-center { text-align: center;   }

/* Section header grouping */
.section-header { margin-bottom: var(--s5); }


/* ═══════════════════════════════════════════════════
   PAGE TRANSITION
═══════════════════════════════════════════════════ */

/* Smooth content swap when router changes pages */
#app.page-transitioning {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease-luxury), transform 0.35s var(--ease-luxury);
}

#app.page-entering {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease-luxury), transform 0.45s var(--ease-luxury);
}


/* ═══════════════════════════════════════════════════
   SHADE & OVERLAY GLOBAL DISABLER
   ═══════════════════════════════════════════════════ */

/* Remove background dimming overlays, grain noise, and vignettes globally */
.home-grain,
.home-vignette,
.ambient-grain,
.ambient-vignette,
.home-intro__img-overlay,
.home-feat-card__img-overlay,
.home-experience__img-fade,
.product-overlay-action,
.brochure-card__overlay,
.franchise-hero__overlay,
.locations-hero::before,
.hero-bg-overlay {
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Remove hover brightness reductions or programmatic saturations on imagery */
.home-feat-card:hover .home-feat-card__img,
.product-card:hover .product-img,
.brochure-card:hover .brochure-card__img,
.home-experience__visual:hover .home-experience__img,
.home-intro__img-primary:hover .home-intro__img-el,
.home-intro__img-accent:hover .home-intro__img-el,
.panoramic-visual:hover .panoramic-img {
  filter: none !important;
  opacity: 1 !important;
}


/* ═══════════════════════════════════════════════════
   PRELOADER / SPLASH PAGE STYLES
   ═══════════════════════════════════════════════════ */

.plus33-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a2634; /* Deep Dark Navy fallback */
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), visibility 1s ease;
}

.plus33-splash__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.plus33-splash__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.plus33-splash__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.plus33-splash__logo {
  height: 100px;
  width: auto;
  margin-bottom: 24px;
  animation: splash-logo-enter 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.plus33-splash__title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #fee5b1; /* Rich Cream */
  margin: 0 0 40px 0;
  text-transform: uppercase;
  animation: splash-fade-up 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
  opacity: 0;
}

.plus33-splash__btn {
  background: rgba(26, 38, 52, 0.85); /* Medium navy glassmorphism */
  border: 1px solid #ffcc00; /* Vibrant Gold border */
  color: #ffcc00; /* Vibrant Gold text */
  padding: 18px 44px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  border-radius: 99px; /* Pill shaped */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: splash-fade-up 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
  opacity: 0;
}

.plus33-splash__btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.plus33-splash__btn:hover {
  background: #ffcc00; /* Gold background */
  color: #1a2634; /* Navy text */
  box-shadow: 0 15px 45px rgba(255, 204, 0, 0.35);
  transform: translateY(-3px);
}

.plus33-splash__btn:hover svg {
  transform: translateX(6px);
}

/* Animations */
@keyframes splash-logo-enter {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes splash-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page hidden state class */
.plus33-splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
