/* ═══════════════════════════════════════════════════════
   QUICK CREATIVE PROPERTY LIMITED — Design System
   Replicated from Next.js + Tailwind to vanilla CSS
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   @FONT-FACE — Self-hosted Google Fonts (no FOUT)
   ═══════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/dm-sans-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/dm-sans-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-italic.woff2) format('woff2');
}

/* ═══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════ */
:root {
  /* Colors */
  --primary-50: #E8ECF2;
  --primary-100: #D1D9E5;
  --primary-200: #A3B3CB;
  --primary-300: #758DB1;
  --primary-400: #476797;
  --primary-500: #19417D;
  --primary-600: #143466;
  --primary-700: #0F274F;
  --primary-800: #0A1A38;
  --primary-900: #1B2A4A;

  --cyan-50: #E6F7FD;
  --cyan-100: #C0EBFA;
  --cyan-200: #8DD9F5;
  --cyan-300: #54C6EF;
  --cyan-400: #20B4E8;
  --cyan-500: #01B0EF;
  --cyan-600: #018FC2;
  --cyan-700: #016F96;
  --cyan-800: #01506B;
  --cyan-900: #013242;

  --red-50: #FDEBEC;
  --red-100: #FACDD0;
  --red-200: #F5A0A6;
  --red-300: #F0737C;
  --red-400: #ED4B56;
  --red-500: #ED3439;
  --red-600: #C42A2F;
  --red-700: #9C2025;
  --red-800: #74171B;
  --red-900: #4D0E11;

  --brass-500: #C9A84C;
  --brass-400: #CFB24E;

  --warm-gray: #F5F5F0;
  --dark-charcoal: #2D2D2D;

  /* Semantic */
  --bg: var(--warm-gray);
  --bg-alt: #FFFFFF;
  --text: var(--dark-charcoal);
  --text-muted: rgba(45, 45, 45, 0.6);
  --border-color: rgba(27, 42, 74, 0.08);

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27,42,74,0.06), 0 4px 12px rgba(27,42,74,0.08), 0 8px 28px rgba(27,42,74,0.1);
  --shadow-md: 0 2px 4px rgba(27,42,74,0.06), 0 8px 20px rgba(27,42,74,0.1), 0 16px 48px rgba(27,42,74,0.14);
  --shadow-lg: 0 4px 8px rgba(27,42,74,0.08), 0 12px 32px rgba(27,42,74,0.12), 0 24px 64px rgba(27,42,74,0.16);

  /* Radius */
  --radius: 0px;

  /* Transitions */
  --ease-structural: cubic-bezier(0.33, 1, 0.68, 1);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;

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

/* ═══════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #0f1729;
  --bg-alt: #111827;
  --text: #F5F5F0;
  --text-muted: rgba(245, 245, 240, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.3), 0 8px 28px rgba(0,0,0,0.4);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.3), 0 16px 48px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.3), 0 24px 64px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Offset for fixed navbar when scrolling to anchors */
section[id] {
  scroll-margin-top: 80px;
}

#contact-form {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}


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

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

::selection {
  background: rgba(237, 52, 57, 0.3);
  color: var(--dark-charcoal);
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: var(--font-serif);
}

.text-gradient-red {
  background: linear-gradient(135deg, #ED3439 0%, #F0737C 20%, #FDEBEC 35%, #ED3439 50%, #C42A2F 65%, #ED4B56 80%, #ED3439 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil-shift 8s ease-in-out infinite;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #01B0EF 0%, #54C6EF 30%, #01B0EF 50%, #018FC2 70%, #01B0EF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil-shift 6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }
}

/* ═══════════════════════════════════════════════════════
   BACKGROUNDS
   ═══════════════════════════════════════════════════════ */
.bg-warm { background-color: var(--warm-gray); }
.bg-white-section { background-color: #FFFFFF; }
.bg-primary-900 { background-color: var(--primary-900); }
.bg-dark { background-color: #0f1729; }

[data-theme="dark"] .bg-warm { background-color: #0f1729; }
[data-theme="dark"] .bg-white-section { background-color: #111827; }

/* ═══════════════════════════════════════════════════════
   BLUEPRINT GRID
   ═══════════════════════════════════════════════════════ */
.blueprint-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 176, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 176, 239, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.blueprint-grid-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 42, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 74, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

[data-theme="dark"] .blueprint-grid-light {
  background-image:
    linear-gradient(rgba(1, 176, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 176, 239, 0.04) 1px, transparent 1px);
}

/* ═══════════════════════════════════════════════════════
   STRUCTURAL SHADOWS
   ═══════════════════════════════════════════════════════ */
.structural-shadow { box-shadow: var(--shadow-sm); }
.structural-shadow-md { box-shadow: var(--shadow-md); }
.structural-shadow-lg { box-shadow: var(--shadow-lg); }

/* ═══════════════════════════════════════════════════════
   GLOW EFFECTS
   ═══════════════════════════════════════════════════════ */
.cyan-glow {
  box-shadow: 0 0 20px rgba(1, 176, 239, 0.25), 0 0 40px rgba(1, 176, 239, 0.1);
}

.cyan-glow-subtle {
  box-shadow: 0 0 12px rgba(1, 176, 239, 0.15);
}

.red-glow {
  box-shadow: 0 0 20px rgba(237, 52, 57, 0.25), 0 0 40px rgba(237, 52, 57, 0.1);
}

/* ═══════════════════════════════════════════════════════
   ARCHITECTURAL FRAME
   ═══════════════════════════════════════════════════════ */
.architectural-frame {
  position: relative;
  display: inline-block;
}

.architectural-frame::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--cyan-500);
  border-left: 2px solid var(--cyan-500);
  z-index: 2;
}

.architectural-frame::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--cyan-500);
  border-right: 2px solid var(--cyan-500);
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════
   CONSTRUCTION DIVIDER
   ═══════════════════════════════════════════════════════ */
.construction-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.construction-divider::before,
.construction-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--cyan-500) 50%, transparent);
}

.construction-divider::before {
  background: linear-gradient(to left, transparent, var(--cyan-500) 50%, transparent);
}

.construction-divider.red::before,
.construction-divider.red::after {
  background: linear-gradient(to right, transparent, var(--red-500) 50%, transparent);
}

.construction-divider.red::before {
  background: linear-gradient(to left, transparent, var(--red-500) 50%, transparent);
}

/* ═══════════════════════════════════════════════════════
   SPEC STAMP
   ═══════════════════════════════════════════════════════ */
.spec-stamp {
  position: relative;
  border: 1.5px solid rgba(1, 176, 239, 0.5);
  background: rgba(27, 42, 74, 0.03);
}

.spec-stamp::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(1, 176, 239, 0.2);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   GOLDEN HOUR SWEEP (hover effect on images)
   ═══════════════════════════════════════════════════════ */
.golden-hour-sweep {
  position: relative;
  overflow: hidden;
}

.golden-hour-sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(1, 176, 239, 0.06) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(1, 176, 239, 0.06) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-structural);
  pointer-events: none;
  z-index: 2;
}

.golden-hour-sweep:hover::after {
  transform: translateX(100%);
}

/* ═══════════════════════════════════════════════════════
   PILLAR GLOW (hover underline on cards)
   ═══════════════════════════════════════════════════════ */
.pillar-glow {
  position: relative;
}

.pillar-glow::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(237, 52, 57, 0.4), transparent);
  transition: all 0.4s ease;
}

.pillar-glow:hover::before {
  width: 80%;
  background: linear-gradient(to right, transparent, rgba(237, 52, 57, 0.8), transparent);
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR HIDE
   ═══════════════════════════════════════════════════════ */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Sizes */
.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; }
.btn-base { height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn-lg { height: 3.25rem; padding: 0 2rem; font-size: 1.0625rem; }
.btn-xl { height: 3.75rem; padding: 0 2.5rem; font-size: 1.125rem; }

/* Variants */
.btn-accent {
  background-color: var(--cyan-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 176, 239, 0.35);
}

.btn-accent:hover {
  background-color: var(--cyan-600);
  box-shadow: 0 6px 20px rgba(1, 176, 239, 0.45);
  transform: translateY(-1px);
}

.btn-outline-red {
  background: transparent;
  color: var(--red-500);
  border: 2px solid var(--red-500);
}

.btn-outline-red:hover {
  background-color: var(--red-500);
  color: #fff;
}

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan-500);
  border: 2px solid rgba(1, 176, 239, 0.4);
}

.btn-outline-cyan:hover {
  background-color: var(--cyan-500);
  color: #fff;
}

.btn-primary {
  background-color: var(--primary-900);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-800);
}

.btn-ghost {
  background: transparent;
  color: inherit;
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════ */
.card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}

[data-theme="dark"] .card {
  background: #111827;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════ */
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(45, 45, 45, 0.15);
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.15);
  color: #F5F5F0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(237, 52, 57, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(45, 45, 45, 0.35);
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(27, 42, 74, 0.9);
  border: 1px solid rgba(237, 52, 57, 0.25);
  color: var(--red-400);
}

.badge-cyan {
  background: rgba(27, 42, 74, 0.9);
  border: 1px solid rgba(1, 176, 239, 0.25);
  color: var(--cyan-400);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  transition: all 0.5s ease;
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(17, 24, 39, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo img {
  height: 2.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .nav-logo img { height: 2.5rem; }
}

/* Logo visibility states */
.logo-scrolled { display: none; }

/* Hero state (transparent nav on dark bg): show light logo */
.navbar:not(.scrolled) .logo-hero { display: block; }
.navbar:not(.scrolled) .logo-scrolled { display: none; }

/* Scrolled — light mode (default): show dark logo on white bg */
.navbar.scrolled .logo-hero { display: none; }
.navbar.scrolled .logo-light-mode { display: block; }
.navbar.scrolled .logo-dark-mode { display: none; }

/* Scrolled — dark mode: show light logo on dark bg */
[data-theme="dark"] .navbar.scrolled .logo-light-mode { display: none; }
[data-theme="dark"] .navbar.scrolled .logo-dark-mode { display: block; }

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .nav-links { display: flex; }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

/* Hero state (transparent nav) */
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.7); }
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active { color: #fff; }

/* Scrolled state */
.navbar.scrolled .nav-link { color: rgba(45,45,45,0.7); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--dark-charcoal); }

[data-theme="dark"] .navbar.scrolled .nav-link { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .navbar.scrolled .nav-link:hover,
[data-theme="dark"] .navbar.scrolled .nav-link.active { color: #fff; }

/* Active indicator */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan-500);
}

/* Theme toggle */
.theme-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .theme-toggle { display: flex; }
}

.navbar.scrolled .theme-toggle {
  border-color: rgba(27,42,74,0.2);
  color: rgba(27,42,74,0.6);
}

[data-theme="dark"] .navbar.scrolled .theme-toggle {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}

.theme-toggle:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.navbar.scrolled .theme-toggle:hover {
  border-color: rgba(27,42,74,0.4);
  color: var(--dark-charcoal);
}

[data-theme="dark"] .navbar.scrolled .theme-toggle:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s ease;
}

.navbar.scrolled .mobile-menu-btn { color: var(--dark-charcoal); }
[data-theme="dark"] .navbar.scrolled .mobile-menu-btn { color: #fff; }

@media (min-width: 992px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--primary-900);
  border-left: 1px solid rgba(1, 176, 239, 0.1);
  z-index: 1050;
  transition: right 0.35s var(--ease-structural);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1045;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mobile-menu-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 0.75rem 0;
  transition: color 0.3s ease;
  display: block;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--red-500);
}

.mobile-menu-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--cyan-500);
  z-index: 1060;
  width: 0%;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-900);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1rem 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(1, 176, 239, 0.5);
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(1, 176, 239, 0.2);
  pointer-events: none;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cyan-500);
}

.hero-badge-text {
  color: rgba(1, 176, 239, 0.8);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero-badge-text { font-size: 0.875rem; }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 1.5rem;
  max-width: 56rem;
}

@media (min-width: 640px) {
  .hero-headline { font-size: 3rem; }
}

@media (min-width: 768px) {
  .hero-headline { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-headline { font-size: 4.5rem; }
}

.hero-headline .word {
  display: inline-block;
  margin-right: 0.2em;
}

.hero-subtext {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .hero-subtext { font-size: 1.125rem; }
}

@media (min-width: 768px) {
  .hero-subtext { font-size: 1.25rem; }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Hero ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-orb-tr {
  top: -5rem;
  right: -5rem;
  width: 300px;
  height: 300px;
  background: rgba(1, 176, 239, 0.03);
}

.hero-orb-bl {
  bottom: -5rem;
  left: -5rem;
  width: 250px;
  height: 250px;
  background: rgba(1, 111, 150, 0.03);
}

@media (min-width: 640px) {
  .hero-orb-tr { width: 600px; height: 600px; }
  .hero-orb-bl { width: 500px; height: 500px; }
}

/* Grid nodes */
.grid-node {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(1, 176, 239, 0.4);
  border-radius: 0;
  animation: grid-node-pulse 4s ease-in-out infinite;
}

/* Scroll indicator */
/* ── Mansion SVG (desktop only) ── */
.hero-mansion {
  display: none;
  position: absolute;
  bottom: 6%;
  left: 3%;
  z-index: 10;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-mansion { display: block; }
}

.hero-mansion svg {
  width: 280px;
  height: auto;
}

@media (min-width: 1024px) {
  .hero-mansion svg { width: 380px; }
}

/* Master plan background */
.hero-masterplan {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-masterplan { display: block; }
}

.hero-masterplan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════ */
.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label.cyan { color: var(--cyan-600); }
.section-label.red { color: var(--red-500); }

[data-theme="dark"] .section-label.cyan { color: var(--cyan-400); }

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

[data-theme="dark"] .section-title { color: #fff; }

@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3.75rem; }
}

.section-desc {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   STATS CARDS
   ═══════════════════════════════════════════════════════ */
.stat-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-slow);
  position: relative;
}

[data-theme="dark"] .stat-card { background: #111827; }

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card-top-line {
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: rgba(1, 176, 239, 0.3);
  transition: background 0.5s ease;
}

.stat-card:hover .stat-card-top-line {
  background: var(--cyan-500);
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(27, 42, 74, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.5s ease;
}

[data-theme="dark"] .stat-icon {
  background: rgba(255, 255, 255, 0.05);
}

.stat-card:hover .stat-icon {
  background: var(--primary-900);
}

.stat-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(27, 42, 74, 0.7);
  transition: color 0.5s ease;
}

.stat-card:hover .stat-icon svg {
  color: var(--cyan-500);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
  line-height: 1;
}

[data-theme="dark"] .stat-number { color: #fff; }

@media (min-width: 640px) {
  .stat-number { font-size: 3.75rem; }
}

.stat-label {
  color: var(--cyan-600);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.stat-index {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(1, 176, 239, 0.2);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.stat-index span {
  width: 1rem;
  height: 1px;
  background: rgba(1, 176, 239, 0.2);
}

/* ═══════════════════════════════════════════════════════
   SPEC CARDS (About / Services)
   ═══════════════════════════════════════════════════════ */
.spec-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition-slow);
  position: relative;
}

[data-theme="dark"] .spec-card { background: #111827; }

.spec-card:hover {
  box-shadow: var(--shadow-md);
}

.spec-number {
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(1, 176, 239, 0.5);
  letter-spacing: 0.15em;
  transition: color 0.5s ease;
}

.spec-card:hover .spec-number { color: rgba(237, 52, 57, 0.7); }

.spec-icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(1, 176, 239, 0.3);
  margin: 1.25rem 0;
  transition: border-color 0.5s ease;
}

.spec-card:hover .spec-icon-box {
  border-color: rgba(237, 52, 57, 0.4);
}

.spec-icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cyan-600);
  transition: color 0.5s ease;
}

.spec-card:hover .spec-icon-box svg {
  color: var(--red-500);
}

.spec-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .spec-card-title { color: #fff; }

.spec-card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.spec-card-bottom-line {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: rgba(1, 176, 239, 0.2);
  transition: background 0.5s ease;
}

.spec-card:hover .spec-card-bottom-line {
  background: rgba(237, 52, 57, 0.7);
}

/* ═══════════════════════════════════════════════════════
   SERVICE CARDS (compact variant)
   ═══════════════════════════════════════════════════════ */
.service-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: var(--transition-slow);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

[data-theme="dark"] .service-card { background: #111827; }

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-card-num {
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(1, 176, 239, 0.4);
  letter-spacing: 0.15em;
  transition: color 0.5s ease;
}

.service-card:hover .service-card-num {
  color: rgba(1, 176, 239, 0.7);
}

.service-card-dash {
  width: 1.5rem;
  height: 1px;
  background: rgba(1, 176, 239, 0.2);
  transition: all 0.5s ease;
}

.service-card:hover .service-card-dash {
  width: 2.5rem;
  background: rgba(1, 176, 239, 0.6);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 42, 74, 0.08);
  margin-bottom: 1.25rem;
  transition: all 0.5s ease;
}

[data-theme="dark"] .service-icon {
  border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover .service-icon {
  border-color: rgba(1, 176, 239, 0.3);
  background: rgba(1, 176, 239, 0.06);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(27, 42, 74, 0.6);
  transition: color 0.5s ease;
}

[data-theme="dark"] .service-icon svg {
  color: rgba(255, 255, 255, 0.6);
}

.service-card:hover .service-icon svg {
  color: var(--cyan-600);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.625rem;
}

[data-theme="dark"] .service-title { color: #fff; }

.service-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.service-card-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-structural);
}

.service-card:hover .service-card-bottom-line {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════════
   VALUE / PILLAR CARDS
   ═══════════════════════════════════════════════════════ */
.value-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 3rem;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
}

[data-theme="dark"] .value-card { background: #111827; }

.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.value-icon {
  display: inline-flex;
  position: relative;
  width: 5rem;
  height: 5rem;
  background: var(--primary-900);
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: background 0.5s ease;
}

.value-card:hover .value-icon {
  background: var(--red-500);
}

.value-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--red-500);
  transition: color 0.5s ease;
}

.value-card:hover .value-icon svg {
  color: #fff;
}

.value-icon-corner-tl,
.value-icon-corner-br {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-color: transparent;
  transition: border-color 0.5s ease;
}

.value-icon-corner-tl {
  top: -0.25rem;
  left: -0.25rem;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
}

.value-icon-corner-br {
  bottom: -0.25rem;
  right: -0.25rem;
  border-bottom: 1px solid transparent;
  border-right: 1px solid transparent;
}

.value-card:hover .value-icon-corner-tl,
.value-card:hover .value-icon-corner-br {
  border-color: rgba(237, 52, 57, 0.6);
}

.value-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

[data-theme="dark"] .value-title { color: #fff; }

.value-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 18rem;
  margin: 0 auto;
}

.value-divider {
  width: 3rem;
  height: 1px;
  background: rgba(237, 52, 57, 0.2);
  margin: 2rem auto 0;
  transition: all 0.5s ease;
}

.value-card:hover .value-divider {
  width: 5rem;
  background: rgba(237, 52, 57, 0.6);
}

/* ═══════════════════════════════════════════════════════
   PROJECT CARDS
   ═══════════════════════════════════════════════════════ */
.project-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  position: absolute;
  inset: 0;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.9) 0%, rgba(27,42,74,0.3) 50%, transparent 100%);
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 0.9;
}

.project-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.375rem 0.625rem;
  background: rgba(27, 42, 74, 0.9);
  border: 1px solid rgba(237, 52, 57, 0.25);
  color: var(--red-400);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-card-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.project-card-dot.active {
  background: var(--cyan-500);
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 3;
}

.project-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
  line-height: 1.25;
}

.project-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(237, 52, 57, 0.8);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.project-card-location svg {
  width: 0.75rem;
  height: 0.75rem;
}

.project-card-detail {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.project-card-detail span { color: var(--red-400); }

.project-card-detail svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Project slider */
.projects-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 2rem;
}

.projects-slider::-webkit-scrollbar { display: none; }

.project-slide {
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .project-slide { min-width: 340px; }
}

@media (min-width: 768px) {
  .project-slide { min-width: 380px; }
}

@media (min-width: 1024px) {
  .project-slide { min-width: 420px; }
}

/* Slider nav buttons */
.slider-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237, 52, 57, 0.2);
  background: transparent;
  color: var(--red-500);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: var(--red-500);
  color: #fff;
}

/* Category filter buttons */
.cat-filter {
  display: inline-flex;
  background: #fff;
  border: 1px solid rgba(237, 52, 57, 0.15);
  box-shadow: var(--shadow-sm);
  padding: 0.25rem;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

[data-theme="dark"] .cat-filter { background: #111827; }

.cat-filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cat-filter-btn:hover {
  color: var(--red-500);
}

.cat-filter-btn.active {
  background: var(--red-500);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   CONTACT INFO CARDS
   ═══════════════════════════════════════════════════════ */
.contact-info-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all 0.5s ease;
}

[data-theme="dark"] .contact-info-card { background: #111827; }

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 42, 74, 0.04);
}

[data-theme="dark"] .contact-info-icon {
  background: rgba(255, 255, 255, 0.05);
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(27, 42, 74, 0.6);
}

[data-theme="dark"] .contact-info-icon svg {
  color: rgba(255, 255, 255, 0.6);
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.625rem;
}

[data-theme="dark"] .contact-info-title { color: #fff; }

.contact-info-detail {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════ */
.contact-form-wrapper {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.5rem;
  position: relative;
}

[data-theme="dark"] .contact-form-wrapper { background: #111827; }

@media (min-width: 1024px) {
  .contact-form-wrapper { padding: 2.5rem; }
}

.contact-form-corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-color: rgba(237, 52, 57, 0.2);
}

.contact-form-corner.tl {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.contact-form-corner.br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* ═══════════════════════════════════════════════════════
   CERTIFICATE CARDS
   ═══════════════════════════════════════════════════════ */
.cert-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-slow);
}

[data-theme="dark"] .cert-card { background: #111827; }

.cert-card:hover {
  box-shadow: var(--shadow-md);
}

.cert-card-image {
  position: relative;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 1rem;
}

[data-theme="dark"] .cert-card-image { background: #1f2937; }

.cert-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-card-image img {
  transform: scale(1.05);
}

.cert-card-image-border {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
}

.cert-card:hover .cert-card-image-border {
  border-color: rgba(1, 176, 239, 0.2);
}

.cert-card-view-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
}

.cert-card:hover .cert-card-view-overlay {
  background: rgba(27, 42, 74, 0.1);
}

.cert-card-view-text {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: rgba(27, 42, 74, 0.7);
  padding: 0.375rem 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover .cert-card-view-text {
  opacity: 1;
}

.cert-card-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cert-icon-box {
  width: 2rem;
  height: 2rem;
  background: rgba(1, 176, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.cert-icon-box svg {
  width: 1rem;
  height: 1rem;
  color: var(--cyan-500);
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

[data-theme="dark"] .cert-title { color: #fff; }

.cert-issuer {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Trust badge strip */
.trust-strip {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  text-align: center;
}

[data-theme="dark"] .trust-strip { background: #111827; }

/* ═══════════════════════════════════════════════════════
   MODAL / DIALOG
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  max-width: 48rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-structural);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

[data-theme="dark"] .modal-content { background: #111827; }

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  border-radius: 0;
  font-size: 1.25rem;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.8);
}

.modal-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

@media (min-width: 640px) {
  .modal-image { height: 20rem; }
}

.modal-body {
  padding: 1.5rem 2rem;
}

@media (min-width: 640px) {
  .modal-body { padding: 2rem; }
}

/* Image gallery in modal */
.gallery-main {
  position: relative;
  overflow: hidden;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease;
}

.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-nav.prev { left: 0.5rem; }
.gallery-nav.next { right: 0.5rem; }

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.05);
  overflow-x: auto;
}

[data-theme="dark"] .gallery-thumbnails {
  background: rgba(255,255,255,0.05);
}

.gallery-thumb {
  width: 4rem;
  height: 3rem;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumb.active,
.gallery-thumb:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   FLOATING ELEMENTS
   ═══════════════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1030;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
  animation: float-in 0.5s var(--ease-structural) 1.5s both;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* WhatsApp pulse ring */
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsapp-pulse 2s ease-out infinite;
  animation-delay: 1s;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 6.5rem;
  z-index: 1030;
  width: 44px;
  height: 44px;
  background: var(--primary-900);
  border: 1px solid rgba(1, 176, 239, 0.3);
  color: var(--cyan-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .back-to-top { background: #1f2937; }

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--cyan-500);
  color: var(--primary-900);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 1rem;
  height: 1rem;
}

/* ═══════════════════════════════════════════════════════
   BACK LINK
   ═══════════════════════════════════════════════════════ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--red-600);
  transition: color 0.3s ease;
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--red-700); }

.back-link.cyan {
  color: var(--cyan-600);
}

.back-link.cyan:hover { color: var(--cyan-700); }

[data-theme="dark"] .back-link { color: rgba(237, 52, 57, 0.7); }
[data-theme="dark"] .back-link:hover { color: var(--red-500); }
[data-theme="dark"] .back-link.cyan { color: rgba(1, 176, 239, 0.7); }
[data-theme="dark"] .back-link.cyan:hover { color: var(--cyan-500); }

.back-link svg {
  width: 1rem;
  height: 1rem;
}

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.toast {
  background: var(--primary-900);
  color: #fff;
  border: 1px solid var(--cyan-500);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.4s var(--ease-structural);
  position: relative;
}

.toast.error {
  background: #8F1D21;
  border-color: var(--red-500);
}

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--warm-gray);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .footer { background: #0f1729; }

.footer-top-line {
  position: relative;
  height: 2px;
}

.footer-top-line-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(237, 52, 57, 0.4), transparent);
}

.footer-top-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--red-500);
}

.footer-logo img {
  height: 2.75rem;
  width: auto;
}

@media (min-width: 640px) {
  .footer-logo img { height: 3rem; }
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.875rem;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: rgba(237, 52, 57, 0.7);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-link {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  border-color: rgba(237, 52, 57, 0.5);
  color: var(--red-500);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .footer-col-title { color: #fff; }

.footer-col-line {
  width: 2rem;
  height: 2px;
  background: rgba(237, 52, 57, 0.5);
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.375rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--red-500);
}

.footer-newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
}

[data-theme="dark"] .footer-newsletter-input {
  background: #111827;
  border-color: rgba(255,255,255,0.15);
  color: #F5F5F0;
}

.footer-newsletter-input:focus {
  border-color: rgba(237, 52, 57, 0.5);
}

.footer-newsletter-input::placeholder {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

.rounded-none { border-radius: 0; }
.rounded-full { border-radius: 9999px; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.7; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #fff; }
.text-red-500 { color: var(--red-500); }
.text-cyan-500 { color: var(--cyan-500); }
.text-cyan-400 { color: var(--cyan-400); }

.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-structural), transform 0.7s var(--ease-structural);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-structural), transform 0.8s var(--ease-structural);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-structural), transform 0.8s var(--ease-structural);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes foil-shift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes grid-node-pulse {
  0%, 100% { opacity: 0.08; box-shadow: 0 0 1px rgba(1,176,239,0.15); }
  50% { opacity: 0.5; box-shadow: 0 0 5px rgba(1,176,239,0.5); }
}

@keyframes float-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* SVG line drawing animation */
.draw-line {
  animation: draw-svg-line 1.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes draw-svg-line {
  to { stroke-dashoffset: 0; }
}

/* Spinner for form submit */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
  transform-origin: center;
}

@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE GRID HELPERS
   ═══════════════════════════════════════════════════════ */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .lg\:col-span-2 { grid-column: span 2; }
  .lg\:col-span-3 { grid-column: span 3; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
}

/* ═══════════════════════════════════════════════════════
   STICKY FILTER BAR
   ═══════════════════════════════════════════════════════ */
.sticky-filter {
  position: sticky;
  top: var(--nav-height);
  z-index: 30;
  background: rgba(245, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237, 52, 57, 0.1);
  padding: 1rem 0;
}

[data-theme="dark"] .sticky-filter {
  background: rgba(15, 23, 41, 0.9);
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER (sub pages)
   ═══════════════════════════════════════════════════════ */
.page-header {
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(237, 52, 57, 0.1);
}

.page-header.cyan-theme {
  border-bottom-color: rgba(1, 176, 239, 0.1);
}

.page-header-orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.page-header-orb.red { background: rgba(237, 52, 57, 0.03); }
.page-header-orb.cyan { background: rgba(1, 176, 239, 0.03); }

/* ═══════════════════════════════════════════════════════
   DIVIDER WITH ICON
   ═══════════════════════════════════════════════════════ */
.divider-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.divider-with-icon::before,
.divider-with-icon::after {
  content: '';
  height: 1px;
  width: 60px;
}

.divider-with-icon.red::before,
.divider-with-icon.red::after {
  background: linear-gradient(to right, transparent, var(--red-500) 50%, transparent);
}

.divider-with-icon.red::before {
  background: linear-gradient(to left, transparent, var(--red-500) 50%, transparent);
}

.divider-with-icon.cyan::before,
.divider-with-icon.cyan::after {
  background: linear-gradient(to right, transparent, var(--cyan-500) 50%, transparent);
}

.divider-with-icon.cyan::before {
  background: linear-gradient(to left, transparent, var(--cyan-500) 50%, transparent);
}

.divider-diamond {
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider-diamond.red { background: var(--red-500); }
.divider-diamond.cyan { background: var(--cyan-500); }

/* ═══════════════════════════════════════════════════════
   ESTABLISHED BADGE
   ═══════════════════════════════════════════════════════ */
.established-badge {
  position: absolute;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 1.25rem 2rem;
  text-align: center;
}

[data-theme="dark"] .established-badge { background: #111827; }

.established-badge::before {
  content: '';
  position: absolute;
  top: -0.375rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 0.75rem;
  height: 0.75rem;
  background: var(--red-500);
}

/* ═══════════════════════════════════════════════════════
   FOUNDER SECTION
   ═══════════════════════════════════════════════════════ */
.founder-image-wrapper {
  position: relative;
}

.founder-nameplate {
  position: absolute;
  bottom: -1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem;
  text-align: center;
}

[data-theme="dark"] .founder-nameplate { background: #111827; }

.founder-nameplate::before {
  content: '';
  position: absolute;
  top: -0.375rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 0.75rem;
  height: 0.75rem;
  background: var(--red-500);
}

/* ═══════════════════════════════════════════════════════
   COUNTDOWN LINE / CONNECTING LINE
   ═══════════════════════════════════════════════════════ */
.connecting-line {
  position: absolute;
  top: 6rem;
  left: 15%;
  right: 15%;
  height: 1px;
  background: rgba(1, 176, 239, 0.3);
  display: none;
}

@media (min-width: 768px) {
  .connecting-line { display: block; }
}

.connecting-diamond {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cyan-500);
  display: none;
}

@media (min-width: 768px) {
  .connecting-diamond { display: block; }
}

/* ═══════════════════════════════════════════════════════
   IMAGE ASPECT HELPERS
   ═══════════════════════════════════════════════════════ */
.aspect-3-4 { aspect-ratio: 3 / 4; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-1-4-1 { aspect-ratio: 1.4 / 1; }

/* ═══════════════════════════════════════════════════════
   PAGE LOADER (optional)
   ═══════════════════════════════════════════════════════ */
body.is-loading {
  opacity: 0;
}

body.is-loaded {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* ═══════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════ */
@media print {
  .navbar, .footer, .whatsapp-btn, .back-to-top,
  .scroll-progress, .mobile-menu, .mobile-menu-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
