/* ==========================================================================
   CK CPA & Associates — Burgundy & Ivory premium theme
   Loaded last in base.html so it overrides existing styles.
   Aesthetic: boutique professional-services firm — restrained, serif
   headlines, ivory background, burgundy accents used sparingly.
   ========================================================================== */

:root {
  --burgundy:        #9b2d3a;   /* primary accent (lighter mid-tone for everyday use) */
  --burgundy-dark:   #7a1f2b;   /* hovers */
  --burgundy-soft:   #b15561;   /* lightest accent */
  --burgundy-deep:   #6e1423;   /* reserved for KEY dark areas (stats, footer, CTA) */
  --burgundy-deepest:#511019;   /* deepest end of dark gradients */
  --ivory:           #f7f3ec;   /* page background */
  --ivory-deep:      #efe8db;   /* alternating sections */
  --cream-card:      #fffdf9;   /* cards on ivory */
  --ink:             #241f1c;   /* body text (soft near-black) */
  --ink-soft:        #5b524c;   /* secondary text */
  --gold:            #b08d57;   /* hairline / secondary accent */
  --line:            #e3dccf;   /* subtle borders */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
body {
  background-color: var(--ivory) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main { padding-top: 0 !important; }

h1, h2, h3, h4, h5, .section-title, .hero-title,
.upload-title, .resources-title, .task-title {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  color: var(--ink) !important;
}

/* Body copy and navigation must always be the sans font (Inter).
   Forced with !important so old stylesheets can't pull them back to serif.
   Note: a few intentional serif accents are re-asserted further below
   (brand name, big step numbers). */
p, li, span, a, .lead, .navbar .nav-link, .nav-link,
.service-list li, .differentiator-text, .detail-meta, .detail-title ~ p,
.location-note, .location-address, .location-contact, .industry-tag,
.feature-card p, .practice-card p, .task-description, .upload-subtitle,
.resources-subtitle, .hero-subtitle, .stat-label, td, th, label, input, button, .btn {
  font-family: var(--sans) !important;
}

/* Intentional serif accents (re-assert after the sans rule above) */
.navbar .company-name,
.stats-band .stat-number,
.process-number,
.location-card h3,
.practice-card h3,
.detail-title,
h1, h2, h3, h4, h5,
.section-title, .hero-title, .upload-title, .resources-title, .task-title {
  font-family: var(--serif) !important;
}

a { color: var(--burgundy); }
a:hover { color: var(--burgundy-dark); }

/* Small uppercase eyebrow label used above headings (law-firm style) */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
  display: block;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: rgba(247, 243, 236, 0.95) !important;
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.navbar .company-name {
  font-family: var(--serif) !important;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--burgundy) !important;
  line-height: 1.1;
}
.navbar .tagline {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--ink-soft) !important;
  text-transform: uppercase;
}
.navbar .nav-link {
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  margin: 0 0.4rem;
}
.navbar .nav-link:hover { color: var(--burgundy) !important; }
.navbar .nav-link.active { color: var(--burgundy) !important; }
/* thin burgundy underline on active/hover */
.navbar .nav-link:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--burgundy);
  transition: width 0.25s ease;
}
.navbar .nav-link:not(.btn):hover::after,
.navbar .nav-link.active:not(.btn)::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn-primary,
.navbar .nav-link.btn-primary,
.submit-button,
.download-button,
.contact-cta-btn,
.task-action {
  background-color: var(--burgundy) !important;
  border-color: var(--burgundy) !important;
  color: #fff !important;
  border-radius: 2px !important;
  letter-spacing: 0.5px;
  font-weight: 500;
  box-shadow: none !important;
  transition: background-color 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover,
.navbar .nav-link.btn-primary:hover,
.submit-button:hover,
.download-button:hover,
.contact-cta-btn:hover,
.task-action:hover {
  background-color: var(--burgundy-dark) !important;
  border-color: var(--burgundy-dark) !important;
  color: #fff !important;
}

/* outlined secondary button option */
.btn-outline-burgundy {
  background: transparent;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  border-radius: 2px;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}
.btn-outline-burgundy:hover {
  background: var(--burgundy);
  color: #fff;
}

/* ---------- Section helpers ---------- */
.section-title {
  position: relative;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.section-title::after {
  content: '';
  display: block;
  width: 56px; height: 2px;
  background: var(--gold);
  margin-top: 0.8rem;
}
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

.bg-ivory-deep { background-color: var(--ivory-deep) !important; }

/* ---------- Cards (feature/task) ---------- */
.feature-card, .task-card, .mission-card, .vision-card,
.fact-item, .upload-card, .service-card {
  background-color: var(--cream-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 2px rgba(36, 31, 28, 0.04) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Dark burgundy gradient for any CTA section (defined here so it applies on
   EVERY page, not just About — about.css is only loaded on the home page). */
.contact-section {
  background: linear-gradient(135deg, var(--ink) 0%, var(--burgundy-deep) 100%) !important;
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* "Let's Talk" card sits on a dark burgundy gradient — keep it translucent
   with white text (do NOT make it a cream card, or text disappears). */
.contact-section .contact-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 3rem 2.5rem 3.2rem !important;
}
.contact-section .contact-card,
.contact-section .contact-card .section-title,
.contact-section .contact-card .lead,
.contact-section .contact-card p,
.contact-section .contact-card small {
  color: #fff !important;
}
.contact-section .contact-card .section-title::after { background: var(--gold) !important; }
/* CTA button: prominent white button on the dark section for contrast */
.contact-cta-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  background-color: #fff !important;
  color: var(--burgundy) !important;
  border: none !important;
  padding: 0.95rem 2.6rem !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 3px !important;
  margin-top: 1.2rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
/* Force burgundy text on the white button, overriding the white-text rule
   that applies to spans inside the contact card. */
.contact-section .contact-card .contact-cta-btn,
.contact-section .contact-card .contact-cta-btn span,
.contact-section .contact-card .contact-cta-btn i {
  color: var(--burgundy) !important;
}
.contact-cta-btn:hover {
  background-color: var(--gold) !important;
}
.contact-section .contact-card .contact-cta-btn:hover,
.contact-section .contact-card .contact-cta-btn:hover span,
.contact-section .contact-card .contact-cta-btn:hover i {
  color: #fff !important;
}
.feature-card:hover, .task-card:hover, .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(110, 20, 35, 0.10) !important;
  border-color: var(--burgundy) !important;
}
.feature-icon, .task-icon i, .fact-icon, .processing-icon,
.download-icon, .upload-icon {
  color: var(--burgundy) !important;
}
.feature-card h3, .task-title { color: var(--ink) !important; }

/* checkmarks etc. */
.fas.fa-check-circle { color: var(--burgundy) !important; }

/* ---------- Hero (overrides about.css) ---------- */
.hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* deep burgundy base so text is readable; image sits in ::before */
  background: linear-gradient(135deg, var(--burgundy-deep) 0%, #1a070b 100%) !important;
}
/* Override about.css's faint overlay: show our hero image clearly */
.hero-section::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(40, 12, 18, 0.38), rgba(20, 8, 12, 0.50)),
    var(--hero-image, none) !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 1 !important;
  z-index: 0 !important;
  animation: none !important;
}
.hero-section .hero-content { position: relative; z-index: 2; }
.hero-title {
  color: #fff !important;
  font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  max-width: 14ch;
  margin: 0 auto 1rem;
}
.hero-subtitle {
  color: rgba(255,255,255,0.92) !important;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.3px;
}
.hero-content .eyebrow { color: var(--gold); }

/* ---------- Contact hero (own class) ---------- */
.contact-hero {
  position: relative;
  background-image:
    linear-gradient(rgba(40, 12, 18, 0.50), rgba(20, 8, 12, 0.58)),
    var(--contact-hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 7rem 0 4.5rem;
  text-align: center;
}
.contact-hero h1 {
  font-family: var(--serif) !important;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.contact-hero p { color: rgba(255,255,255,0.9); max-width: 48ch; margin: 1rem auto 0; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--burgundy-deep);
  color: #fff;
  padding: 3.2rem 0;
}
.stats-band .stat-number {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}
.stats-band .stat-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
}
.stats-band .stat-divider { color: rgba(255,255,255,0.25); }

/* ---------- Full-bleed image band (heritage / global) ---------- */
.image-band {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Taller variant (Korea & the Americas band) */
.image-band-tall { min-height: 560px; padding: 4rem 0; }
.image-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,12,18,0.62) 0%, rgba(40,12,18,0.15) 100%);
}
.image-band .container { position: relative; z-index: 1; }
.image-band h2 { color: #fff !important; }
.image-band p { color: rgba(255,255,255,0.9); max-width: 52ch; }

/* ---------- Footer ---------- */
.footer, footer.footer {
  background-color: var(--ink) !important;
  color: #e9e2d8 !important;
  border-top: 3px solid var(--burgundy-deep);
}
.footer h5 { font-family: var(--serif) !important; color: #fff !important; }
.footer a { color: #cfc6ba !important; }
.footer a:hover { color: var(--gold) !important; }

/* ---------- Forms ---------- */
.form-control {
  border-radius: 2px;
  border: 1px solid var(--line);
}
.form-control:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 0.15rem rgba(110, 20, 35, 0.12);
}

/* ---------- Breadcrumb / steps accents ---------- */
.breadcrumb-link, .breadcrumb-current { color: var(--burgundy) !important; }
.step.active .step-number, .step.completed .step-number {
  background: var(--burgundy) !important;
  border-color: var(--burgundy) !important;
  color: #fff !important;
}

/* ---------- Login page ---------- */
.login-wrapper { background-color: var(--ivory) !important; }
.login-background {
  background:
    linear-gradient(rgba(40,12,18,0.42), rgba(20,8,12,0.55)),
    var(--login-bg-image, none) !important;
  background-size: cover !important;
  background-position: center !important;
}
.login-box {
  background-color: var(--cream-card) !important;
  border: 1px solid var(--line) !important;
  border-top: 3px solid var(--burgundy) !important;
  border-radius: 4px !important;
  box-shadow: 0 20px 50px rgba(36,31,28,0.18) !important;
}
.login-title { font-family: var(--serif) !important; color: var(--burgundy) !important; }
.login-subtitle { color: var(--ink-soft) !important; }
.divider-text { color: var(--ink-soft) !important; background: var(--cream-card) !important; }
.security-note { color: var(--ink-soft) !important; }

/* ---------- Upload / tool pages ---------- */
.upload-wrapper, .resources-wrapper { background-color: var(--ivory) !important; }
.upload-title, .resources-title { color: var(--ink) !important; }
.file-input-label { border-color: var(--line) !important; }
.upload-form.drag-over, #dropZone.drag-over {
  border-color: var(--burgundy) !important;
  background: rgba(110,20,35,0.04) !important;
}

/* ---------- Practice areas ---------- */
.practice-section .lead { color: var(--ink-soft); }
.practice-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(110, 20, 35, 0.10);
  border-color: var(--burgundy);
}
.practice-icon {
  font-size: 2rem;
  color: var(--burgundy);
  margin-bottom: 1.1rem;
  display: block;
}
.practice-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.practice-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Industry tags ---------- */
.industry-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.industry-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
}

/* ---------- Locations ---------- */
.locations-section { background: var(--ivory); }
.location-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--burgundy);
  border-radius: 3px;
  padding: 2rem 2rem 1.6rem;
  height: 100%;
}
.location-flag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.location-card h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.location-address, .location-contact { color: var(--ink-soft); margin-bottom: 0.6rem; }
.location-address i, .location-contact i { color: var(--burgundy); margin-right: 0.5rem; }
.location-contact a { color: var(--burgundy); text-decoration: none; }
.location-contact a:hover { color: var(--burgundy-dark); text-decoration: underline; }
.location-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.8rem; font-style: italic; }

/* ---------- What We Do: detail spotlights ---------- */
.approach-intro { background: var(--ivory); }
.detail-image {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(36,31,28,0.16);
  object-fit: cover;
  max-height: 420px;
}
.detail-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 1rem;
}
.service-detail p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.85;
}
.detail-meta {
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.detail-meta strong { color: var(--burgundy); font-weight: 600; }

/* ---------- How We Work: process steps ---------- */
.process-step {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--burgundy);
  border-radius: 3px;
  padding: 1.8rem 1.5rem;
  height: 100%;
}
.process-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.process-step h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.process-step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Misc ---------- */
::selection { background: var(--burgundy); color: #fff; }
hr { border-color: var(--line); }
