/* ============================================
   VARC CO — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --burgundy: #7A1B2E;
  --burgundy-dark: #5C1422;
  --burgundy-rgb: 122, 27, 46;
  --gold: #C9A84C;
  --gold-light: #D4BC72;
  --gold-rgb: 201, 168, 76;
  --navy: #2C3345;
  --navy-light: #3D4559;
  --navy-rgb: 44, 51, 69;
  --white: #FFFFFF;
  --cream: #F5F3F0;
  --gray-100: #E8E6E3;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* --- Navbar --- */
.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--burgundy) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Buttons --- */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.025em;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.3);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  letter-spacing: 0.025em;
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.3);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* --- Service Cards --- */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(var(--navy-rgb), 0.1);
  border-color: var(--gold);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.1), rgba(var(--gold-rgb), 0.05));
  color: var(--gold);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--navy);
}

/* --- Stats Counter --- */
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* --- Service Detail Block (services page) --- */
.service-block {
  padding: 4rem 0;
}

.service-block:nth-child(even) {
  background-color: var(--cream);
}

.service-block:nth-child(even) .service-block-inner {
  flex-direction: row-reverse;
}

/* --- Form --- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  color: var(--navy);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15);
}

.form-input::placeholder {
  color: var(--navy-light);
  opacity: 0.5;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 0.9rem;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

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

/* Stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-group.visible > *:nth-child(7) { transition-delay: 0.7s; }

.reveal-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 4px;
  overflow: hidden;
}

.lang-toggle a {
  padding: 0.25rem 0.625rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.7);
}

.lang-toggle a.active {
  background-color: var(--gold);
  color: var(--navy);
}

.lang-toggle a:hover:not(.active) {
  color: var(--gold);
}

/* --- Divider --- */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto;
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* --- Misc --- */
.bg-burgundy { background-color: var(--burgundy); }
.bg-burgundy-dark { background-color: var(--burgundy-dark); }
.bg-navy { background-color: var(--navy); }
.bg-cream { background-color: var(--cream); }
.text-gold { color: var(--gold); }
.text-burgundy { color: var(--burgundy); }
.text-navy { color: var(--navy); }
.border-gold { border-color: var(--gold); }

/* --- Section Spacing --- */
section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  .stat-number {
    font-size: 2.25rem;
  }
  .service-block:nth-child(even) .service-block-inner {
    flex-direction: column;
  }
}
