/* =========================================================
   
— Global UI (Header, Footer, Core Styles)
   Keep this file small and page-agnostic.
   ========================================================= */

/* --------- CSS Variables: brand palette & tokens --------- */
:root {
  --royal: #0b2a4a;
  /* primary */
  --leaf: #2a9d8f;
  --royal-700: #0a2440;
  /* hover */
  --royal-50: #f4f6fa;
  /* soft bg */
  --accent: #2a6f97;
  /* link/accent */
  --ink: #0b2a4a;
  /* main text */
  --muted: #667085;
  /* muted text */
  --card: #ffffff;
  /* surfaces */
  --ring: rgba(42, 111, 151, .18);
  --shadow: 0 10px 28px rgba(11, 42, 74, .10);
  --radius: 16px;
}

/* ------------------ Base typography & links ------------------ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--ink);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--royal);
  text-decoration: none;
}

/* -------------------------- Buttons -------------------------- */
.btn-pill {
  border-radius: 999px;
  padding: .55rem 1.05rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary-pill {
  background: var(--royal);
  color: #fff !important;
  border: 1px solid var(--royal);
}

.btn-primary-pill:hover {
  background: var(--royal-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 42, 74, .18);
}

.btn-outline-light-pill {
  border: 2px solid #fff;
  color: #fff !important;
  background: transparent;
  border-radius: 999px;
}

.btn-outline-light-pill:hover {
  background: #fff;
  color: var(--royal) !important;
}

/* --------------------------- Navbar -------------------------- */
.navbar-evy {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 44, 79, .06);
  transition: box-shadow .2s ease;
}

.navbar-evy.nav-shadow {
  box-shadow: 0 8px 24px rgba(10, 44, 79, .10);
}

.navbar-evy .navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--ink) !important;
  font-family: "Playfair Display", serif;
}

.navbar-evy .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: .6rem;
  background: var(--royal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.navbar-evy .nav-link {
  font-weight: 600;
  color: var(--ink) !important;
  opacity: .95;
}

.navbar-evy .nav-link:hover,
.navbar-evy .dropdown-item:hover {
  color: var(--leaf) !important;
}

.navbar-evy .dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(10, 44, 79, .08);
  box-shadow: var(--shadow);
} 

/* Second-level submenu (Bootstrap 4 friendly) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -.125rem;
  margin-left: .1rem;
  border-radius: .5rem;
} 

.dropdown-submenu.open-left>.dropdown-menu {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: .1rem;
}

.dropdown-submenu>a.dropdown-toggle::after {
  content: "›";
  border: 0;
  margin-left: .4rem;
  font-weight: 700;
}

.dropdown-submenu.open-left>a.dropdown-toggle::after {
  content: "‹";
}


/* -------------------------- Footer --------------------------- */
.footer-evy {
  background: var(--royal-50);
  border-top: 1px solid rgba(10, 44, 79, .06);
  padding-top: 54px;
}

.footer-evy .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--ink);
  font-family: "Playfair Display", serif;
}

.footer-evy .logo .brand-mark {
  margin-right: .6rem;
}

.footer-evy h6 {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-evy a {
  color: var(--ink);
  opacity: .85;
  text-decoration: none;
}

.footer-evy a:hover {
  opacity: 1;
  color: var(--leaf);
}

.footer-evy .social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-right: .4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(10, 44, 79, .08);
}

.footer-evy .newsletter .form-control {
  border-radius: 12px;
  border: 1px solid rgba(10, 44, 79, .15);
}

.footer-evy .newsletter .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--ring);
}

.footer-evy .bottom {
  border-top: 1px solid rgba(10, 44, 79, .06);
}

/* ------------------------ Site badges ------------------------ */
.badge-soft {
  display: inline-block;
  background: var(--royal-50);
  color: var(--royal);
  border-radius: 999px;
  padding: .25rem .6rem;
  font-weight: 700;
  font-size: .8rem;
}

/* ------------------ Reveal (fade/slide-in) ------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------- WhatsApp FAB ------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1051;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .20);
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
}

/* -------------------------- Utilities ------------------------ */
.shadow-soft {
  box-shadow: var(--shadow) !important;
}

.rounded-xl {
  border-radius: var(--radius) !important;
}

.bg-soft {
  background: var(--royal-50) !important;
}

.text-muted-ink {
  color: var(--muted) !important;
}

/* Optional: generic section wrapper used across pages */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--royal-50);
}




/* Add this to your existing global.css file */

/* --------------------------- Navbar Logo Responsive -------------------------- */
.navbar-logo {
  height: 40px;
  width: auto;
  margin-right: 0.6rem;
  transition: all 0.3s ease;
}

.navbar-brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-logo {
    height: 32px;
    /* Smaller logo on mobile */
    margin-right: 0.4rem;
  }

  .navbar-brand-text {
    font-size: 0.9rem;
    /* Smaller text on mobile */
    line-height: 1.2;
  }
}

/* Very small screens */
@media (max-width: 576px) {
  .navbar-brand {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .navbar-logo {
    height: 28px;
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .navbar-brand-text {
    font-size: 0.8rem;
    text-align: left;
  }
}

/* Hamburger button styling */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
  background-color: transparent;
  border-radius: 0.25rem;
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile dropdown improvements */
@media (max-width: 991.98px) {
  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--ink);
  }

  .dropdown-item:hover {
    background-color: var(--royal-50);
    color: var(--royal);
  }

  /* Handle nested dropdowns on mobile */
  .dropdown-submenu .dropdown-menu {
    position: static !important;
    float: none;
    box-shadow: none;
    border: none;
    margin-left: 1rem;
    display: none;
  }
}

/* Contact button spacing */
.navbar-nav .nav-item:last-child .nav-link.btn {
  margin-left: 0;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item:last-child .nav-link.btn {
    margin-left: 1rem;
    margin-top: 0;
  }
}

/* NOTE: Dropdowns should open on click for better UX. Removed the hover-to-open
   behaviour so Bootstrap's click-driven dropdown (and our JS) controls visibility.
   If a future design needs hover, reintroduce carefully and ensure keyboard
   accessibility remains intact. */

/* Ensure submenu appears on top */
.dropdown-submenu .dropdown-menu {
  z-index: 1060;
}
