:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-black: #111111;
    --accent: #ee005d;
    --section-max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.5;
}

h1,
h2,
h3 {
    margin: 0 0 0.8rem;
    line-height: 1.25;
}

p {
    margin: 0 0 1rem;
}

section:not(.hero-section),
.footer-content,
.footer-bottom {
    width: min(100%, var(--section-max-width));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
}

.main-navigation {
    position: relative;
}

.nav-dropdown-btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn:focus-visible {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 0, 93, 0.65);
    box-shadow: 0 12px 24px rgba(238, 0, 93, 0.2);
}

.nav-dropdown-btn:focus-visible {
    outline: none;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-white);
    display: block;
}

.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--accent);
    border-radius: 10px;
    min-width: 230px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
}

.nav-dropdown-menu.active {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    padding: 9px 14px;
}

.nav-dropdown-menu a:hover {
    background: rgba(238, 0, 93, 0.15);
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    background-image: url("../assets/headway-5QgIuuBxKwM-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--section-max-width));
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-section .hero-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    width: min(260px, 46vw);
    height: auto;
    margin: 0;
    display: block;
}

.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    max-width: 960px;
    margin-top: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    opacity: 0.95;
    color: var(--text-white);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

section.purpose-section {
    background: var(--text-white);
    color: var(--text-black);
    padding: 80px 24px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.purpose-content {
    width: min(100%, 920px);
    margin: 0 auto;
    font-size: 1.08rem;
}

.advisory-focus-section {
    padding: 80px 24px;
}

.advisory-focus-section h2,
.reference-engagements-section h2,
.why-work-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1.2rem;
}

.advisory-focus-section h2 {
    text-align: center;
}

.reference-engagements-section h2 {
    text-align: center;
}

.advisory-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 220px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: clamp(26px, 3.2vw, 40px);
}

.advisory-card {
    padding: 1.25rem 1.25rem 1rem;
    border: none;
    min-height: 280px;
}

.advisory-card-top-left { grid-column: 1; grid-row: 1; }
.advisory-card-top-right { grid-column: 3; grid-row: 1; }
.advisory-card-bottom-left { grid-column: 1; grid-row: 2; }
.advisory-card-bottom-right { grid-column: 3; grid-row: 2; }

/* Hard-positioned offsets to guarantee visible spacing updates */
.advisory-card-top-left,
.advisory-card-bottom-left {
    transform: translateX(56px) !important;
}

.advisory-card-top-right,
.advisory-card-bottom-right {
    transform: translateX(56px) !important;
}

@media (max-width: 1200px) {
    .advisory-card-top-left,
    .advisory-card-bottom-left,
    .advisory-card-top-right,
    .advisory-card-bottom-right {
        transform: translateX(28px) !important;
    }
}

.advisory-card h3 {
    color: var(--accent);
    margin-bottom: 0.65rem;
}

.advisory-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.advisory-card li {
    margin-bottom: 0.35rem;
}

.advisory-center-logo-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    align-self: center;
    justify-self: center;
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    z-index: 2;
    pointer-events: none;
}

.advisory-center-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advisory-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.95;
}

.advisory-line-north,
.advisory-line-south {
    width: 2px;
    height: clamp(84px, 11.4vw, 132px);
    left: 50%;
    transform: translateX(-50%);
}

.advisory-line-east,
.advisory-line-west {
    height: 2px;
    width: clamp(84px, 11.4vw, 132px);
    top: 50%;
    transform: translateY(-50%);
}

.advisory-line-north {
    top: calc(-1 * clamp(108px, 13.8vw, 162px));
}

.advisory-line-south {
    bottom: calc(-1 * clamp(108px, 13.8vw, 162px));
}

.advisory-line-east {
    right: calc(-1 * clamp(108px, 13.8vw, 162px));
}

.advisory-line-west {
    left: calc(-1 * clamp(108px, 13.8vw, 162px));
}

section.reference-engagements-section {
    background: var(--text-white);
    color: var(--text-black);
    padding: 80px 24px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.carousel-container {
    width: 100%;
    margin: 0 auto;
}

.reference-banner {
    width: 100%;
    overflow: hidden;
}

.reference-track {
    display: flex;
    width: max-content;
    animation: reference-flow 80s linear infinite;
}

.reference-banner:hover .reference-track {
    animation-play-state: paused;
}

.reference-set {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

.reference-card {
    border: 2px solid var(--accent);
    border-radius: 12px;
    background: #ffffff;
    padding: 1.2rem 1.2rem 1rem;
    width: min(50vw, 560px);
    min-width: 440px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.reference-card h3 {
    margin-bottom: 0.8rem;
}

.reference-card-body {
    height: 100%;
    overflow: hidden;
}

.reference-card-body p {
    margin-bottom: 0.8rem;
}

@keyframes reference-flow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.why-work-section {
    padding: 80px 24px;
}

.why-work-section h2 {
    text-align: center;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tile {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(238, 0, 93, 0.12), rgba(238, 0, 93, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tile:hover,
.tile.active {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 0, 93, 0.65);
    box-shadow: 0 12px 24px rgba(238, 0, 93, 0.2);
}

.tile:hover::before,
.tile.active::before {
    opacity: 1;
}

.tile h3 {
    color: var(--accent);
    margin-bottom: 0.55rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tile p {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tile:hover h3,
.tile.active h3 {
    color: #ffffff;
}

.tile:hover p,
.tile.active p {
    color: #ffffff;
}

section.get-in-touch-section {
    position: relative;
    padding: 80px 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    background-image: url("../assets/OC_Optimized-keith-zhu-qaNcz43MeY8-unsplash-min.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.get-in-touch-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 0;
}

.site-footer {
    background: var(--bg-black);
    padding: 0 24px 28px;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding-bottom: 18px;
}

.footer-address-text {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.footer-address-text a,
.footer-address-text a:link,
.footer-address-text a:visited,
.footer-address-text a:hover,
.footer-address-text a:active {
    color: #ffffff;
    text-decoration: none;
    -webkit-text-fill-color: #ffffff;
}

.footer-info h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.6rem;
    text-align: center;
}

.footer-info {
    text-align: center;
}

.footer-link {
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    border-bottom-color: var(--accent);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    margin-top: 0;
    padding-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-bottom-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-mini-logo {
    width: 54px;
    height: auto;
    opacity: 0.95;
}

.back-to-top-btn {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text-white);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    justify-self: center;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 0, 93, 0.65);
    box-shadow: 0 12px 24px rgba(238, 0, 93, 0.2);
}

.back-to-top-btn:focus-visible {
    outline: none;
}

.footer-separator {
    margin: 0 8px;
    opacity: 0.7;
}

.footer-legal {
    margin: 0;
    text-align: center;
}

.footer-legal .footer-link {
    color: var(--accent);
}

@media (max-width: 900px) {
    .advisory-grid,
    .tiles-container {
        grid-template-columns: 1fr;
    }

    .advisory-grid {
        grid-template-rows: auto;
    }

    .advisory-card-top-left,
    .advisory-card-top-right,
    .advisory-card-bottom-left,
    .advisory-card-bottom-right {
        grid-column: 1;
        grid-row: auto;
        transform: none !important;
    }

    .advisory-card {
        border: none;
        min-height: auto;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .advisory-center-logo-wrap {
        display: none;
    }

    .carousel-container {
        width: 100%;
    }

    .reference-card {
        width: 86vw;
        min-width: 86vw;
        min-height: 380px;
    }

    .footer-bottom-top {
        justify-content: center;
        gap: 10px;
    }

    .footer-content {
        text-align: center;
        gap: 0;
    }

}
