/* ========================
   Table of Contents:
   1. Variables
   2. Reset / Base
   3. Typography
   4. Layout / Sections
   5. Components
      5b. Custom ACLS Stuff
   6. Utilities
   ======================== */

/* --- 1. VARIABLES --- */

:root {
    /* Modern Color Palette */
    --acls-brand: #FE6A00;
    --acls-brand-light: #ff9345;
    --acls-orange-100: #FFF9F0;
    --acls-yellow: #FEC000;

    --acls-brand-rgb: 254, 106, 0;
    --acls-yellow-rgb: 254, 192, 0;


    --link-color: #9f4200;
    --link-hover-color: #cc5500;

    --spacing-base: 1rem;
    --container-max-width: 1024px;

    /* Typography */
    --font-family-sans: 'DM Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-extrabold: 800;
    --line-height-xs: 1;
    --line-height-sm: 1.2;
    --line-height-md: 1.4;

    --fs-50: 0.75rem; /* p extra-small 0.75rem */
    --fs-100: 0.875rem; /* p small 0.875rem */
    --fs-200: 1rem; /* base font size */
    --fs-300: 1.125rem; /* h6 1.125rem */
    --fs-400: 1.25rem; /* h5 1.25rem */
    --fs-500: 1.5rem; /* h4 1.5rem */
    --fs-600: 1.75rem; /* h3 1.75rem */
    --fs-700: 2.125rem; /* h2 2.25rem */
    --fs-800: 2.75rem; /* h1 2.75rem */
    --fs-900: 3rem;
    --fs-1000: 4rem;

    /* Gradients */
    --gradient-acls-brand: linear-gradient(135deg, var(--acls-brand) 0%, var(--acls-brand-light) 100%);
    --gradient-acls-brand-light: linear-gradient(135deg, var(--acls-orange-100) 0%, var(--acls-orange-100) 100%);
    --gradient-acls-yellow-light: linear-gradient(to right, rgba(var(--acls-yellow-rgb), 0.2) 0%, rgba(var(--acls-yellow-rgb), 0.6) 100%);
}

/* --- MISC --- */

@font-face {
    font-family: 'Fustat';
    src: url('/fonts/Fustat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
  
  @font-face {
    font-family: 'Fustat';
    src: url('/fonts/Fustat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
  
  @font-face {
    font-family: 'Fustat';
    src: url('/fonts/Fustat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
  
  @font-face {
    font-family: 'Fustat';
    src: url('/fonts/Fustat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

  @font-face {
    font-family: 'Fustat';
    src: url('/fonts/Fustat-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}


::-moz-selection { /* Code for Firefox */
    color: var(--primary);
    background: var(--acls-yellow);
}
  
::selection {
    color: var(--primary);
    background: var(--acls-yellow);
}

/* ACCESSIBILITY */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: black;
    color: white;
    padding: 0.75rem 1rem;
    z-index: 100;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: top 0.3s ease;
}
  
  .skip-link:focus {
    top: 88px;
}



/* --- 2. RESET / BASE --- */

/* Base styles */
body {
    padding: 0;
    max-width: none;
    margin: 0 auto;
    transition: none;
    animation: none;
}

/* Classless Button Reset */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    min-height: 2.5rem;
    font-weight: var(--font-weight-bold);
    padding: calc(var(--spacing-base) * 0.5) calc(var(--spacing-base) * 1.25);
}

button.btn-lg,
a.btn-lg,
input[type="button"] .btn-lg,
input[type="reset"] .btn-lg,
input[type="submit"] .btn-lg {
    height: 3.5rem;
    font-size: var(--fs-400);
    line-height: 1.8;
}

/* Classless Images Reset */
img {
    border-radius: 0;
    transition: none;
    box-shadow: none;
}

img:hover {
    transform: none;
    box-shadow: none;
}

/* Classless Cards Reset */
article, section, aside {
    margin-bottom: 0;
    padding: 0;
    background-color: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border: none;
}

article:hover, section:hover, aside:hover {
    box-shadow: none;
}





/* --- 3. TYPOGRAPHY --- */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0;
    font-weight: var(--font-weight-extrabold);
}

h1 {
    font-size: var(--fs-800);
}

:where(h1) {
    font-size: var(--fs-800);
}

h2 {
    font-size: var(--fs-700);
}

h3 {
    font-size: var(--fs-600);
}

h4 {
    font-size: var(--fs-500);
}

.f-1000 {
    font-size: var(--fs-1000);
}

.f-900 {
    font-size: var(--fs-900);
}

.f-800, .f-h1 {
    font-size: var(--fs-800);
}

.f-700, .f-h2 {
    font-size: var(--fs-700);
}

.f-600, .f-h3 {
    font-size: var(--fs-600);
}

.f-500, .f-h4 {
    font-size: var(--fs-500);
}

.f-400, .f-h5 {
    font-size: var(--fs-400);
}

.f-300, .f-h6 {
    font-size: var(--fs-300);
}

.f-200 {
    font-size: var(--fs-200);
}

.f-100 {
    font-size: var(--fs-100);
}

.f-50 {
    font-size: var(--fs-50);
}

h2:after {
    background: transparent;
}

p {
    letter-spacing: 0.015em;
}




/* --- 4. LAYOUT / SECTIONS --- */

.acls-section {
    padding: 1.5rem 1rem;
    display: grid;
    place-items: center;
}

@media (min-width: 768px) {
    .acls-section {
        padding: 4rem 1rem;
        
    }
}

@media (min-width: 1024px) {
    .acls-section {
        padding: 6rem 1.5rem;
        
    }
}

.acls-section .acls-container {
    padding: 0;
    max-width: var(--container-max-width);
    width: 100%;
}

.acls-section .acls-container.acls-container-center {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.acls-section.acls-section-hero {
    background: radial-gradient(85.07% 69.88% at 86.46% 0%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%), radial-gradient(46.58% 28.41% at 56.15% 0%, rgba(255, 216, 132, 0.20) 0%, rgba(255, 216, 132, 0.00) 100%), radial-gradient(91.88% 76.75% at 12.08% -31.48%, rgba(255, 154, 164, 0.20) 0%, rgba(255, 154, 164, 0.00) 100%), radial-gradient(101.58% 86.86% at 0% 100%, rgba(255, 191, 154, 0.30) 0%, rgba(255, 191, 154, 0.00) 100%), radial-gradient(138.08% 79.26% at 100% 100%, rgba(255, 210, 154, 0.20) 0%, rgba(255, 210, 154, 0.00) 100%), linear-gradient(180deg, rgba(255, 242, 232, 0.00) 53.26%, #FFECDB 100%), linear-gradient(180deg, rgba(255, 242, 232, 0.00) 0%, #FFF2E8 100%), linear-gradient(0deg, #FFF8E8 0%, #FFF8E8 100%), #FFF;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.acls-section-gradient {
    background: radial-gradient(85.07% 69.88% at 86.46% 0%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%), radial-gradient(46.58% 28.41% at 56.15% 0%, rgba(255, 216, 132, 0.20) 0%, rgba(255, 216, 132, 0.00) 100%), radial-gradient(91.88% 76.75% at 12.08% -31.48%, rgba(255, 154, 164, 0.20) 0%, rgba(255, 154, 164, 0.00) 100%), radial-gradient(101.58% 86.86% at 0% 100%, rgba(255, 191, 154, 0.30) 0%, rgba(255, 191, 154, 0.00) 100%), radial-gradient(138.08% 79.26% at 100% 100%, rgba(255, 210, 154, 0.20) 0%, rgba(255, 210, 154, 0.00) 100%), linear-gradient(180deg, rgba(255, 242, 232, 0.00) 53.26%, #FFECDB 100%), linear-gradient(180deg, rgba(255, 242, 232, 0.00) 0%, #FFF2E8 100%), linear-gradient(0deg, #FFF8E8 0%, #FFF8E8 100%), #FFF;
    padding-top: 4rem;
    padding-bottom: 4rem;
}



/* --- 5. COMPONENTS --- */

/* ACLS Buttons */

button.acls-primary,
input[type="button"].acls-primary,
input[type="submit"].acls-primary {
    background: var(--gradient-acls-brand);
}

button.acls-primary-light,
input[type="button"].acls-primary-light,
input[type="submit"].acls-primary-light {
    background: var(--gradient-acls-brand-light);
    color: var(--acls-brand);
    border: rgba(var(--acls-brand-rgb), 0.3) 2px solid;
    
}

/* Added Button Link Style */

a.btn {
    vertical-align: middle;
    min-height: 2.5rem;
    min-width: 6.5rem;
    padding: calc(var(--spacing-base) * 0.5) calc(var(--spacing-base) * 1.25);
    margin: 0.125rem 0.125rem 0.125rem 0;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    /* display: flex;
    align-items: center; */
}



a.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: var(--transition-base);
}

a.btn:hover:after {
    background-color: rgba(255, 255, 255, 0.1);
}

a.btn:hover {
    box-shadow: var(--shadow-md);
}

a.btn.acls-primary {
    background: var(--gradient-acls-brand);
    color: white;
    border: none;
}

a.btn.acls-primary-light {
    background: var(--gradient-acls-brand-light);
    color: var(--acls-brand);
    border: rgba(var(--acls-brand-rgb), 0.3) 2px solid;
}

a.btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* HUBSPOT FORM */

.hsfc-Step .hsfc-Step__Content {
    padding: 0 !important;
}

/* Header / Navigation */

.topnav {
    overflow: visible;
    background-color: white;
    height: 5rem;
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 1rem;
}

.topnav-wrapper {
    max-width: var(--container-max-width);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acls-nav-logo {
    line-height: 0;
}

.nav-items {
    display: flex;
    gap: 0.5rem;
}
  
.topnav .nav-items a {
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 14px;
    height: 40px;
    border-radius: 99rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
}
  
.topnav .nav-items a:hover {
    background-color: #ffdec680;
    color: black;
}
  
.topnav .nav-items a.active,
.topnav .nav-items button.active {
    background-color: #FFDEC6;
    color: black;
    gap: 0.5rem;
}

.nav-item-dropdown {
    position: relative;
    display: inline-block;
  }
  
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px;
    border-radius: 99rem;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    background: transparent;
    font-size: var(--fs-100);
    margin: 0;
}

.dropdown-toggle:hover {
    background-color: #ffdec680;
    box-shadow: none;
}
  
.icon-chevron {
    transition: transform 0.2s ease;
}

.dropdown-menu li a[target="_blank"]:after {
    content: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
  
.nav-item-dropdown:hover .icon-chevron {
    transform: rotate(180deg);
}
  
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 0.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    width: max-content;
    z-index: 1000;
    white-space: nowrap;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
}
  
.dropdown-menu li {
    list-style: none;
    margin-bottom: 0.125rem;
}
  
.dropdown-menu li:last-child {
    margin-bottom: 0;
}
  
.dropdown-menu a {
    color: inherit;
    text-decoration: none;
    position: relative;
}
  
.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile hamburger nav */

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1100;
}
  
.hamburger {
    display: block;
    width: 24px;
    height: 24px;
    fill: var(--primary);
    /* background: black; */
    position: relative;
}

.hamburger::before {
    top: -8px;
}
.hamburger::after {
    top: 8px;
}

.cta-buttons {
    display: flex;
    width: auto;
}

.acls-nav-logo-full {
    display: block;
}

.acls-nav-logo-mark {
    display: none;
}

@media (max-width: 960px) {

    .cta-buttons {
        width: 100%;
        justify-content: end;
    }

    .acls-nav-logo-full {
        display: none;
    }

    .acls-nav-logo-mark {
        display: block;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        height: 40px;
        min-width: 40px;
        padding: 0.5rem;
        margin: 0;
    }

    .nav-items {
        flex-direction: column;
        gap: 1rem;
        background: white;
        padding: 1rem;
        position: absolute;
        top: 5rem;
        right: 0;
        width: 100%;
        /* max-width: 320px; */
        box-shadow: 0 8px 12px rgba(0,0,0,0.1);
    }

    /* Initial hidden state */
    .nav-items {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
        pointer-events: none;
    }

    .nav-items.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        transition-delay: 0s;
        pointer-events: auto;
        width: 100%;
        max-width: 100vw;
        border-radius: 0 0 2rem 2rem;
    }

    .dropdown-toggle {
        font-size: var(--fs-400);
    }
  
    .topnav .nav-items a {
        font-size: var(--fs-400);
    }

    a.btn {
        padding-inline: 0.75rem;
    }
}

.hamburger rect {
    transition: transform 0.3s ease, opacity 0.3s ease, rotate 0.3s ease;
    transform-origin: center;
}
  
.hamburger.open rect:nth-child(1) {
    transform-origin: 12px 4px;
    transform: translateY(8px) rotate(45deg);
}
  
.hamburger.open rect:nth-child(2) {
    opacity: 0;
    transform: scale(-0.5, 1);
    transform-origin: center;
    rotate: 180deg;
}
  
.hamburger.open rect:nth-child(3) {
    transform-origin: 12px 20px;
    transform: translateY(-8px) rotate(-45deg);
}





/* --- CUSTOM ACLS STUFF --- */

.brand-outline-light {
    border: rgba(var(--acls-brand-rgb), 0.3) 2px solid;
}

/* Home */
.acls-logomark-hero {
    position: absolute;
    bottom: 0;
    right: 3%;
    height: 90%;
    width: auto;
    mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.acls-hero-img {
    display: none;
}

@media (min-width: 768px) {
    .acls-hero-img {
        display: block;
        position: absolute;
        bottom: 0;
        right: 5%;
        height: 80%;
        width: auto;
    }
}

.home-hero-h1 {
    max-width: 13ch;
    text-wrap: balance;
}

.value-prop-wrapper {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
    max-width: 1200px;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .value-prop-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .value-prop-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* .value-prop-img {
    aspect-ratio: 1/1;
    width: 4rem;
    background: var(--gradient-acls-brand);
    border-radius: var(--border-radius-lg);
    margin: auto;
} */

svg.value-prop-img {
    aspect-ratio: 1/1;
    width: 4rem;
    stroke: var(--acls-brand);
    border-radius: var(--border-radius-lg);
    margin: auto;
}

.value-prop-copy {
    font-weight: var(--font-weight-medium);
    text-wrap: balance;
    line-height: var(--line-height-md);
    text-align: center;
}

.value-prop-access-wrapper {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
    max-width: 1200px;
    padding: 3rem 0;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .value-prop-access-wrapper {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .value-prop-access-wrapper {
        justify-content: center;
    }
}

.value-prop-access-container {
    text-align: center;
    max-width: 18rem;
}

.value-prop-access-img {
    aspect-ratio: 1/1;
    width: 100%;
    background: var(--gradient-acls-yellow-light);
    border-radius: var(--border-radius-xl);
    margin: auto;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.acls-home-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}

.acls-section .acls-alert-light {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background-color: var(--acls-orange-100);
}

.acls-section .acls-alert-light > *:first-child {
    margin-top: 0;
}

.acls-section .acls-container > h1:first-child,
.acls-section .acls-container > h2:first-child,
.acls-section .acls-container > h3:first-child,
.acls-section .acls-container > h4:first-child,
.acls-section .acls-container > h5:first-child,
.acls-section .acls-container > h6:first-child,
.acls-section .acls-container > p:first-child {
  margin-top: 0;
}

.acls-section .acls-container > h1:last-child,
.acls-section .acls-container > h2:last-child,
.acls-section .acls-container > h3:last-child,
.acls-section .acls-container > h4:last-child,
.acls-section .acls-container > h5:last-child,
.acls-section .acls-container > h6:last-child,
.acls-section .acls-container > p:last-child {
  margin-bottom: 0;
}

/* Learning Topics */

.acls-standard-h2:has(+ p) {
    margin-bottom: 0;
}

#standard-1 > .acls-standard-h2 {
    margin-top: 0;
}

.acls-resource-card {
    padding: calc(var(--spacing-base) * 0.5);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light);
    align-items: center;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.acls-resource-thumbnail {
    aspect-ratio: 16 / 9;
    height: 3rem;
    border-radius: var(--border-radius);
}

.acls-resource-thumbnail-sm {
    height: 2rem;
    border-radius: var(--border-radius);
}

.acls-resource-info > * {
    display: inline;
    alignment-baseline: baseline;
}

.acls-resource-info {
    line-height: 1.2;
}

.acls-resource-card .acls-resource-title {
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    font-size: var(--fs-200);
}

.acls-resource-info p {
    font-weight: var(--font-weight-normal);
    color: var(--secondary);
    font-size: var(--fs-200);
}

.acls-learning-topics-wrapper {
    display: flex;
    gap: 3rem;
}

.acls-standard-wrapper {
    margin-left: 2rem;
}

.acls-learning-topics-container {
    flex-grow: 1;
}

.acls-learning-topics-scrollspy {
    position: sticky;
    display: block;
    top: 5rem;
    height: min-content;
}

.acls-learning-topics-scrollspy > * {
    display: block;
}

.acls-scrollspy-link {
    margin-bottom: 0.5rem;
}

[id^="standard-"] {
    scroll-margin-top: 6rem; /* Adjust based on your sticky nav height */
}

/* Contact Us */

.form-grid-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        
    }
}

.placeholder-img-section {
    border-radius: var(--border-radius-xl);
    background: var(--gradient-acls-yellow-light);
}


/* Footer */

.footer-links-wrapper {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-links-wrapper {
        grid-template-columns: repeat(2, 1fr);
        
    }
}

@media (min-width: 1024px) {
    .footer-links-wrapper {
        grid-template-columns: repeat(4, 1fr);
        padding: 6rem 0;
    }
}

.social-logo-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-logo-wrapper a {
    color: transparent;
    text-decoration: none;
    transition: none;
    position: relative;
    height: min-content;
    line-height: 0;
}

.social-logo-wrapper a:hover {
    color: transparent;
}

.social-logo-wrapper a:before {
    content: none;
}

.social-logo-wrapper a:hover:before {
    transform: none;
}




/* --- 6. UTILITIES --- */

/* Typography */

.text-wrap-balance {
    text-wrap: balance;
}

.max-ch {
    max-width: 65ch;
}

/* Font Weight */

.fw-normal {
    font-weight: var(--font-weight-normal);
}

.fw-medium {
    font-weight: var(--font-weight-medium);
}

.fw-bold {
    font-weight: var(--font-weight-bold);
}

/* Font Color */
.text-muted {
    color: var(--secondary);
}

.text-brand {
    color: var(--acls-brand);
}




/* Display */

.d-flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.d-block {
    display: block;
}

.position-relative {
    position: relative;
}

/* Margins */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-6 {
    margin-top: 4rem;
}

/* Padding */

.pb-0 {
    padding-bottom: 0;
}

/* Colours */
.bg-acls-orange-100 {
    background-color: var(--acls-orange-100);
}