/* ==========================================================================
   goverioncourt.com — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   2. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --navy:    #1A3A5C;
  --teal:    #2E9AC4;
  --cyan:    #4EC6E0;
  --stone:   #F7F5F2;
  --white:   #FFFFFF;
  --charcoal:#2D2D2D;
  --gray:    #6B7280;
  --border:  #E5E1DC;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-ui:      'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 0.75em;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container--narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   5. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section--stone {
  background-color: var(--stone);
}

.section--navy {
  background-color: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5,
.section--navy h6 {
  color: var(--white);
}

.section--navy a {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: var(--teal);
  transition: width 200ms ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--white);
}

.btn-primary:hover::after {
  width: 100%;
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   8. Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  transition: box-shadow 200ms ease;
}

.site-header--scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 24px;
}

.nav__logo img {
  height: 44px;
  display: block;
}

.nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 200ms ease;
}

.nav__link:hover,
.nav__link--active {
  border-bottom-color: var(--teal);
  text-decoration: none;
  color: var(--navy);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background-color: var(--white);
  min-width: 220px;
  padding: 12px 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  list-style: none;
  margin: 0;
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 24px;
  color: var(--navy);
  font-size: 0.875rem;
  font-family: var(--font-ui);
  font-weight: 400;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav__dropdown-link:hover {
  background-color: var(--stone);
  color: var(--teal);
  text-decoration: none;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: transform 250ms ease, opacity 250ms ease;
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.nav__mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  background-color: var(--white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 250ms ease;
  overflow-y: auto;
  padding: 80px 24px 40px;
}

.nav__mobile-drawer--open {
  transform: translateX(0);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.nav__overlay--open {
  opacity: 1;
  visibility: visible;
}

/* Mobile accordion */
.nav__mobile-section {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.nav__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.nav__mobile-toggle::after {
  content: '+';
  font-size: 1.2rem;
  transition: transform 200ms ease;
}

.nav__mobile-toggle--open::after {
  transform: rotate(45deg);
}

.nav__mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__mobile-sub--open {
  max-height: 500px;
}

.nav__mobile-sub a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: none;
}

.nav__mobile-sub a:hover {
  color: var(--teal);
}

.nav__mobile-link {
  display: block;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav__mobile-link:hover {
  color: var(--teal);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.footer__logo img {
  height: 40px;
  margin-bottom: 16px;
  display: block;
}

.footer__heading {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-family: var(--font-ui);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 200ms ease;
}

.footer__link:hover {
  color: var(--cyan);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 48px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* override auto margin from grid above for border-top */
.site-footer .footer__bottom-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 48px;
}

.footer__bottom-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  transition: color 200ms ease;
  background: none;
  border: none;
  padding: 0;
}

.footer__bottom-link:hover {
  color: var(--cyan);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   10. Page Banner
   -------------------------------------------------------------------------- */
.page-banner {
  background-color: var(--stone);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: -40px;
  height: 3px;
  width: 200px;
  background: linear-gradient(90deg, transparent, var(--teal));
  transform: rotate(-30deg);
  transform-origin: right center;
}

.page-banner__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--navy);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.page-banner__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 900px;
  margin: 12px auto 0;
}

/* --------------------------------------------------------------------------
   11. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
}

.fade-up--visible {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up--delay-1 {
  animation-delay: 100ms;
}

.fade-up--delay-2 {
  animation-delay: 200ms;
}

.fade-up--delay-3 {
  animation-delay: 300ms;
}

.fade-up--delay-4 {
  animation-delay: 400ms;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   12. Modals
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--white);
  border-radius: 12px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease;
  line-height: 1;
}

.modal__close:hover {
  color: var(--navy);
}

.modal__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.modal__content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Sidebar
   -------------------------------------------------------------------------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.sidebar-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-nav__link {
  display: block;
  padding: 8px 0 8px 12px;
  color: var(--gray);
  font-size: 0.875rem;
  font-family: var(--font-ui);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 200ms ease, border-left-color 200ms ease;
}

.sidebar-nav__link:hover,
.sidebar-nav__link--active {
  color: var(--teal);
  border-left-color: var(--teal);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   14. Additional Components
   -------------------------------------------------------------------------- */

/* Coming Soon */
.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 32px;
  margin-left: 16px;
}

.timeline__step {
  position: relative;
  margin-bottom: 40px;
}

.timeline__step::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--teal);
}

.timeline__step-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline__step-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--charcoal);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 24px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--gray);
  cursor: pointer;
  transition: color 200ms ease, border-bottom-color 200ms ease;
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn--active {
  color: var(--navy);
  border-bottom-color: var(--teal);
}

.tab-panel {
  display: none;
}

.tab-panel--active {
  display: block;
}

/* Clause Block */
.clause-block {
  background-color: var(--stone);
  border-left: 3px solid var(--teal);
  padding: 24px 32px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

/* Download Card */
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-card .download-icon {
  transition: transform 200ms ease;
}

.download-card:hover .download-icon {
  transform: translateY(2px);
}

/* Fee Table */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.fee-table th {
  font-family: var(--font-ui);
  font-weight: 600;
  background-color: var(--stone);
  color: var(--navy);
  padding: 12px 16px;
  text-align: left;
}

.fee-table td {
  font-family: var(--font-body);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

/* Pill */
.pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 6px 16px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  color: var(--navy);
  background-color: var(--white);
}

/* Hero geometric pattern */
.hero {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    var(--navy) 0px,
    var(--navy) 1px,
    transparent 1px,
    transparent 20px
  );
  opacity: 0.03;
  pointer-events: none;
}

/* Two Column Grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .footer__grid {
    gap: 32px;
  }

  .content-with-sidebar {
    gap: 32px;
  }

  .two-col {
    gap: 32px;
  }

  .services-grid {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .page-banner__title {
    font-size: 2rem;
  }

  /* Layout */
  .section {
    padding: 56px 0;
  }

  /* Nav — show hamburger, hide desktop menu */
  .nav__menu {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Sidebar */
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    position: static;
  }

  /* Grids */
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Tabs */
  .tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
