:root {
  --primary: #0c6e6d; /* reference teal */
  --primary-dark: #063232; /* deeper teal used for headings */
  --accent: #ff9307; /* reference orange accent */
  --muted: #6b7a7a; /* neutral/gray from template */
  --bg-soft: #F4F8F9; /* light background used in sections */
  --card-bg: #ffffff;
  --dark: #063232;
  --primary-r: 12; /* RGB breakdown for rgba conversions */
  --primary-g: 110;
  --primary-b: 109;
}

html { font-size: 16px; }
@media (max-width: 767px) { html { font-size: 15px; } }

* { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--dark);
  background-color: var(--bg-soft);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Headings use Poppins for the reference feel */
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }

/* Heading color tokens to match reference */
h1, .section_title h1 { color: var(--primary-dark); }
h2, h3, h4 { color: var(--primary-dark); }

/* Navbar tweaks */
.navbar-brand { font-weight: 700; color: var(--primary); }
.navbar { background: transparent; }
.navbar .nav-link { color: rgba(15,23,36,0.8); }

/* Light navbar (header) styles to match reference */
.site-header .navbar-light { background: #ffffff; }
.site-header .navbar-light .nav-link { color: rgba(15,23,36,0.85); margin: 0 .55rem; font-weight: 500; }
.site-header .navbar-light .nav-link:hover, .site-header .navbar-light .nav-link:focus { color: var(--accent); }
.site-header .navbar-brand { color: var(--primary); font-size: 1.15rem; }

/* Primary CTA in navbar */
.btn-getstarted { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.15rem; font-weight: 700; box-shadow: 0 8px 26px rgba(255,147,7,0.12); }
.btn-getstarted:hover, .btn-getstarted:focus { background: #e67f05; color: #fff; }

/* Toggler & collapsed menu styling */
.navbar-toggler { border: 1px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.12); padding: .35rem .6rem; }
.navbar-toggler i { font-size: 1.25rem; color: var(--primary); }
.navbar-collapse { background: transparent; border-radius: .5rem; padding: 0; }

/* Mobile-specific collapse background and spacing */
@media (max-width: 991px) {
  .navbar-collapse { background: var(--bg-soft); padding: .85rem; margin-top: .5rem; }
  .navbar-collapse .nav-link { display: block; padding: .45rem 0; }
  .collapse .btn-block { margin-top: .6rem; }
}

/* Desktop: center nav, keep CTA right */
@media (min-width: 992px) {
  .navbar-collapse { justify-content: center; }
  .navbar-nav { gap: 0.4rem; }
}

/* Positioning: prefer static positioning for the light navbar so it sits above content */
.site-header .navbar { position: static; }

/* Container used as positioning context for header elements */
.site-header .container { position: relative; }

/* Desktop: center nav, keep CTAs right and toggler as a small square button */
@media (min-width: 992px) {
  .site-header .navbar-collapse { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: auto; }
  .site-header .navbar-nav { display: flex; gap: 1.1rem; align-items: center; }
  .site-header .navbar-nav .nav-link { padding: .5rem .6rem; }

  /* Place CTAs at the right edge inside the container */
  .site-header .d-none.d-lg-flex { position: absolute; right: 92px; top: 50%; transform: translateY(-50%); display: flex; gap: .6rem; align-items: center; }

  /* Toggler appears as a small square button to the right of CTAs */
  .site-header .navbar-toggler { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); border-radius: 8px; width: 44px; height: 44px; background: #f6f8f8; border: 1px solid rgba(15,23,36,0.06); display: inline-flex; align-items: center; justify-content: center; }
  .site-header .navbar-toggler i { color: var(--primary); font-size: 1.08rem; }
}

/* Mobile: keep normal flow and make collapse full-width */
@media (max-width: 991px) {
  .site-header .container { position: static; }
  .site-header .navbar-collapse { position: static; transform: none; }
  .site-header .d-none.d-lg-flex { position: static; margin-left: auto; }
  .site-header .navbar-toggler { position: static; right: auto; top: auto; transform: none; }
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.08), rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.03));
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero-section h1 { color: var(--dark); font-weight: 800; letter-spacing: -0.5px; }
.hero-section p.lead { color: var(--muted); font-size: 1.125rem; }
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.18);
}
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }

/* Navbar over hero */
.site-header .navbar { padding-top: 1rem; padding-bottom: 1rem; background: transparent; }
.site-header .navbar-brand { font-size: 1.125rem; }
.site-header .navbar-toggler { border: 0; }

/* navbar positioning: static on mobile, overlay absolute on large screens */
.site-header .navbar { position: static; }
@media (min-width: 992px) {
  .site-header .navbar { position: absolute; top: 1rem; left: 0; width: 100%; }
}

/* Topbar */
.topbar { font-size: .9rem; }

/* Topbar: dark teal strip matching reference */
.topbar {
  background: var(--primary-dark);
  color: #e0f1df;
}
.topbar a { color: #e0f1df; text-decoration: none; }

/* Navbar (dark) - ensure links and brand contrast over hero */
.site-header .navbar-dark .navbar-brand { color: #e0f1df; font-weight: 700; }
.site-header .navbar-dark .nav-link { color: #ffffff; opacity: 0.95; margin: 0 .5rem; }
.site-header .navbar-dark .nav-link:hover, .site-header .navbar-dark .nav-link:focus { color: var(--accent); opacity: 1; }

/* CTA outline to match primary */
.btn-outline-secondary { border-radius: 999px; padding: .65rem 1.1rem; border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-secondary:hover, .btn-outline-secondary:focus { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Small fix for collapsed menu background to keep contrast */
.navbar-collapse { background: transparent; }
.collapse .btn-block { margin-top: .5rem; }

/* Hero decorative shape */
.hero-section { position: relative; overflow: visible; }
.hero-section::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.14), rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.03));
  border-radius: 50%;
  filter: blur(22px);
  z-index: 0;
}

.hero-section .container > .row > [class*="col-"] { position: relative; z-index: 2; }

/* Hero headings */
.hero-section h1 { font-size: 3rem; line-height: 1.03; }
@media (max-width: 576px) { .hero-section h1 { font-size: 1.9rem; } }

/* Responsive: tablets */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.4rem; }
  .hero-image { max-width: 420px; }
  .site-header .navbar { padding-top: .6rem; padding-bottom: .6rem; }
}

/* Responsive: phones */
@media (max-width: 767px) {
  .hero-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .hero-section h1 { font-size: 1.9rem; line-height: 1.12; }
  .hero-image { max-width: 320px; margin: 1.25rem auto 0; position: relative; }
  .hero-image img { border-radius: .5rem; }
  .btn-primary, .btn-outline-secondary { display: block; width: 100%; margin-bottom: .6rem; }
  .card .card-body { padding: 1rem; }
  .card-img-top { height: 140px; }
  .section_title p { width: 100%; margin: 1rem 0; }
  .site-footer { padding: 2rem 0; }
  .navbar .nav-link { padding: .5rem 0; }
}

/* Buttons: primary with subtle outline and pill radius */
.btn-primary { border-radius: 999px; padding: .75rem 1.25rem; font-weight: 600; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 10px 28px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.18); }
.btn-outline-secondary { border-radius: 999px; padding: .65rem 1.1rem; border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-secondary:hover, .btn-outline-secondary:focus { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Ensure hero image and play button sit above decorative shape */
.hero-image { z-index: 3; }


/* Hero image and play button */
.hero-image { max-width: 520px; }
.hero-image img { width: 100%; height: auto; display: block; border-radius: .75rem; }
.hero-image .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 1.4rem; box-shadow: 0 10px 30px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.22);
  text-decoration: none; opacity: .98;
}

/* subtle hover for play button */
.hero-image .play-btn:hover { transform: translate(-50%, -50%) scale(1.03); }

/* Services layout */
.services .card { transition: transform .26s ease, box-shadow .26s ease; border-radius: .75rem; }
.services .card .display-4 { font-size: 1.9rem; }
.services .card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(15,23,36,0.06); }

/* Stats */
.fw-bold.text-primary { color: var(--primary) !important; }

/* Footer small tweak */
.footer { color: var(--muted); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { animation: fadeUp .8s ease both; }
.animate-fade-in { animation: fadeIn .9s ease both; }

/* stagger for cards */
.services .card:nth-child(1) { animation: fadeUp .6s ease both; }
.services .card:nth-child(2) { animation: fadeUp .75s ease both; }
.services .card:nth-child(3) { animation: fadeUp .9s ease both; }

/* Mobile CTA inside collapse */
.collapse .btn-block { display: block; width: 100%; }

/* spacing tweaks */
.hero-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
@media (max-width: 767px) { .hero-section { padding-top: 3rem; padding-bottom: 3rem; } }

/* small-screen tweaks for readability */
@media (max-width: 576px) {
  .display-3 { font-size: 2rem; }
  .lead { font-size: 1rem; }
}

/* Icon circle for feature list */
.icon-circle { width:48px; height:48px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; font-size:1.2rem; }

/* Team */
.rounded-circle { border-radius: 999px !important; }

/* Blog cards */
.card-img-top { height:160px; object-fit:cover; border-top-left-radius: .75rem; border-top-right-radius: .75rem; }

/* Service numbered cards */
.service-number { position: absolute; top: 20px; right: 20px; font-size: 3rem; font-weight: 800; color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.08); }
.services .card { position: relative; }

/* Stats section with large display */
.stat-box { padding: 2rem 1rem; }
.stat-box h2 { margin-bottom: 0.5rem; }
.stat-box p { letter-spacing: 0.05em; }

/* Portfolio card hover effects */
.portfolio-card { transition: transform .3s ease, box-shadow .3s ease; }
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(15,23,36,0.08); }

/* Testimonial cards */
.testimonial-card { border-left: 4px solid var(--primary) !important; transition: transform .26s ease; }
.testimonial-card:hover { transform: translateY(-4px); }

/* Testimonials simple dots */
.testimonials { position: relative; }
.testimonials:after { content: ''; display: block; height: 6px; width: 100%; }

/* Footer layout (will override the default basic footer) */
.site-footer { background: var(--primary-dark); color: #e0f1df; padding: 3.5rem 0; }
.site-footer a { color: #e0f1df; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .footer-col h6 { color: #ffffff; margin-bottom: .75rem; }

/* Ensure all small/footer text is readable against the dark teal */
.site-footer p,
.site-footer .small,
.site-footer .text-muted,
.site-footer ul li,
.site-footer .footer-col,
.site-footer .footer-col .small {
  color: #e0f1df;
  opacity: 0.95;
}

.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1rem; color: #e0f1df; }

/* Strong override: ensure any remaining dark text in the footer becomes readable */
.site-footer, .site-footer p, .site-footer a, .site-footer small, .site-footer .small, .site-footer .text-muted, .site-footer li, .site-footer .footer-col, .site-footer .footer-col h6, .site-footer .bi {
  color: #e0f1df !important;
}


/* Sections */
section { padding: 3.5rem 0; }
.bg-light { background-color: var(--bg-soft) !important; }

/* Services */
.card { border: 0; background: var(--card-bg); }
.card .card-body { padding: 2rem; }
.card .display-4 { font-size: 2.6rem; display: block; }
.card:hover { transform: translateY(-6px); transition: transform .22s ease; }

.services .card-title { font-weight: 600; margin-top: 0.5rem; }
.services .card-text { color: var(--muted); }

/* Testimonials */
.blockquote { font-size: 1rem; color: #111827; }
.blockquote-footer { color: var(--muted); font-size: .9rem; }

/* Contact card */
.card.shadow-sm { border-radius: .6rem; }

/* Footer */
.footer { padding: 1.4rem 0; background: linear-gradient(180deg, var(--bg-soft), #fbfdff); }

/* Utilities */
.rounded { border-radius: .6rem !important; }
.text-primary { color: var(--primary) !important; }

/* Responsive spacing tweaks */
@media (max-width: 767px) {
  .hero-section { padding-top: 3rem; padding-bottom: 3rem; }
  .card .card-body { padding: 1.25rem; }
}

/* Accessibility: focus outline */
a:focus, button:focus { outline: 3px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.18); outline-offset: 2px; }
