@import url(https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap);

:root {
  /* THE INSTITUTIONAL PALETTE: Zero Blue, Premium High-Contrast White and Burgundy */
  --burgundy: #8B1538;
  --burgundy-dark: #6B0F2A;
  --charcoal-dark: #12151A;
  --charcoal-mid: #2C323D;
  --gold-accent: #D4AF37;
  --canvas-pure: #FFFFFF;
  --canvas-slate: #F9FAFB;
  --border-light: rgba(139, 21, 56, 0.08);
  --border-solid: #E5E7EB;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Foundations with Open Space Rules */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  background: var(--canvas-pure);
  color: var(--charcoal-mid);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* Institutional Navigation Layer */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 42px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--charcoal-mid);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--burgundy);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 0.75rem 1.25rem !important;
  font-size: 0.82rem !important;
  background: var(--burgundy);
  color: var(--canvas-pure) !important;
  border-radius: 0px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
}

.btn-nav::after {
  display: none !important;
}

/* Hero Section Refinements */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--canvas-pure);
  padding-top: 130px;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 21, 56, 0.015) 100%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  z-index: 1;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  color: var(--charcoal-dark);
  line-height: 1.18;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-solid);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.meta-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-accent);
  border-radius: 50%;
}

.hero-description {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--charcoal-mid);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--canvas-pure);
  border: 1px solid var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 21, 56, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal-dark);
  border: 1px solid var(--charcoal-dark);
}

.btn-secondary:hover {
  background: var(--charcoal-dark);
  color: var(--canvas-pure);
  transform: translateY(-2px);
}

.hero-image img {
  width: 100%;
  border-radius: 0px;
  box-shadow: 0 30px 70px rgba(18, 21, 26, 0.06);
  border: 1px solid var(--border-light);
}

/* Trust Bar */
.trust-bar {
  background: var(--canvas-slate);
  border-top: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
  padding: 3.5rem 0;
}

.trust-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.trust-item {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--border-solid);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 0.4rem;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--charcoal-mid);
  opacity: 0.8;
}

/* Global Section Spacing — section-level padding is intentionally the baseline;
   more specific sections below (.stats, .cta, .footer) override it purely
   through selector specificity, so they don't need !important to win. */
section {
  padding: 5rem 0;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.85rem;
  color: var(--charcoal-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.1rem;
  color: var(--charcoal-mid);
  opacity: 0.85;
}

/* Certification Section */
.certification {
  background: var(--canvas-slate);
  border-top: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
}

.cert-card {
  background: var(--canvas-pure);
  border: 1px solid var(--border-solid);
  border-top: 4px solid var(--burgundy);
  padding: 3.5rem 3rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.cert-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-solid);
  margin-bottom: 2rem;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.cert-subtitle {
  font-size: 0.95rem;
  color: var(--charcoal-mid);
  opacity: 0.7;
}

.cert-details {
  display: grid;
  gap: 1.25rem;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cert-row:last-child {
  border-bottom: none;
}

.cert-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal-dark);
}

.cert-value {
  font-size: 0.95rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--burgundy);
}

/* Services Cards */
.services {
  background: var(--canvas-pure);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--canvas-pure);
  border: 1px solid var(--border-solid);
  padding: 3rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(139, 21, 56, 0.04);
  border-color: var(--burgundy);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(139, 21, 56, 0.12);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--charcoal-mid);
  opacity: 0.8;
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.service-link {
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
}

/* Stats Section */
.stats {
  background: var(--charcoal-dark);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--canvas-pure);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--canvas-pure);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Testimonials */
.testimonials {
  background: var(--canvas-slate);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  background: var(--canvas-pure);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-solid);
  position: relative;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--charcoal-mid);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-solid);
}

.author-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--canvas-pure);
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--charcoal-dark);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--charcoal-mid);
  opacity: 0.65;
}

/* Call To Action Panel */
.cta {
  background: var(--burgundy);
  padding: 5.5rem 0;
  text-align: center;
}

.cta-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--canvas-pure);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.15rem;
  color: var(--canvas-pure);
  opacity: 0.92;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Safety net: if the CTA's two buttons aren't already wrapped in .hero-actions
   in the HTML, this ensures they still lay out in a row with proper spacing
   instead of stacking flush against each other. */
.cta-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: var(--canvas-pure);
  color: var(--burgundy);
  border-color: var(--canvas-pure);
}

.cta .btn-primary:hover {
  background: var(--canvas-slate);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--canvas-pure);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--canvas-pure);
}

/* Footer Section */
.footer {
  background: var(--canvas-pure);
  color: var(--charcoal-mid);
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--border-solid);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-section h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--charcoal-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.footer-section p,
.footer-section p strong,
.footer-section strong {
  color: var(--charcoal-dark);
  opacity: 1;
}

.footer-section strong {
  font-weight: 700;
  display: inline-block;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.85rem;
}

.footer-section a {
  color: var(--charcoal-mid);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--burgundy);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border-solid);
  padding-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--charcoal-mid);
}

.footer-bottom a {
  color: var(--charcoal-mid);
  opacity: 0.75;
}

.footer-bottom a:hover {
  color: var(--burgundy);
  opacity: 1;
}

/* Founder Section Layout */
.founder-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.founder-image img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  display: block;
}

/* Floating WhatsApp FAB */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.06) translateY(-2px);
}

.whatsapp-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--canvas-pure);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal-dark);
  transition: var(--transition);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 3.2rem; }
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 1024px) {
  .founder-section { grid-template-columns: 300px 1fr; gap: 2.5rem; }
}

@media (min-width: 1025px) {
  .service-detail-section {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3.5rem;
    align-items: start;
  }
  .service-detail-section img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-content h1 { font-size: 2.8rem !important; }
  .section-title { font-size: 2.5rem !important; }
  .service-detail-section { display: flex; flex-direction: column; }
  .service-detail-section img { width: 100% !important; max-width: 100% !important; height: 350px !important; margin: 2.5rem 0 !important; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 1.25rem; }
  .mobile-menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 75px);
    background: var(--canvas-pure);
    flex-direction: column;
    padding: 2.5rem 1.75rem;
    gap: 1.75rem;
    align-items: flex-start;
    box-shadow: -10px 0 40px rgba(0,0,0,0.05);
    transition: right 0.4s;
  }

  .nav-links.active { right: 0; }
  .nav-links li, .btn-nav { width: 100%; }
  .btn-nav { text-align: center; }

  .footer-grid, .hero-container, .services-grid, .stats-grid, .testimonials-grid, .trust-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero { padding-top: 100px; padding-bottom: 3.5rem !important; }
  .hero-container { gap: 3rem; }
  .hero-content h1 { font-size: 2.4rem !important; }
  .section-title { font-size: 2.1rem !important; }

  .founder-section { display: flex; flex-direction: column-reverse; gap: 2rem; }
  .founder-image img {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
    border: 3px solid var(--burgundy) !important;
    box-shadow: 0 12px 35px rgba(139, 21, 56, 0.18) !important;
    margin: 0 auto !important;
  }

  .trust-item { border-right: none !important; border-bottom: 1px solid var(--border-solid); padding: 1.5rem 0 !important; }
  .trust-item:last-child { border-bottom: none; }

  .btn, .hero-actions .btn, .cta-actions .btn { width: 100% !important; display: block !important; }
  .hero-actions, .cta-actions { flex-direction: column !important; gap: 0.85rem !important; }

  .cert-row { display: grid !important; grid-template-columns: 120px 1fr !important; gap: 0.5rem !important; align-items: start !important; }
  .cert-value { text-align: right; word-break: break-all; }
}
