  :root {
      /* Body text */
      --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

      /* Headings */
      --bs-heading-font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    }

    /* Heading spacing */
    h1, h2, h3, h4, h5, h6 {
      letter-spacing: -0.01em;
    }

/* Debug mode
div {
    outline:1px dashed red;
} */

  /* Wordmark */
.wordmark {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  line-height: 1;
}

.titlehr {
    all: unset;
    display: block;
    height: 6px;
    background-color: #5c5c5c !important;
    border-radius: 3px;
    border: none !important;
    margin: 20px 0 !important;
}

html {
  font-size: 16px;
}
  
.topbar {
  position: sticky;
  top: 0;
  padding: 10px 16px;
  background: #555;
  color: #f1f1f1;
  z-index: 1000;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;

  display: flex;
  justify-content: center; 
}

.brand {
  display: flex;
  align-items: center;
  gap: 3rem; /* space between INTEKSYS and nav */
}

.logo-icon {
  width: clamp(22px, 5vw, 40px);
  height: clamp(22px, 5vw, 40px);
  vertical-align: middle;
}

.topbar .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em; /* space between logo and text */
}

.content {
  max-width: 72ch;
  padding: 1.5rem;
  margin: 0 auto;
  text-align: left;
}

.content p {
  text-align: left;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page {
  display: grid;
  grid-template-columns: 1fr minmax(0, 72ch) 1fr;
  gap: 2rem;
  padding-inline: clamp(1rem, 4vw, 3rem);
  max-width: 1400px;
  margin-inline: auto;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 4rem;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
  }
  .rail {
    display: none;
  }
  .nav { 
    display: none; 
  }
  .nav-phone {
    display: block; 
  }
}

@media (min-width: 769px) {
  .nav-phone {
    display: none;
  }
}

.rail img {
  width: 100%;
  max-width: clamp(220px, 30vw, 360px);
  height: auto;
  border-radius: 12px;
  opacity: 0.85;
}

.rail.left {
  align-items: flex-start;
}

.rail.right {
  align-items: flex-end;
}

.nav {
  gap: 2.25rem;
}


.nav-link,
.nav-item summary {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover,
.nav-item summary:hover {
  text-decoration: underline;
}

.nav-item {
  position: relative;
}

.nav-item summary {
  list-style: none;
}

.nav-item summary::-webkit-details-marker {
  display: none;
}

.nav-item:not([open]) .dropdown {
  display: none;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background:#555;
  /* background: rgba(31, 31, 31, 1); */ 
  /* background: #1f1f1f; */
  min-width: 320px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  /* box shadow on/off */
  box-shadow: 0 8px 24px rgba(0,0,0,1);
  border-radius: 6px;

}

.dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown li a:hover {
  background: #333;
}

.menu-toggle {
  all: unset;                 /* nukes default button styles */
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  color: inherit;             /* match text color */
  padding: 0.25rem 0.5rem;    /* tap target */
  align-items: center;
  justify-content: center;
}

.menu-toggle:focus-visible {
  outline: 2px solid #999;
  outline-offset: 2px;
}
/* ============================= */
/* Mobile Fullscreen Menu */
/* ============================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.80);
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}

.mobile-menu-nav a {
  font-size: 1.75rem;
  color: #fff;
  text-decoration: none;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.mobile-menu-nav a:hover {
  text-decoration: underline;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item .dropdown {
  transition: opacity 0.2s ease;
  opacity: 0;
  pointer-events: none; /* prevent accidental hover on hidden menus */
}

.nav-item[open] .dropdown {
  opacity: 1;
  pointer-events: auto;
}

.nav-link:hover {
  color: #fff;
}

/* ============================= */
/* Footer */
/* ============================= */

.site-footer {
  background: #444;
  color: #ddd;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 72ch;          /* match content column */
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col h4 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem;
  color: #aaa;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

:target {
  scroll-margin-top: 80px; /* header height + small buffer */
}
/*
.form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(176, 175, 174, 0.25);
}
*/

.form-control:focus {
    background-color: #ffffff;  
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(176, 175, 174, 0.25);
    outline: none; 
}

.form-control {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #111;
    padding: 0.5em;
    border-radius: 4px;
}

a.modern-link {
  color: #333 !important;
  text-decoration: none !important;
  position: relative;
  transition: color 0.3s ease;
  font-weight: bold;
}

a.modern-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: #0077cc;
  transition: width 0.3s ease;
}

a.modern-link:hover {
  color: #0077cc !important;
}

a.modern-link:hover::after {
  width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.6em 1.2em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 0.3em;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}


.btn.primary {
    background-color: #111; 
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn.primary:hover {
    background-color: #333; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}


.btn.secondary {
    background-color: #555;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn.secondary:hover {
    background-color: #777;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.arrow {
    font-size: 1.5em;
    vertical-align: middle;
    font-weight: bold;   
}


.box {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo-container {
    width: 80%;       /* size of main logo - adjust to right ratio */
}

.logo {
    width: 100%;
    height: auto;
}