/* ==========================================================================
   TWAMEVA-INSPIRED EXECUTIVE THEME & MICRO-DESIGN SYSTEM
   Palette: Deep Forest (#0C1E1B) + Champagne Gold (#C9A96E) + Alabaster (#F8F7F3)
   ========================================================================== */

:root,
[data-brand="tme"] {
  --tw-forest: #0C1E1B;
  --tw-forest-mid: #132B27;
  --tw-forest-light: #1A3833;
  --tw-gold: #C9A96E;
  --tw-gold-bright: #D4B475;
  --tw-gold-hover: #B8965A;
  --tw-gold-soft: rgba(201, 169, 110, 0.15);
  --tw-gold-tile: #F5EFE2;
  --tw-alabaster: #F8F7F3;
  --tw-border: #E7E3D8;
  --tw-text-dark: #111C1A;
  --tw-text-muted: #52605D;

  /* Override Next.js Design System Tokens */
  --color-brand-primary: #C9A96E !important;
  --color-brand-primary-dark: #0C1E1B !important;
  --color-brand-secondary: #132B27 !important;
  --color-brand-accent: #9A7B3E !important;
  --color-surface-page: #FFFFFF !important;
  --color-surface-subtle: #F8F7F3 !important;
  --color-surface-subtle-alt: #F8F7F3 !important;
  --color-surface-brand: #132B27 !important;
  --color-surface-brand-dark: #0C1E1B !important;
  --color-surface-inverted: #0C1E1B !important;
  --color-text-primary: #111C1A !important;
  --color-text-secondary: #52605D !important;
  --color-text-tertiary: #6C7975 !important;
  --color-text-accent: #9A7B3E !important;

  /* Primary Action Buttons (Champagne Gold with Deep Forest text) */
  --color-action-primary-bg: #C9A96E !important;
  --color-action-primary-fg: #0C1E1B !important;
  --color-action-primary-bg-hover: #D4B475 !important;
  --color-action-primary-fg-hover: #0C1E1B !important;
  --color-action-primary-bg-active: #B8965A !important;
  --color-action-primary-fg-active: #0C1E1B !important;

  --color-action-secondary-border: #C9A96E !important;
  --color-action-secondary-fg: #0C1E1B !important;
  --color-action-secondary-bg-hover: #F8F7F3 !important;
  --color-action-secondary-fg-hover: #0C1E1B !important;

  --color-ui-recommended-bg: #0C1E1B !important;
  --color-ui-recommended-text: #D4B475 !important;
  --color-ui-icon-frame-border: #C9A96E !important;
  --color-ui-icon-tile-bg: #F5EFE2 !important;
  --color-ui-highlight-bg: #0C1E1B !important;
  --color-ui-highlight-alt-bg: #132B27 !important;
  --color-ui-tonal-pill-bg: #F5EFE2 !important;
  --color-ui-tonal-pill-text: #111C1A !important;
  --color-ui-check-glyph: #9A7B3E !important;
  --color-ui-divider: #E7E3D8 !important;
  --color-ui-border: #E7E3D8 !important;
  --color-ui-border-focus: #C9A96E !important;
  --color-text-on-callout: #111C1A !important;
  --color-text-footer-muted: #A4B0AD !important;

  --color-surface-hero-gradient-start: #0C1E1B !important;
  --color-surface-hero-gradient-end: #132B27 !important;
  --color-surface-hero-scrim: #0C1E1B !important;
  --color-surface-banner-gradient-start: #F8F7F3 !important;
  --color-surface-banner-gradient-end: #0C1E1B !important;
  --color-surface-callout: #F8F7F3 !important;
  --color-ui-badge-bg: #F5EFE2 !important;
  --color-ui-badge-text: #0C1E1B !important;
  --color-ui-rail-node: #0C1E1B !important;
  --color-ui-tab-active-accent: #0C1E1B !important;
  --color-ui-tab-inactive-fg: #132B27 !important;
  --color-ui-toc-link: #0C1E1B !important;
  --color-ui-toc-link-current: #9A7B3E !important;
  --color-text-author-name: #0C1E1B !important;
}

/* --------------------------------------------------------------------------
   1. GLOBAL HEADER, STICKY/FIXED FIX & NAVIGATION
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: clip !important;
}

html body {
  padding-top: 66px !important;
}
@media (min-width: 1024px) {
  html body {
    padding-top: 76px !important;
  }
}

header,
header[class*="bg-[#04183E]"],
header[class*="bg-surface-brand-dark"],
.bg-surface-brand-dark,
.bg-surface-inverted {
  background-color: #0C1E1B !important;
}

header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
}

header nav {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Header CTA Button ("Get Started") */
header a[href*="/contact"],
header a[class*="bg-[#F04E23]"],
header a[class*="bg-action-primary"],
.tw-btn-gold {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header a[class*="bg-[#F04E23]"],
header a[class*="bg-action-primary"],
header a[class*="bg-[#C9A96E]"],
header a.text-white[href*="/contact"],
header a.text-white[style*="#C9A96E"],
header a[class*="bg-"] span,
a[class*="bg-[#F04E23]"],
button[class*="bg-[#F04E23]"],
.bg-action-primary-bg,
.form-submit-btn {
  background-color: #C9A96E !important;
  color: #0C1E1B !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.22) !important;
  border: 1px solid rgba(201, 169, 110, 0.5) !important;
}
header a[class*="bg-"] span {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

header a[class*="bg-[#F04E23]"]:hover,
header a[class*="bg-action-primary"]:hover,
a[class*="bg-[#F04E23]"]:hover,
button[class*="bg-[#F04E23]"]:hover,
.bg-action-primary-bg:hover,
.form-submit-btn:hover {
  background-color: #D4B475 !important;
  color: #0C1E1B !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 22px rgba(201, 169, 110, 0.32) !important;
}

/* Keep Header Nav Links White (except CTA button) */
header nav a:not([class*="bg-"]),
header nav button span {
  color: rgba(255, 255, 255, 0.88) !important;
}
header nav a:not([class*="bg-"]):hover,
header nav button:hover span {
  color: #D4B475 !important;
}

/* Mega Dropdown Styling */
.nav-mega-dropdown {
  background-color: #FFFFFF !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
  box-shadow: 0 24px 48px -12px rgba(12, 30, 27, 0.18) !important;
  border-bottom: 1px solid #E7E3D8 !important;
  border-left: 1px solid #E7E3D8 !important;
  border-right: 1px solid #E7E3D8 !important;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION, EXPLICIT GRIDS & DARK EDITORIAL BANNERS
   -------------------------------------------------------------------------- */
.tw-hero-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 36px !important;
  align-items: center !important;
}
@media (min-width: 992px) {
  .tw-hero-grid {
    grid-template-columns: 1.2fr 0.95fr !important;
    gap: 52px !important;
  }
}
.tw-hero-grid > * {
  min-width: 0;
}

.tw-editorial-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  align-items: center !important;
}
@media (min-width: 992px) {
  .tw-editorial-grid {
    grid-template-columns: 0.9fr 1.1fr !important;
    gap: 48px !important;
  }
}
.tw-editorial-grid > * {
  min-width: 0;
}

.tw-services-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}
@media (min-width: 640px) {
  .tw-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  .tw-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.contact-main-grid > div {
  min-width: 0 !important;
  max-width: 100% !important;
}
.contact-main-grid iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
}

.hero-home-bg,
section.hero-home-bg {
  background: radial-gradient(circle at 80% 35%, rgba(26, 66, 58, 0.6) 0%, rgba(12, 30, 27, 0.96) 58%, #0C1E1B 100%) !important;
  background-color: #0C1E1B !important;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-home-bg,
  section.hero-home-bg {
    background: linear-gradient(180deg, #0C1E1B 0%, #132B27 100%) !important;
  }
}

.tw-gold-text {
  color: #D4B475 !important;
}

/* Hero Right Glassmorphic Card */
.tw-hero-glass-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.tw-hero-stat-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) {
  .tw-hero-stat-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   3. SERVICE & VALUE PROPOSITION CARDS (TWAMEVA MICRO-DESIGN)
   -------------------------------------------------------------------------- */
.tw-service-card,
.contact-info-card,
article.rounded-2xl,
div[class*="rounded-component-lg"][class*="bg-white"],
div[class*="rounded-2xl"][class*="border"][class*="bg-white"] {
  background-color: #FFFFFF !important;
  border: 1px solid #E7E3D8 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(12, 30, 27, 0.03) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease !important;
}

.tw-service-card:hover,
.contact-info-card:hover,
article.rounded-2xl:hover {
  transform: translateY(-3px) !important;
  border-color: #C9A96E !important;
  box-shadow: 0 12px 28px rgba(12, 30, 27, 0.08) !important;
}

/* Soft Gold Icon Tile */
.tw-icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #F5EFE2;
  color: #9A7B3E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(201, 169, 110, 0.28);
}

.tw-service-card .tw-card-arrow {
  color: #8A9693;
  transition: transform 0.2s ease, color 0.2s ease;
}
.tw-service-card:hover .tw-card-arrow {
  transform: translateX(4px);
  color: #0C1E1B;
}

/* --------------------------------------------------------------------------
   4. SURFACES, PILLS, PRICING & TYPOGRAPHY OVERRIDES
   -------------------------------------------------------------------------- */
.bg-surface-subtle,
.bg-\[\#FAF5EC\],
.bg-\[\#fcfaf6\] {
  background-color: #F8F7F3 !important;
}

.text-\[\#04183E\],
.text-text-primary,
h1:not(.hero-home-bg h1):not(.contact-hero-section h1):not([style*="color: #FFFFFF"]):not([style*="color:#FFFFFF"]),
h2:not([style*="color: #FFFFFF"]):not([style*="color:#FFFFFF"]):not(.text-white),
h3:not([style*="color: #FFFFFF"]):not([style*="color:#FFFFFF"]):not(.text-white) {
  color: #111C1A;
}

/* Accent text overrides (replace old orange #F04E23 / #873100 with warm gold-bronze) */
.text-\[\#F04E23\],
.text-brand-primary {
  color: #9A7B3E !important;
}

/* Pricing Section Split Background, Badges & Recommended Header */
@media (min-width: 769px) {
  #pricing {
    background: linear-gradient(to bottom, #F8F7F3 45%, #0C1E1B 45%) !important;
  }
}

.bg-\[\#024896\] {
  background-color: #132B27 !important;
  color: #D4B475 !important;
}

.bg-ui-recommended-bg,
div[class*="bg-[#04183E]"] {
  background-color: #0C1E1B !important;
  color: #D4B475 !important;
}

/* Alternating Light / Dark Theme Bands */
.tw-band-light {
  background-color: #F8F7F3 !important;
  background-image: none !important;
  border-top: 1px solid #E7E3D8 !important;
  border-bottom: 1px solid #E7E3D8 !important;
}
.tw-band-light .text-center.mx-auto h2,
.tw-band-light .text-center.mx-auto h3 {
  color: #111C1A !important;
}
.tw-band-light .text-center.mx-auto > p {
  color: #52605D !important;
}
.tw-band-light .text-center.mx-auto > span {
  color: #9A7B3E !important;
}

.tw-band-dark {
  background-color: #182220 !important;
  background-image: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.tw-band-dark .text-center.mx-auto h2,
.tw-band-dark .text-center.mx-auto h3,
.tw-band-dark .tw-dark-heading {
  color: #FFFFFF !important;
}
.tw-band-dark .text-center.mx-auto > p,
.tw-band-dark .tw-dark-subtext {
  color: #C5CEC9 !important;
}
.tw-band-dark .text-center.mx-auto > span,
.tw-band-dark .tw-dark-eyebrow {
  color: #D4B475 !important;
}
.tw-band-dark .text-center.mx-auto strong {
  color: #D4B475 !important;
}
.tw-band-dark .bg-\[\#F8F7F3\] .text-center.mx-auto h3,
.tw-band-dark .bg-white .text-center.mx-auto h3 {
  color: #111C1A !important;
}
.tw-band-dark .bg-\[\#F8F7F3\] .text-center.mx-auto > p,
.tw-band-dark .bg-white .text-center.mx-auto > p {
  color: #52605D !important;
}
.tw-band-dark .bg-\[\#F8F7F3\] .text-center.mx-auto > span,
.tw-band-dark .bg-white .text-center.mx-auto > span {
  color: #9A7B3E !important;
}
.tw-band-dark .bg-\[\#F8F7F3\] .text-center.mx-auto strong {
  color: #111C1A !important;
}

/* Contact Page Hero & Dark Sections */
.contact-hero-section,
section[style*="#04183E"],
section[style*="#192E5A"] {
  background: linear-gradient(135deg, #0C1E1B 0%, #132B27 60%, #1A3833 100%) !important;
  background-color: #0C1E1B !important;
}

/* Form Fields */
.form-input-field,
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border-color: #DCD7C9 !important;
  background-color: #FAF9F5 !important;
  color: #111C1A !important;
  border-radius: 10px !important;
}

.form-input-field:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #C9A96E !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2) !important;
}

/* Footer */
footer,
footer.bg-surface-inverted {
  background-color: #0C1E1B !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* WhatsApp Floating Pill - Clean Minimalist */
#whatsapp-need-help-pill {
  background-color: #FFFFFF !important;
  color: #111C1A !important;
  border: 1px solid #E7E3D8 !important;
}
