/* ── VARIS MANAGEMENT SERVICES – Global Stylesheet ── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy:      #0d2137;
  --navy-mid:  #1a3a5c;
  --navy-light:#234e7a;
  --teal:      #0e7c7b;
  --teal-light:#15a8a6;
  --teal-pale: #e6f5f5;
  --gold:      #c8960c;
  --gold-light:#e8b020;
  --white:     #ffffff;
  --off-white: #f8f9fc;
  --cream:     #f2f4f0;
  --text:      #0d2137;
  --body-text: #1e3045;
  --muted:     #3d5468;
  --border:    #d4dde6;
  --shadow:    0 4px 32px rgba(13,33,55,0.10);
  --shadow-lg: 0 12px 56px rgba(13,33,55,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--body-text);
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: 'Libre Baskerville', serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
p { font-size: 18px; color: var(--body-text); line-height: 1.85; }
li { font-size: 17px; color: var(--body-text); line-height: 1.8; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(13,33,55,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14,124,123,0.25);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-menu { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  color: rgba(255,255,255,0.88); font-size: 15px; font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.2px; padding: 10px 16px; border-radius: 5px;
  transition: all 0.25s; display: block;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--teal-light); background: rgba(14,124,123,0.14);
}

/* ── DROPDOWN — fully clickable with hover bridge ── */
.nav-menu > li.has-dropdown { position: relative; }

/* Invisible bridge fills the gap between link and dropdown so mouse doesn't "fall through" */
.nav-menu > li.has-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 14px;
  background: transparent;
}

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy);
  border: 1px solid rgba(14,124,123,0.25);
  border-radius: 8px; min-width: 240px; padding: 6px 0;
  box-shadow: 0 20px 56px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Show on hover of the LI (covers both the link AND the bridge) */
.nav-menu > li.has-dropdown:hover .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 13px 22px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.nav-dropdown a:hover {
  color: white;
  background: rgba(14,124,123,0.15);
  border-left-color: var(--teal-light);
  padding-left: 28px;
}

.nav-cta {
  background: var(--teal) !important; color: white !important;
  padding: 10px 22px !important; border-radius: 5px !important;
  font-weight: 600 !important; font-size: 15px !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2px;
  background: white; border-radius: 2px; transition: all 0.3s;
}

/* ── PAGE HERO / BANNER ── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a2847 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(14,124,123,0.15) 0%, transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal-light); font-weight: 600; margin-bottom: 16px;
}
.page-hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--teal-light); }
.page-hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(36px, 5vw, 60px); color: white;
  font-weight: 700; line-height: 1.1;
}
.page-hero h1 em { font-style: italic; color: var(--teal-light); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 19px; max-width: 600px; margin-top: 16px; line-height: 1.75; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center; margin-top: 28px;
  font-size: 14px; color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 36px; }
section { padding: 88px 0; }

/* ── SECTION LABELS ── */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--teal); }
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(30px, 3.5vw, 46px); color: var(--navy);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-subtitle { font-size: 18px; color: var(--muted); max-width: 640px; line-height: 1.8; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 5px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.2px;
  transition: all 0.3s; cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,124,123,0.3); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; }
.btn-white { background: white; color: var(--navy); border-color: white; }
.btn-white:hover { background: var(--teal-light); color: white; border-color: var(--teal-light); }
.btn svg { width: 16px; height: 16px; }

/* ── CARDS ── */
.card {
  background: white; border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(14,124,123,0.2) 0%, transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: 'Libre Baskerville', serif; font-size: 34px; color: white; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 32px; line-height: 1.75; }

/* ── FOOTER ── */
footer {
  background: #070f1c;
  color: rgba(255,255,255,0.55);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-family: 'Libre Baskerville', serif; font-size: 16px; color: white;
  margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 15px; color: rgba(255,255,255,0.55); transition: color 0.2s; line-height: 1.6; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.65; }
.footer-contact-item a { color: var(--teal-light); transition: color 0.2s; font-size: 15px; }
.footer-contact-item a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 14px;
}
.footer-bottom a { color: var(--teal-light); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* ── MOBILE MENU ── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; z-index: 9999; position: relative; }

  /* Hidden state — use max-height so transition works and display:flex is always set */
  .nav-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--navy);
    gap: 0;
    padding: 0;
    z-index: 9998;
    align-items: flex-start;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  /* Open state */
  .nav-menu.open {
    max-height: 100vh;
    padding: 12px 0 24px;
    overflow-y: auto;
  }

  .nav-menu > li { width: 100%; }
  .nav-menu > li > a {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 0;
    display: block;
    width: 100%;
    color: rgba(255,255,255,0.9) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-menu > li > a:hover { background: rgba(14,124,123,0.2) !important; }

  /* Dropdown always visible inside mobile menu */
  .nav-menu > li.has-dropdown::after { display: none; }
  .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(0,0,0,0.2) !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  .nav-dropdown a {
    padding: 12px 28px 12px 44px !important;
    font-size: 14px !important;
    color: rgba(255,255,255,0.75) !important;
    border-left: 3px solid rgba(14,124,123,0.3) !important;
    margin-left: 20px;
    display: block !important;
  }
  .nav-dropdown a:hover {
    color: white !important;
    background: rgba(14,124,123,0.15) !important;
    border-left-color: var(--teal-light) !important;
  }
  .nav-dd-divider { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: fixed; top: 20px; right: 28px; background: none; border: none; color: white; font-size: 32px; cursor: pointer; z-index: 10000; opacity: 0.7; transition: opacity 0.2s; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; font-size: 30px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; z-index: 10000; }
.lb-nav:hover { background: rgba(14,124,123,0.5); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 14px; background: rgba(0,0,0,0.5); padding: 8px 22px; border-radius: 24px; white-space: nowrap; }

