/* THEME: London Executive (Navy & Gold)
   FONTS: 'Merriweather', 'Open Sans'
*/

:root {
    --navy: #14213D;
    --gold: #FCA311;
    --grey-light: #E5E5E5;
    --white: #FFFFFF;
    --black: #000000;
    --bg-paper: #F8F9FA;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;

    --radius: 16px;
    /* 2xl radius requirement */
    --shadow: 0 10px 40px -10px rgba(20, 33, 61, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-paper {
    background-color: var(--bg-paper);
}

.bg-dark {
    background-color: var(--navy);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section__header {
    text-align: center;
}

.section__title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section__desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #555;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--gold);
    color: var(--navy);
}

.btn--primary:hover {
    background-color: #e5940e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.4);
}

.btn--outline {
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn--outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn--text {
    color: var(--navy);
    margin-left: 15px;
    border: 1px solid var(--navy);
    padding: 10px 20px;
    border-radius: 4px;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo__img {
    flex-shrink: 0;
    display: block;
}

.logo__dot {
    color: var(--gold);
}

.nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav__link:hover {
    color: var(--gold);
}

.btn-nav {
    border: 2px solid var(--navy);
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-nav:hover {
    background: var(--navy);
    color: var(--white);
}

/* Mobile Menu & Burger Fix */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.burger span {
    width: 30px;
    height: 3px;
    background-color: var(--navy);
    transition: var(--transition);
}

.nav__close {
    display: none;
    font-size: 2.5rem;
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--navy);
}

@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    /* !!! CRITICAL FIX !!! */
    /* Hide burger when menu is open so it doesn't overlap the close button */
    .burger[aria-expanded="true"] {
        opacity: 0;
        pointer-events: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        font-size: 1.2rem;
    }

    .nav__close {
        display: block;
    }
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--navy);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero__title {
    font-size: 3rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.hero__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 30px;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
}

.hero__card-float {
    position: relative;
}

.hero__card-float img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero__overlay-text {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--gold);
}

.hero__overlay-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__alert {
        justify-content: center;
        border: none;
    }

    .hero__overlay-text {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 80%;
    }
}

/* Features */
.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Masonry Grid (Services) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 250px;
}

.masonry-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid #eee;
}

.masonry-item:hover {
    transform: scale(1.02);
    border-color: var(--gold);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    z-index: 2;
}

.card-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    object-fit: cover;
    opacity: 0.1;
    transition: var(--transition);
    border-radius: var(--radius);
}

.masonry-item:hover .card-img {
    opacity: 0.3;
    transform: scale(1.1);
}

.item-tall {
    grid-column: span 1;
    grid-row: span 2;
    background: var(--navy);
    color: var(--white);
    position: relative;
}

.item-tall .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.item-tall .card-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0.7), rgba(20, 33, 61, 0.9));
}

.item-tall h3 {
    color: var(--gold);
}

.item-tall .link-more {
    color: var(--white);
    text-decoration: underline;
}

.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.row-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.tag {
    background: var(--gold);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    width: fit-content;
}

@media (max-width: 900px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .item-tall,
    .item-wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

    .row-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Reviews */
.reviews-slider {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius);
    flex: 1 1 300px;
    max-width: 400px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-author strong {
    display: block;
    color: var(--gold);
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-details {
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--navy);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-contact .contact-icon {
    color: #8892b0;
}

.form-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--navy);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.1);
}

.error-msg {
    color: #D32F2F;
    font-size: 0.8rem;
    display: block;
    min-height: 18px;
}

.form-check {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    align-items: center;
}

.link-modal {
    color: var(--navy);
    text-decoration: underline;
    padding: 0;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: #0b1221;
    color: #8892b0;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    display: block;
    margin-bottom: 10px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer a,
.footer button {
    color: #8892b0;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.footer a:hover,
.footer button:hover {
    color: var(--gold);
    transition: 0.2s;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #1c2a4a;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--radius);
    padding: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active {
    display: flex;
    transform: translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--grey-light);
    flex-shrink: 0;
}

.modal__header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--navy);
}

.modal__body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.modal__body h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-top: 25px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.modal__body h4:first-child {
    margin-top: 0;
}

.modal__body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal__body ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.modal__body p {
    margin-bottom: 15px;
}

.modal__body strong {
    color: var(--navy);
    font-weight: 600;
}

.modal__close {
    font-size: 2rem;
    color: var(--navy);
    transition: 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
}

.modal__close:hover {
    color: var(--gold);
    background: rgba(252, 163, 17, 0.1);
}

.modal__close:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 320px;
    z-index: 1500;
    transform: translateY(150%);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--navy);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Spinner */
.spinner {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--navy);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}