:root {
    --tla-accent: #FCD233;
    --tla-accent-dark: #d9a800;
    --tla-ink: #1f2330;
    --tla-muted: #5b6172;

    /* Animated dot palette */
    --dot-sand: #f5cf81;
    --dot-navy: #1c3451;
    --dot-teal: #54c3c0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--tla-ink);
    overflow-x: hidden;
    background: linear-gradient(to bottom right, #f0f0f0 0%, #dedede 100%);
    background-attachment: fixed;
}

/* Navbar and footer styling lives in css/site-chrome.css, shared by every layout. */

.nav-item-color .btn-tla-outline {
    color: #000000;
    border-color: #000000;
    background: #f7d140;
}

.nav-item-color .btn-tla-outline:hover {
    color: #000000;
    border-color: #000000;
    background: #ffffff;
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Homepage (CMS-driven) blocks — everything centres */
.homepage-title {
    text-align: center;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
}

.homepage-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.homepage-panel-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.homepage-panel-text {
    width: 100%;
}

.homepage-panel-text :last-child {
    margin-bottom: 0;
}

.homepage-panel-text img,
.homepage-panel-text iframe {
    max-width: 100%;
}

/* Video / YouTube / PDF frames keep a tidy ratio */
.homepage-panel-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #444e57;
    border-radius: 10px;
    overflow: hidden;
}

.homepage-panel-frame iframe,
.homepage-panel-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.homepage-panel-pdf {
    aspect-ratio: 3 / 4;
    background: #fff;
}

.homepage-panel-audio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    padding: 1.5rem 2rem;
    background: #f4f5f7;
    border: 1px solid #444e57;
    border-radius: 10px;
}

.homepage-panel-audio audio {
    width: 100%;
    max-width: 420px;
}

.homepage-panel-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.homepage-bottom {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #d7d3e6;
    border-radius: 12px;
}

.homepage-bottom :last-child {
    margin-bottom: 0;
}

.homepage-bottom img {
    max-width: 100%;
    height: auto;
}

/* Section buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-tla {
    border-radius: 8px 8px 8px 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: var(--tla-ink);
    background: #dedede;
    border: 2px solid var(--tla-accent);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-tla:hover {
    color: #FCD233;
    background: #444e57;
    border-color: #FCD233;
    transform: translateY(-2px);
}

.btn-tla-outline {
    border-radius: 8px 8px 8px 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: var(--tla-ink);
    background: transparent;
    border: 2px solid #d7d3e6;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-tla-outline:hover {
    color: var(--tla-accent-dark);
    border-color: var(--tla-accent);
    transform: translateY(-2px);
}

/* Decorative animated dots */
.dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.dot {
    position: absolute;
    border-radius: 50%;
    background: var(--dot-sand);
    opacity: 0.7;
    animation: dot-float 12s ease-in-out infinite;
}

/* Cycle the three brand colours across the dots */
.dot:nth-child(3n + 1) { background: var(--dot-sand); }
.dot:nth-child(3n + 2) { background: var(--dot-navy); }
.dot:nth-child(3n)     { background: var(--dot-teal); }

.dot:nth-child(1)  { top: 12%; left: 8%;  width: 26px; height: 26px; animation-delay: 0s;    animation-duration: 11s; }
.dot:nth-child(2)  { top: 22%; left: 82%; width: 44px; height: 44px; animation-delay: -2s;   animation-duration: 14s; opacity: 0.5; }
.dot:nth-child(3)  { top: 70%; left: 15%; width: 20px; height: 20px; animation-delay: -4s;   animation-duration: 9s;  }
.dot:nth-child(4)  { top: 80%; left: 70%; width: 34px; height: 34px; animation-delay: -1s;   animation-duration: 13s; opacity: 0.6; }
.dot:nth-child(5)  { top: 40%; left: 50%; width: 16px; height: 16px; animation-delay: -6s;   animation-duration: 10s; opacity: 0.45; }
.dot:nth-child(6)  { top: 15%; left: 40%; width: 24px; height: 24px; animation-delay: -3s;   animation-duration: 15s; }
.dot:nth-child(7)  { top: 55%; left: 90%; width: 30px; height: 30px; animation-delay: -5s;   animation-duration: 12s; opacity: 0.55; }
.dot:nth-child(8)  { top: 88%; left: 35%; width: 18px; height: 18px; animation-delay: -7s;   animation-duration: 8s;  }
.dot:nth-child(9)  { top: 30%; left: 25%; width: 40px; height: 40px; animation-delay: -2.5s; animation-duration: 16s; opacity: 0.4; }
.dot:nth-child(10) { top: 62%; left: 60%; width: 22px; height: 22px; animation-delay: -8s;   animation-duration: 11s; }
.dot:nth-child(11) { top: 6%;  left: 62%; width: 36px; height: 36px; animation-delay: -1.5s; animation-duration: 17s; opacity: 0.45; }
.dot:nth-child(12) { top: 48%; left: 4%;  width: 52px; height: 52px; animation-delay: -9s;   animation-duration: 13s; opacity: 0.32; }
.dot:nth-child(13) { top: 85%; left: 88%; width: 28px; height: 28px; animation-delay: -4.5s; animation-duration: 15s; opacity: 0.5; }
.dot:nth-child(14) { top: 4%;  left: 20%; width: 20px; height: 20px; animation-delay: -6.5s; animation-duration: 12s; opacity: 0.55; }
.dot:nth-child(15) { top: 36%; left: 71%; width: 60px; height: 60px; animation-delay: -3.5s; animation-duration: 19s; opacity: 0.28; }
.dot:nth-child(16) { top: 92%; left: 52%; width: 24px; height: 24px; animation-delay: -8.5s; animation-duration: 10s; opacity: 0.5; }
.dot:nth-child(17) { top: 66%; left: 33%; width: 32px; height: 32px; animation-delay: -2s;   animation-duration: 14s; opacity: 0.4; }
.dot:nth-child(18) { top: 26%; left: 94%; width: 48px; height: 48px; animation-delay: -7.5s; animation-duration: 18s; opacity: 0.3; }

@keyframes dot-float {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(18px, -24px); }
    50%  { transform: translate(-12px, -40px); }
    75%  { transform: translate(-22px, -14px); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .dot {
        animation: none;
    }
}

/* Footer */
footer {
    background: #2b2b2b;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Thin the field out on small screens so the big dots don't crowd content */
    .dot:nth-child(2),
    .dot:nth-child(7),
    .dot:nth-child(9),
    .dot:nth-child(12),
    .dot:nth-child(15),
    .dot:nth-child(18) {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .homepage-title {
        font-size: 2.4rem;
    }
}
