/* ============================================================
   Czerwonka Educational Consulting — Global Styles
   barexamprep.czerwonkalegal.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Josefin+Sans:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Crimson+Pro:wght@300;400;500;600&display=swap');

/* ---- Tokens ---- */
:root {
  --navy: #1a2744;
  --deep-navy: #0f1a2e;
  --navy-mid: #162040;
  --gold: #c9a84c;
  --gold-light: #dfc06e;
  --gold-dark: #a88a30;
  --cream: #f5f0e6;
  --warm-white: #faf8f3;
  --slate: #4a5568;
  --charcoal: #2d3748;
  --text-light: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.5);
  --text-dark: #2d3748;
  --text-body: #4a5568;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Josefin Sans', 'Segoe UI', sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;

  --max-width: 1200px;
  --nav-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

/* ---- Utilities ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 100px 0; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(15, 26, 46, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo img {
  height: 46px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  line-height: 1.2;
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: white;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 10px 24px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--deep-navy) !important;
}
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--deep-navy) 0%, var(--navy-mid) 45%, var(--navy) 100%);
}
.hero-short {
  min-height: 50vh;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(201,168,76,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.04) 0%, transparent 45%);
  animation: heroShift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23ffffff' fill-opacity='0.006'/%3E%3C/svg%3E") repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 40px;
  max-width: 800px;
}
.hero-scales {
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 20px rgba(201,168,76,0.2));
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: white;
  letter-spacing: 4px;
  line-height: 1.1;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  font-weight: 300;
  margin-top: 8px;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
}
.hero-divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.hero-divider-line:last-child {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}
.hero-divider-diamond {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}
.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--deep-navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover {
  background: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,39,68,0.3);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-header .label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  display: block;
  margin-bottom: 12px;
}
.section-header p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-body);
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.7;
}

/* Dark section variant */
.section-dark {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.03) 0%, transparent 40%);
}
.section-dark .section-header h2 { color: white; }
.section-dark .section-header p { color: var(--text-light); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.service-card {
  background: white;
  border-radius: 4px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  transition: height 0.5s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.service-card:hover::before {
  height: 100%;
}
.service-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.service-card p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px;
  padding: 40px 32px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,168,76,0.25);
}
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}
.testimonial-author {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.testimonial-detail {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   ABOUT / CONTENT BLOCKS
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.about-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 17px;
}
.about-text .highlight {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  color: var(--gold-dark);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 28px 0;
}
.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.stat {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-body);
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal);
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-form {
  background: white;
  padding: 44px;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: var(--warm-white);
  color: var(--charcoal);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep-navy);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 300px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}
.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-links a {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section-pad { padding: 70px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(15,26,46,0.98);
    padding: 30px 40px;
    gap: 24px;
    backdrop-filter: blur(16px);
  }
  .hero-content { padding: 0 24px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 24px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes heroShift {
  from { transform: translate(0, 0); }
  to { transform: translate(2%, 1%); }
}
