
:root {
  --navy: #17365d;
  --navy-dark: #102742;
  --accent: #a7c4e2;
  --text: #243447;
  --muted: #65758a;
  --background: #ffffff;
  --light: #f3f6fa;
  --border: #e1e7ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}


.site-header {
  background-color: #00112F;
  border-bottom: 1px solid #00112F;
}

.site-header nav a {
  color: white;
}

.site-header nav a:hover {
  color: #F5BC45;
}

.site-header .header-button {
  background: #F5BC45;
  color: #00112F;
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 18px;
}

.brand span {
  font-weight: 400;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.header-button,
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}

.header-button,
.button-primary {
  background: var(--navy);
  color: white;
}

.header-button:hover,
.button-primary:hover {
  background: var(--navy-dark);
}

.hero {
  background: linear-gradient(125deg, #17365d, #102742);
  color: white;
  padding: 105px 0;
}

.hero-content {
  max-width: 1120px;
}

.eyebrow,
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  margin: 18px 0 22px;
}

.hero-description {
  max-width: 590px;
  color: #dbe5f0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero .button-primary {
  background: white;
  color: var(--navy);
}

.hero .button-primary:hover {
  background: #e8eff7;
}

.button-outline {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 85px 0;
  scroll-margin-top: 30px;
}

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

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

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 10px 0 16px;
}

.section-intro {
  max-width: 690px;
  color: var(--muted);
  margin-bottom: 35px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card,
.community-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
}

.service-card h3,
.community-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.service-card p,
.community-card p {
  color: var(--muted);
  font-size: 14px;
}

.community-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 800px;
}

.coming-soon {
  color: var(--navy);
  background: #eaf1f9;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  background: var(--navy-dark);
  color: #dbe5f0;
  padding: 25px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 75px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .community-card,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 60px 0;
  }
}



/* Portal selection page */

.portal-page {
  min-height: 75vh;
  padding: 80px 0;
  background: var(--light);
}

.portal-heading {
  text-align: center;
  margin-bottom: 45px;
}

.portal-heading h1 {
  color: var(--navy);
  font-size: clamp(32px, 5vw, 44px);
  margin: 10px 0;
}

.portal-heading p {
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.portal-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.portal-card h2 {
  color: var(--navy);
  font-size: 19px;
}

.portal-card p {
  color: var(--muted);
  font-size: 14px;
  min-height: 90px;
}

.portal-status {
  display: inline-block;
  background: #eaf1f9;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.portal-note {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-page {
    padding: 50px 0;
  }

  .portal-card p {
    min-height: auto;
  }
}

/* Makary Management main logo */

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}


.logo-image {
  display: block;
  width: 270px;  /* Increased from 220px */
  height: auto;
  max-width: 100%;
}

@media (max-width: 600px) {
  .logo-image {
    width: 210px;
  }
}



/* ========================================
   PORTAL ACCESS DROPDOWN
======================================== */

.portal-dropdown {
  position: relative;
  z-index: 1000;
}

.portal-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
}

.portal-chevron {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.portal-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 265px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e3e9f1;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 17, 47, 0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease,
              transform 0.2s ease,
              visibility 0.2s ease;
}

/* Desktop hover and keyboard focus */
.portal-dropdown:hover .portal-dropdown-menu,
.portal-dropdown:focus-within .portal-dropdown-menu,
.portal-dropdown.is-open .portal-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portal-dropdown:hover .portal-chevron,
.portal-dropdown.is-open .portal-chevron {
  transform: rotate(180deg);
}

.portal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #00112f;
  transition: background 0.2s ease;
}

a.portal-dropdown-item:hover,
a.portal-dropdown-item:focus-visible {
  background: #f1f5fb;
}

.portal-icon {
  font-size: 25px;
  width: 34px;
  text-align: center;
}

.portal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-info strong {
  font-size: 14px;
  font-weight: 600;
}

.portal-info small {
  font-size: 11px;
  color: #64748b;
}

.portal-dropdown-item.disabled {
  opacity: 0.55;
  cursor: default;
}

/* Keep dropdown within the viewport on small screens */
@media (max-width: 600px) {
  .portal-dropdown-menu {
    width: min(265px, calc(100vw - 32px));
  }
}



/* Single Portal Login button */

.portal-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.portal-login-button:hover {
  text-decoration: none;
}
