/* --- ROOT VARIABLES --- */
:root {
  --bg-color: #F9F6F1;
  --text-color: #5A5A5A;
  --title-color: #0C2D48;
  --accent-color: #C66C54;
  --accent-color-hover: #A94A2D;
  --secondary-bg: #EAE5DD;
  --card-bg: #FFFFFF;
  --border-color: #E0C097;
  --tooltip-text-color: #FFFFFF;
  --card-back-text: #0C2D48; 
}
/* --- GLOBAL SCALING (ZOOM EFFECT) --- */
html {
  font-size: 16px; /* Standard size for Mobile */
}

@media (min-width: 1280px) {
  html {
      font-size: 20px; /* ~135% Zoom for Laptops/Desktops */
  }
}

@media (min-width: 1920px) {
  html {
      font-size: 24px; /* 150% Zoom for Large Monitors */
  }
}
html.dark {
  --bg-color: #1c1a3c;
  --text-color: #A0AEC0;
  --title-color: #EDF2F7;
  --accent-color: #FBBF24;
  --accent-color-hover: #F59E0B;
  --secondary-bg: #2D3748;
  --card-bg: #2D3748;
  --border-color: #4A5568;
  --tooltip-text-color: #334155;
  --card-back-text: #0C2D48;
}

/* --- GENERAL STYLES --- */
body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Add this specifically to force the authority color on headers */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--title-color);
  font-weight: 700; /* Force bold for authority */
}

/* --- HEADER & NAV --- */
#header {
  background-image: url('../images/hero-marble.png'); 
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

#header.sticky-nav {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

#header .nav-link { color: #EDF2F7; }
#header .nav-link:hover { color: #FBBF24; }

/* Mobile Menu */
#mobile-menu {
  position: absolute;
  width: 100%;
  z-index: 99;
  background-color: var(--card-bg);
}

#mobile-menu .nav-link { color: var(--text-color); }
#mobile-menu .nav-link:hover { color: var(--accent-color); }
html.dark #mobile-menu .nav-link { color: #EDF2F7; }

/* --- HERO SECTION --- */
.hero-bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(12, 45, 72, 0.5);
}

.hero-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* --- COMPONENTS: ICONS & CARDS --- */
.icon-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.card {
  background-color: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

html.dark .card { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
html.dark .card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --- ANIMATIONS --- */
.animate-pulse-slow { animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Form Success Animation */
#contact-form.form-fade-out {
  transition: opacity 0.5s ease-out;
  opacity: 0;
}

/* --- TOOLTIP STYLES --- */
.tooltip-container {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed var(--accent-color);
  display: inline-block;
  width: 100%;
}

.tooltip-text {
  visibility: hidden;
  width: 280px;
  background-color: var(--title-color);
  color: var(--tooltip-text-color);
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 20;
  bottom: 125%;
  left: 50%;
  margin-left: -140px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  font-size: 0.85rem;
  font-weight: normal;
  line-height: 1.4;
  pointer-events: none;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--title-color) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
 .tooltip-text {
     width: 220px; left: 0; margin-left: 0; bottom: auto; top: 100%; margin-top: 5px; z-index: 30;
 }
 .tooltip-text::after {
     top: auto; bottom: 100%; border-color: transparent transparent var(--title-color) transparent;
 }
}

/* --- FLIP CARD STYLES --- */
.perspective-1000 { perspective: 1000px; }

.flip-card {
  position: relative;
  z-index: 1;
}

.flip-card:hover, .flip-card.flipped {
  z-index: 50; 
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.flip-card:hover .flip-card-inner {
   box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

html.dark .flip-card-inner { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
html.dark .flip-card:hover .flip-card-inner {
   box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%; height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.75rem;
  top: 0; left: 0;
}

.flip-card-front {
  background-color: var(--card-bg);
  transform: rotateY(0deg);
  z-index: 2;
}

.flip-card-back {
  background-color: var(--accent-color);
  color: var(--card-back-text);
  transform: rotateY(180deg);
  z-index: 1;
}

/* FIX: Ensure text is readable on the yellow card back regardless of theme */
.flip-card-back, 
.flip-card-back p, 
.flip-card-back li, 
.flip-card-back div {
  color: #0C2D48 !important; /* Dark Blue text */
}

.flip-card.flipped .flip-card-front { z-index: 0; }
.flip-card.flipped .flip-card-back { z-index: 3; }

.flip-card-back::-webkit-scrollbar { width: 4px; }
.flip-card-back::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* Corner Peel Effect */
.corner-peel::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  border-width: 0;
  border-style: solid;
  border-color: transparent transparent transparent transparent;
  border-bottom-color: #cbd5e1; 
  border-right-color: #fff;
  transition: border-width 0.3s ease-out, border-color 0.3s ease;
  pointer-events: none;
  border-radius: 0 0 0.75rem 0;
}

.flip-card:hover .corner-peel::after {
  border-width: 24px;
  border-right-color: var(--card-bg); 
  border-bottom-color: var(--accent-color); 
}

/* --- SCROLL REVEAL ANIMATION --- */
/* 1. Initial State (Hidden) */
.slide-in {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
  
  /* Default (Mobile): Slide Up from Bottom */
  transform: translateY(50px); 
}

/* 2. Desktop Behavior: Slide In from Left */
@media (min-width: 768px) {
  .slide-in {
      /* We use -50px instead of % to ensure it doesn't fly off-screen */
      transform: translateX(-50px); 
  }
}

/* 3. Final State (Visible) - Triggered by Javascript */
.slide-in.visible {
  opacity: 1;
  transform: translate(0, 0); /* Reset to original position */
}
/* --- FAQ ACCORDION --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Large enough to fit content */
  padding-top: 1rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

#image-modal.visible {
  display: flex;
}