/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0b0b0b;
  color: #ffffff;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   GLOBAL WRAPPER
   ===================================================== */
.page-width {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================================================
   LINKS
   ===================================================== */
a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}
a:hover {
  opacity: 1;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 34px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
}

/* =====================================================
   HERO — FULL SCREEN, NO OVERFLOW
   ===================================================== */
header.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

header.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-logo-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 4;
}
.hero-logo-overlay img {
  max-width: 240px;
  opacity: 0.85;
}

/* =====================================================
   MAIN CONTENT — 2 COLUMN GRID
   ===================================================== */
main {
  padding-top: 2rem;
}

.main-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.article-block {
  display: flex;
  flex-direction: column;
}

.article-block h3 {
  margin-bottom: 0.75rem;
}

.article-block p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.learn-more {
  display: inline-block;
  margin: 0.75rem 0 1.25rem;
  padding: 10px 18px;
  background: #16a085;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
}
.learn-more:hover {
  background: #1abc9c;
}

/* ARTICLE IMAGES — ACTUAL VISIBLE SIZE */
.article-img {
  width: 100%;
  max-width: 420px;
  margin-top: 1rem;
  border-radius: 6px;
}

/* =====================================================
   UPPER FOOTER
   ===================================================== */
.upper-footer {
  background: #0f0f0f;
  padding: 60px 0;
}

.upper-footer-top,
.upper-footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 40px;
}

.upper-footer-top {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 50px;
}

.upper-footer-bottom {
  grid-template-columns: repeat(4, 1fr);
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

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

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #b5b5b5;
  font-size: 14px;
}
.footer-col ul li a:hover {
  color: #16a085;
}

.footer-newsletter-form {
  display: flex;
  gap: 10px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
}

.footer-newsletter-form button {
  padding: 10px 14px;
  background: #16a085;
  border: none;
  color: #fff;
}

.footer-reviews a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #16a085;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
}

/* =====================================================
   LEGAL FOOTER
   ===================================================== */
footer {
  background: #000;
  border-top: 1px solid #111;
  padding: 16px 24px;
  font-size: 12px;
  text-align: center;
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
#scrollToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16a085;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: #0b0b0b;
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease;
  }

  .main-nav.open .nav-links {
    right: 0;
  }

  .main-article {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .article-img {
    max-width: 100%;
  }

  .upper-footer-top,
  .upper-footer-bottom {
    grid-template-columns: 1fr;
  }

  .hero-logo-overlay img {
    max-width: 180px;
  }

  #scrollToTop {
    bottom: 18px;
    right: 18px;
  }
}

.hero-content {
  justify-content: flex-end;
  padding-bottom: 6rem;
}

/* Footer HubSpot newsletter form */
.footer-newsletter-form {
  margin-top: 16px;
}

/* Label text (e.g. "Email") */
.footer-newsletter-form label {
  color: #ffffff !important;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

/* Email input field */
.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

/* Placeholder text */
.footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Submit button */
.footer-newsletter-form input[type="submit"],
.footer-newsletter-form button {
  margin-top: 12px;
  padding: 12px 16px;
  background-color: #156951; /* Ace Intl Media green */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* ===== HubSpot Newsletter – Footer Styling ===== */

/* Label (Email) */
.footer-hubspot-form label {
  color: #ffffff !important;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

/* Email input */
.footer-hubspot-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
}

/* Placeholder */
.footer-hubspot-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Submit button */
.footer-hubspot-form input[type="submit"] {
  margin-top: 14px;
  padding: 12px 16px;
  background-color: #156951;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Hover */
.footer-hubspot-form input[type="submit"]:hover {
  background-color: #1c7d5f;
}

/* Mobile spacing */
.footer-hubspot-form .hs-form-field {
  margin-bottom: 12px;
}

/* Upper footer app banner sizing */
.footer-app-banner {
  max-width: 480px;
}

.footer-app-banner img {
  width: 100%;
  height: auto;
  max-height: 120px;   /* ← half-height control */
  object-fit: contain;
  border-radius: 6px;
}

/* === FORCE HOMEPAGE FAQ 2-COLUMN LAYOUT === */
.homepage-faq .faq-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 32px;
  width: 100%;
}

.homepage-faq .faq-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .homepage-faq .faq-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ================= CONTACT FORM ================= */

.contact-form-block {
  max-width: 720px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #e5e5e5;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 6px;
  padding: 12px 14px;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #156951; /* Ace green */
  box-shadow: 0 0 0 1px rgba(21,105,81,0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  margin-top: 10px;
  align-self: flex-start;
  padding: 12px 28px;
  background: #156951;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.contact-form button:hover {
  background: #1b7a5f;
}

.contact-form button:active {
  transform: translateY(1px);
}

/* Mobile safety */
@media (max-width: 768px) {
  .contact-form-block {
    max-width: 100%;
  }
}

section.contact-faq {
  position: relative;
  left: 0;
  right: 0;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}


/* ===== HOMEPAGE FAQ (2 COLUMN LAYOUT) ===== */

.homepage-faq {
  margin-top: 48px;
}

.homepage-faq .faq-grid {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
}

.homepage-faq .faq-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.homepage-faq .faq-item h3 {
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .homepage-faq .faq-grid {
    flex-direction: column;
  }
}

/* ===== HOMEPAGE FAQ ===== */

.homepage-faq {
  width: 100%;
  padding: 64px 24px;
  background: #0a0a0a; /* or keep transparent if you prefer */
}

.homepage-faq .faq-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
}

.homepage-faq .faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .homepage-faq .faq-grid {
    flex-direction: column;
  }
}

/* === FORCE IMAGE VISIBILITY === */
.article-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin-top: 16px;
}

/* === FORCE SITE ACCESS BUTTON VISIBILITY === */
.platform-access-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.platform-access-btn {
  display: block !important;
  padding: 14px 16px;
  border: 1px solid #111;
  color: #000;
  text-decoration: none;
  background: #fff;
}

.platform-access-btn span {
  display: block;
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

.platform-access-btn:hover {
  background: #000;
  color: #fff;
}

.hero video,
.hero-logo-overlay {
  pointer-events: none;
}

/* FINAL GUARANTEED 2-COLUMN FIX */
.doctrine-bottom-flex {
  display: flex !important;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
}

.doctrine-bottom-content {
  flex: 1 1 60%;
}

.doctrine-bottom-image {
  flex: 0 0 40%;
}

.doctrine-bottom-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Mobile stack */
@media (max-width: 900px) {
  .doctrine-bottom-flex {
    flex-direction: column;
  }

  .doctrine-bottom-image {
    order: -1;
  }
}

/* ===== SUB NAV (HORIZONTAL FIX) ===== */
.sub-nav .sub-nav-links {
  display: flex;
  flex-wrap: wrap;          /* allows wrapping on smaller screens */
  gap: 16px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-nav .sub-nav-links li {
  margin: 0;
}

.sub-nav .sub-nav-links a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
}

/* ===== FORCE HORIZONTAL SUB NAV ===== */
.sub-nav.framework-nav ul.sub-nav-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;

  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sub-nav.framework-nav ul.sub-nav-links > li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sub-nav.framework-nav ul.sub-nav-links > li > a {
  display: inline-block !important;
  white-space: nowrap !important;
}

/* ===== FRAMEWORK SUB NAV – HARD INLINE FIX ===== */
.sub-nav.framework-nav ul.sub-nav-links {
  white-space: nowrap !important;
  overflow-x: auto;
  padding: 0 !important;
  margin: 0 !important;
}

.sub-nav.framework-nav ul.sub-nav-links > li {
  display: inline-block !important;
  width: auto !important;
  float: none !important;
  margin-right: 18px !important;
}

.sub-nav.framework-nav ul.sub-nav-links > li:last-child {
  margin-right: 0 !important;
}

.sub-nav.framework-nav ul.sub-nav-links > li > a {
  display: inline-block !important;
  white-space: nowrap !important;
}

.sub-nav-inner {
  display: block;
}

.sub-nav-inner .sub-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== DOCUMENTATION LINK VISIBILITY ===== */
.main-article a {
  color: #156951;              /* Ace Intl Media green */
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.main-article a:hover {
  color: #0f4f3c;
  text-decoration-thickness: 2px;
}

.main-article a:visited {
  color: #0d3f31;
}

.main-article a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
}

/* ======================================================
   DOCTRINE / FRAMEWORK — LINK VISIBILITY
   ====================================================== */

.doctrine-framework .main-article .article-text a {
  color: #1E8F6A;              /* Lighter Ace green – readable */
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.doctrine-framework .main-article .article-text a:hover {
  color: #156951;              /* Brand green on hover */
  text-decoration-thickness: 2px;
}

.doctrine-framework .main-article .article-text a:visited {
  color: #2A6F5A;              /* Muted visited state */
}

