/* =============================================================
   Van Wyk & Preller Inc. Attorneys — Main Stylesheet
   ============================================================= */

:root {
  --navy:     #1A2B4A;
  --gold:     #C9A84C;
  --offwhite: #F8F7F4;
  --charcoal: #2C2C2C;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--charcoal);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================================
   EXPLICIT TAILWIND CUSTOM COLOR OVERRIDES
   These mirror what Tailwind generates for custom colors so
   the page looks correct even if config timing varies.
   ============================================================= */

.bg-navy     { background-color: #1A2B4A !important; }
.bg-gold     { background-color: #C9A84C !important; }
.bg-offwhite { background-color: #F8F7F4 !important; }
.bg-charcoal { background-color: #2C2C2C !important; }

.text-navy     { color: #1A2B4A !important; }
.text-gold     { color: #C9A84C !important; }
.text-offwhite { color: #F8F7F4 !important; }
.text-charcoal { color: #2C2C2C !important; }

.border-navy { border-color: #1A2B4A !important; }
.border-gold { border-color: #C9A84C !important; }

/* Gradient from/via/to navy */
.from-navy  { --tw-gradient-from: #1A2B4A; }
.to-navy    { --tw-gradient-to:   #1A2B4A; }

/* Opacity variants used in the design */
.bg-navy\/10 { background-color: rgba(26,43,74,0.10) !important; }
.bg-gold\/10 { background-color: rgba(201,168,76,0.10) !important; }
.bg-gold\/20 { background-color: rgba(201,168,76,0.20) !important; }
.text-navy\/20 { color: rgba(26,43,74,0.20) !important; }
.border-gold\/20 { border-color: rgba(201,168,76,0.20) !important; }

/* Hover variants */
.hover\:text-gold:hover { color: #C9A84C !important; }
.hover\:bg-gold\/10:hover { background-color: rgba(201,168,76,0.10) !important; }

/* =============================================================
   HEADER / NAVIGATION
   ============================================================= */

#site-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3f4f6;
  transition: box-shadow 0.3s ease;
}
.header-scrolled { box-shadow: 0 2px 16px rgba(26,43,74,0.10); }

/* Nav links */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-active { color: var(--gold) !important; }
.nav-active::after { width: 100% !important; }

/* =============================================================
   HERO SECTION
   ============================================================= */

.hero-section {
  background: linear-gradient(135deg, #1A2B4A 0%, #0f1d35 100%) !important;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.20);
  pointer-events: none;
}

/* =============================================================
   PAGE HERO BANNER (inner pages)
   ============================================================= */

.page-hero {
  background: linear-gradient(135deg, #1A2B4A 0%, #0f1d35 100%) !important;
  padding: 5rem 0 3rem;
  text-align: center;
  color: #fff;
}
.page-hero h2, .page-hero h1 { color: #fff; }
.page-hero p { color: #d1d5db; }

/* =============================================================
   GOLD ACCENT LINE
   ============================================================= */

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  display: block;
}

/* =============================================================
   SECTION HEADINGS
   ============================================================= */

.section-heading {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 700;
}

/* =============================================================
   SERVICE CARDS
   ============================================================= */

.service-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-top: 3px solid var(--gold);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(26,43,74,0.12);
  transform: translateY(-4px);
}
.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.10);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  font-size: 1.375rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.service-card:hover .icon-wrap {
  background: rgba(201,168,76,0.20);
}
.service-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.service-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   TEAM CARDS
   ============================================================= */

.team-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(26,43,74,0.12);
  transform: translateY(-3px);
}
.team-photo-placeholder {
  height: 224px;
  background: linear-gradient(135deg, rgba(26,43,74,0.08), rgba(26,43,74,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   TESTIMONIAL CARDS
   ============================================================= */

.testimonial-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(26,43,74,0.08);
  border: 1px solid #f0f0f0;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}
.star-row {
  display: flex;
  gap: 0.25rem;
  color: var(--gold);
  font-size: 0.875rem;
}

/* =============================================================
   WHY CHOOSE US ICONS
   ============================================================= */

.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.375rem;
  color: var(--gold);
}

/* =============================================================
   STATS BAR
   ============================================================= */

.stats-bar {
  background: var(--navy) !important;
  border-radius: 0.75rem;
  padding: 2.5rem;
}
.stats-bar p { color: #d1d5db; }

/* =============================================================
   ABOUT SECTION CARDS (Mission/Vision/Values)
   ============================================================= */

/* These use bg-offwhite which is now covered by the utility override above */

/* =============================================================
   CONTACT SECTION
   ============================================================= */

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.12);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--charcoal);
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.3rem;
}

/* =============================================================
   FLASH / ALERT
   ============================================================= */

.alert {
  padding: 0.875rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* =============================================================
   BUTTONS
   ============================================================= */

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-gold:hover {
  background: #b8902e;
  box-shadow: 0 4px 18px rgba(201,168,76,0.35);
  transform: translateY(-1px);
}

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn-navy:hover { background: #0f1d35; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold) !important; }

/* =============================================================
   FOOTER
   ============================================================= */

footer,
.site-footer { background: var(--navy) !important; }

/* =============================================================
   MAPS EMBED
   ============================================================= */

.maps-container iframe {
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  height: 220px;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */

@keyframes fadeIn  { from { opacity: 0; }                             to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.fade-in  { animation: fadeIn  0.7s ease forwards; }
.slide-up { animation: slideUp 0.7s ease forwards; }
.delay-1  { animation-delay: 0.15s; }
.delay-2  { animation-delay: 0.30s; }
.delay-3  { animation-delay: 0.45s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 767px) {
  .page-hero { padding: 4rem 0 2.5rem; }
  .hero-section { min-height: 70vh; }
}
