/* ===============================================
   AURELIA LANDING PAGE - MAIN STYLESHEET
   =============================================== */

/* -----------------------------------------------
   1. RESET & BASE STYLES
   ----------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
}

/* -----------------------------------------------
   2. TYPOGRAPHY & LINKS
   ----------------------------------------------- */

a {
    color: var(--link);
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:visited {
    color: var(--link-visited);
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

h2 {
    text-align: center;
    margin-bottom: var(--s-4);
}

blockquote {
    font-weight: bold;
    font-size: var(--fs-blockquote);
    margin-inline-start: 0;
    margin-inline-end: 0;
}

/* -----------------------------------------------
   3. LAYOUT UTILITIES
   ----------------------------------------------- */

.container {
    width: min(92%, 1200px);
    margin-inline: auto;
}

.section {
    padding-block: var(--s-4);
}

/* Remove bottom margin from last elements for consistent gaps */
.section .split p:last-child {
    margin-bottom: 0 !important;
}

/* -----------------------------------------------
   4. NAVIGATION & TOPBAR
   ----------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    transition: transform .4s ease;
}

.topbar.is-hidden {
    transform: translateY(-100%);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-3) 0;
}

.topbar__inner a,
.topbar__inner a:visited,
.topbar__inner a:hover,
.topbar__inner a:active,
.topbar__inner a:focus {
    text-decoration: none;
}

.topbar__logo h1 {
    margin: 0;
    padding: 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    color: var(--heading);
    white-space: nowrap;
}

.topbar__nav {
    display: flex;
    gap: var(--s-4);
}

.topbar__nav a {
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-main);
}

.topbar__nav a:visited {
    color: var(--text-main);
}

.topbar__nav a:hover {
    color: var(--primary);
}

/* -----------------------------------------------
   5. MOBILE NAVIGATION
   ----------------------------------------------- */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu:focus,
.burger-menu:hover {
    outline: none;
    background: transparent;
    border-color: transparent;
}

.burger-menu__line {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Burger animation states */
.burger-menu.is-open .burger-menu__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
}

.burger-menu.is-open .burger-menu__line:nth-child(2) {
    opacity: 0;
}

.burger-menu.is-open .burger-menu__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 280px;
    min-width: 200px;
    height: 100vh;
    background: var(--surface);
    padding: var(--s-4) var(--s-3);
    padding-top: calc(var(--s-6) + var(--s-2));
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.is-open .mobile-menu {
    transform: translateX(0);
}

.mobile-menu__link {
    display: block;
    padding: var(--s-2) var(--s-2);
    font-weight: 600;
    font-size: var(--fs-h4);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu__link:visited {
    color: var(--text-main);
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: var(--bg-alt);
    color: var(--primary);
}

/* -----------------------------------------------
   6. HERO SECTIONS
   ----------------------------------------------- */

/* Mobile Hero */
.hero-mobile {
    display: flex;
    flex-direction: column;
    height: 85vh;
    margin-bottom: var(--s-4);
}

.hero-mobile__video {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-mobile__video video {
    height: 100%;
    min-height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-mobile__text {
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: var(--bg-alt);
    padding: var(--s-3) var(--s-2);
    padding-top: 7vh;
    box-sizing: border-box;
}

.hero-mobile__text h2 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: bold;
    font-size: 8vw;
    line-height: 1.1;
    margin: var(--s-3) 0;
}

.hero-mobile__text h3 {
    font-family: var(--font-body);
    color: var(--text-main);
    font-weight: bold;
    font-size: 5.5vw;
    line-height: 1.3;
    text-align: center;
    margin: var(--s-3) 0;
    max-width: 80%;
}

/* Desktop Hero */
.hero-desktop {
    position: relative;
    min-height: 90vh;
    display: none;
    place-items: center;
    color: var(--surface);
    text-align: center;
    margin-bottom: var(--s-4);
}

.hero-desktop video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-desktop__panel {
    position: relative;
    width: 840px;
    padding: var(--s-5) var(--s-6);
    margin-inline: auto;
    z-index: 2;
}

.hero-desktop__panel h2,
.hero-desktop__panel h3 {
    font-family: var(--font-body);
    color: var(--text);
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 1);
    margin: 6vh 0;
}

.hero-desktop__panel h2 { 
    font-size: 70px;
    line-height: 1.1;
}

.hero-desktop__panel h3 {
    max-width: 720px;
    font-size: 36px;
    text-align: center;
    margin-inline: auto;
    line-height: 1.2;
}

/* -----------------------------------------------
   7. CONTENT SECTIONS
   ----------------------------------------------- */

/* Split Layout (Philosophy/Audience) */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
}

.split img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    order: 2;
}

.split div {
    order: 1;
}

/* Values Network */
.values-network {
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.values-network img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.1);
}

/* -----------------------------------------------
   8. DIRECTIONS CARDS
   ----------------------------------------------- */

.directions {
    display: grid;
    gap: var(--s-5);
}

.direction-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding: var(--s-4);
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.direction-card h3 {
    margin-top: 0;
}

.direction-card ul {
    list-style: none;
    padding-left: 0;
}

.direction-card li::before {
    content: "\2014";
    margin-right: var(--s-1);
}

.direction-card .btn {
    margin-top: var(--s-5);
}

.dir-media {
    position: relative;
}

.dir-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.dir-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

.direction-card:hover .dir-media video {
    opacity: 1;
}

/* -----------------------------------------------
   9. DATA TABLES
   ----------------------------------------------- */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.usp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-table);
    table-layout: fixed;
}

.usp-table th:first-child,
.usp-table td:first-child {
    width: 20%;
}

.usp-table th:nth-child(2),
.usp-table td:nth-child(2),
.usp-table th:nth-child(3),
.usp-table td:nth-child(3) {
    width: 40%;
}

.usp-table th, 
.usp-table td {
    border: 1px solid var(--separator);
    padding: var(--s-2) var(--s-3);
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.usp-table th {
    background: var(--bg-alt);
    text-align: left;
    font-weight: 600;
}

/* -----------------------------------------------
   10. TEAM SECTION
   ----------------------------------------------- */

.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-5);
}

.team-card {
    background: var(--surface);
    padding: var(--s-4);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    text-align: center;
}

.team-card img {
    width: 200px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-block-end: var(--s-3);
}

.team-card__content {
    text-align: left;
    margin: 0 0;
}

.team-card blockquote {
    text-align: left;
    margin-top: var(--s-4);
}

/* -----------------------------------------------
   11. REVIEWS SECTION
   ----------------------------------------------- */

.reviews-wrapper {
    aspect-ratio: 4/3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-alt);
    isolation: isolate;
    contain: layout size style;
}

.reviews {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    overflow: hidden;
}

.review-slot {
    font-size: var(--fs-reviews);
    font-family: var(--font-heading);
    text-align: center;
    opacity: 0;
    white-space: normal;
    width: 90%;
    line-height: 1.4;
    padding: var(--s-2);
    box-sizing: border-box;
    grid-area: 1 / 1;
    align-self: center;
    justify-self: center;
    max-width: 90%;
    word-wrap: break-word;
    contain: layout style;
}

/* -----------------------------------------------
   12. FORMS & INPUTS
   ----------------------------------------------- */

.lead-form {
    background: var(--surface);
    border-radius: 12px;
    padding: var(--s-4);
    max-width: 600px;
    margin-inline: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.lead-form fieldset {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    border: 0;
    padding: 0;
}

.lead-form label {
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.lead-form input, 
.lead-form select {
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--separator);
    border-radius: 6px;
    font-size: var(--fs-form);
    font-family: inherit;
    font-weight: normal;
}

.lead-form button {
    margin-top: var(--s-4);
}

/* Multi-select Component */
.multi-select {
    position: relative;
}

.multi-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
}

.multi-select__input {
    flex: 1;
    cursor: pointer;
    background: var(--surface);
    padding: var(--s-2) calc(var(--s-3) + 20px) var(--s-2) var(--s-3);
    border: 1px solid var(--separator);
    border-radius: 6px;
    font: inherit;
}

.multi-select__arrow {
    position: absolute;
    right: var(--s-3);
    pointer-events: none;
    color: var(--text-muted);
    font-size: var(--fs-small);
    transition: transform 0.2s ease;
}

.multi-select.open .multi-select__arrow {
    transform: rotate(180deg);
}

.multi-select.open .multi-select__input {
    border-radius: 6px 6px 0 0;
    border-bottom-color: transparent;
}

.multi-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--separator);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.multi-select.open .multi-select__dropdown {
    display: block;
}

.multi-select__option {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.2s ease;
    text-align: left;
    flex-direction: row !important;
    flex-wrap: nowrap;
}

.multi-select__option:hover {
    background: var(--bg-alt);
}

.multi-select__option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

.multi-select__option span {
    flex: 1;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: normal;
}

/* -----------------------------------------------
   13. MODALS & POPUPS
   ----------------------------------------------- */

.form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.form-popup.show {
    display: flex;
}

.form-popup__content {
    background: var(--surface);
    border-radius: 12px;
    padding: var(--s-5);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    margin: var(--s-4);
}

.form-popup__message {
    margin-bottom: var(--s-4);
    font-size: var(--fs-h4);
    color: var(--text-main);
}

.form-popup__button {
    background: var(--primary);
    color: var(--btn-text);
    border: none;
    border-radius: 6px;
    padding: var(--s-2) var(--s-4);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-popup__button:hover {
    background: var(--primary-hover);
}

/* -----------------------------------------------
   14. FOOTER
   ----------------------------------------------- */

footer {
    background: var(--text-main);
    color: var(--btn-text);
    padding: var(--s-6) 0;
    margin-top: var(--s-6);
}

footer a,
footer a:visited {
    color: var(--gold);
}

footer a:hover,
footer a:visited:hover {
    color: var(--link-hover);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    order: 1;
}

.footer-left p:first-child {
    margin-top: 0;
    margin-bottom: 0;
}

.footer-left img {
    border-radius: 4px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    order: 2;
}

.footer-right nav {
    margin-top: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    font-size: var(--fs-footer);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    font-size: var(--fs-footer);
}

.footer-small {
    order: 3;
    text-align: left;
    margin-top: var(--s-4);
    font-size: var(--fs-small);
}

/* ===============================================
   15. RESPONSIVE BREAKPOINTS
   =============================================== */

/* Mobile Hero Font Scaling */
@media (min-width: 500px) {
    .hero-mobile__text h2 {
        font-size: 7.5vw;
    }
    .hero-mobile__text h3 {
        font-size: 5vw;
    }
}

@media (min-width: 600px) {
    .hero-mobile__text h2 {
        font-size: 7vw;
    }
    .hero-mobile__text h3 {
        font-size: 4.5vw;
    }
}

@media (min-width: 700px) {
    .hero-mobile__text h2 {
        font-size: 6.5vw;
    }
    .hero-mobile__text h3 {
        font-size: 4vw;
    }
}

@media (max-width: 767px) and (min-width: 720px) {
    .hero-mobile__text h2 {
        font-size: 6vw;
    }
    .hero-mobile__text h3 {
        font-size: 3.5vw;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .topbar__nav--desktop {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .usp-table th, 
    .usp-table td {
        padding: var(--s-1) var(--s-2);
        line-height: 1.3;
    }
}

/* Tablet & Desktop Layouts */
@media (min-width: 768px) {

    .split h2 {
        text-align: left;
    }

    /* Navigation */
    .burger-menu,
    .mobile-menu-overlay {
        display: none;
    }
    
    /* Hero Sections */
    .hero-mobile {
        display: none;
    }
    
    .hero-desktop {
        display: grid;
    }
    
    /* Split Layouts */
    .split {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--s-5);
    }
    
    .split img,
    .split div {
        order: unset;
    }
    
    .split.reverse {
        direction: rtl;
    }

    .split.reverse > * {
        direction: ltr;
    }
    
    /* Values Network */
    .values-network {
        aspect-ratio: 16/7;
    }
    
    .values-network img {
        height: 100%;
        width: auto;
        max-width: 100%;
        transform: scale(1.2);
    }
    
    /* Direction Cards */
    .direction-card {
        grid-template-columns: 320px 1fr;
        align-items: center;
    }
    
    .dir-media video {
        position: absolute;
        inset: 0;
        object-fit: cover;
    }
    
    /* Reviews */
    .reviews-wrapper {
        aspect-ratio: 40/9;
    }
    
    .review-slot {
        width: 80%;
        max-width: 80%;
        line-height: 1.3;
        padding: 0;
    }
    
         /* Team Cards */
     .team-card__content {
         margin-top: var(--s-5);
     }
     
     /* Footer */
     .footer-content {
         display: grid;
         grid-template-columns: 7fr 3fr;
         gap: var(--s-4) var(--s-6);
         align-items: start;
     }
    
    .footer-left,
    .footer-right {
        order: unset;
    }
    
    .footer-right {
        gap: var(--s-6);
    }
    
    .footer-small {
        order: unset;
        text-align: left;
        margin-top: 0;
        grid-column: 1;
        align-self: end;
    }
}

/* Large Desktop Scaling */
@media (min-width: 1201px) {
    .hero-desktop__panel {
        width: min(70vw, 1200px);
    }
    
    .hero-desktop__panel h3 {
        max-width: min(60vw, 800px);
    }
}

@media (min-width: 1850px) {
    .hero-desktop__panel h2 { 
        font-size: 85px;
    }
    
    .hero-desktop__panel h3 {
        font-size: 40px;
    }
}

@media (min-width: 2500px) {
    .hero-desktop__panel h2 { 
        font-size: 100px;
    }
    
    .hero-desktop__panel h3 {
        font-size: 45px;
    }
} 