/* Footer wrapper */
.footer {
    background-color: #f5f5f5;
    padding-top: 50px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 2fr;
    gap: 48px;
    align-items: start;
    padding: 50px 20px;
}

/* Logo - sized with explicit min-width so no parent container can shrink it */
.footer-logo {
    display: inline-block;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-logo img {
    display: block;
    width: 260px;
    min-width: 260px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Link columns */
.link-col h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.link-col ul {
    list-style: none;
    padding: 0;
}

.link-col ul li {
    margin-bottom: 14px;
}

.link-col ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-col ul li a:hover {
    color: #2d4cff;
}

/* Contact column */
.contact-col p {
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-col a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

/* Form */
.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 14px;
}

.wpcf7-form br {
    display: none;
}

.wpcf7-form p {
    margin: 0;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    margin: 0;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
}

.wpcf7-form input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #1a1a1a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.wpcf7-form input:focus {
    border-color: #2d3a9c;
}

.form-right {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.wpcf7-form-control-wrap {
    width: 100%;
}

.wpcf7-form textarea {
    display: block;
    width: 100%;
    height: 108px;
    padding: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #1a1a1a;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.wpcf7-form textarea:focus {
    border-color: #2d3a9c;
}

/* Privacy notice & submit row */
.form-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.privacy-notice {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.5;
}

.privacy-notice a {
    color: #1a1a1a;
    text-decoration: underline;
    transition: color 0.1s ease-in;

    @media (hover: hover) {
        &:hover {
            color: #2d4cff;
        }
    }
}

.submit-btn {
    background-color: #d89935;
    color: #fff;
    border: none;
    padding: 12px 48px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background-color: #c28a2c;
}

/* Tablet */
@media (max-width: 1200px) {
    .footer-inner {
        grid-template-columns: 260px 1fr;
        gap: 36px;
    }

    .contact-col {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 40px;
    }

    .footer-logo {
        grid-column: 1 / -1;
    }

    .contact-col {
        grid-column: 1 / -1;
    }

    .wpcf7-form {
        grid-template-columns: 1fr;
    }

    .form-right textarea {
        height: 100px;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .footer-logo img {
        width: 200px;
    }

    .link-col h3 {
        font-size: 16px;
    }

    .contact-col p {
        font-size: 14px;
    }
}

/* Dark disclaimer bar */
.disclaimer-bar {
    background-color: #2d2d2d;
    color: #d0d0d0;
    padding: 44px 20px 32px;
}

.disclaimer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-text {
    font-size: 14px;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 24px;
}

.copyright {
    font-size: 14px;
    color: #d0d0d0;
    margin-top: 16px;
}

/* Tablet */
@media (max-width: 900px) {
    .disclaimer-bar {
        padding: 36px 24px 28px 24px;
    }

    .disclaimer-text {
        font-size: 13px;
    }

    .copyright {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .disclaimer-bar {
        padding: 30px 16px 24px 16px;
    }

    .disclaimer-text {
        font-size: 12px;
        line-height: 1.65;
        text-align: left;
    }

    .copyright {
        font-size: 12px;
    }
}

.header {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

@media (min-width: 901px) {
    .logo {
        margin-left: -55px;
    }
}

.logo img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 100%;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #2d4cff;
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    margin-left: 2px;
    transition: transform 0.2s ease;
    display: inline-block;
}

/* ---------- Dropdown (desktop) ---------- */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item > .nav-link {
    /* The clickable Reviews link itself */
}

/* The mobile-only arrow button is hidden on desktop */
.submenu-toggle {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, margin-top 0.18s ease;
    z-index: 1001;
}

/* Open the dropdown on hover, focus-within (keyboard), or explicit .open class */
.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu,
.nav-item.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 0;
}

/* Flip the arrow when the menu is open */
.nav-item:hover > .nav-link .dropdown-arrow,
.nav-item:focus-within > .nav-link .dropdown-arrow,
.nav-item.open > .nav-link .dropdown-arrow {
    transform: rotate(225deg);
    margin-top: 2px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f5f7fd;
    color: #2d4cff;
}

/* Burger button - hidden by default */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    position: relative;
    z-index: 20;
}

.burger-btn span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2.5px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.burger-btn span:nth-child(1) { top: 8px; }
.burger-btn span:nth-child(2) { top: 15px; }
.burger-btn span:nth-child(3) { top: 22px; }

/* Burger active state (X) */
.burger-btn.active span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
}

/* Tablet */
@media (max-width: 900px) {
    .header {
        padding: 20px 32px;
    }

    .nav {
        gap: 32px;
    }

    .nav a {
        font-size: 16px;
    }
}

/* Mobile - burger appears, nav becomes a vertical stack */
@media (max-width: 640px) {
    .header {
        padding: 14px 20px;
    }

    .logo img {
        height: 40px;
    }

    /* Show burger */
    .burger-btn {
        display: block;
    }

    /* Hide nav by default on mobile; reveal when .open is toggled */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background-color: #fff;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }

    .nav.open {
        max-height: 600px;
    }

    .nav > a {
        padding: 16px 24px;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav > a:last-child {
        border-bottom: none;
    }

    /* Reviews item on mobile: link on the left, arrow button on the right */
    .nav-item {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .nav-item .nav-link {
        flex: 1 1 auto;
        padding: 16px 24px;
        font-size: 16px;
    }

    /* Hide the inline arrow inside the Reviews link on mobile —
       the separate toggle button below handles expansion */
    .nav-item .nav-link .dropdown-arrow {
        display: none;
    }

    /* Show the mobile-only submenu toggle button */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid #f0f0f0;
        cursor: pointer;
        padding: 0 20px;
        flex: 0 0 auto;
        color: #1a1a1a;
    }

    .submenu-toggle .dropdown-arrow {
        margin: 0;
    }

    .nav-item.open .submenu-toggle .dropdown-arrow {
        transform: rotate(225deg);
        margin-top: 4px;
    }

    /* Mobile dropdown = accordion submenu below the Reviews row */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
        background-color: #f9fafc;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Disable hover-triggered open on mobile to avoid sticky menus on touch */
    .nav-item:hover > .dropdown-menu,
    .nav-item:focus-within > .dropdown-menu {
        max-height: 0;
    }

    .nav-item.open > .dropdown-menu {
        max-height: 400px;
    }

    /* On mobile we do NOT want the desktop arrow rotation on hover/focus */
    .nav-item:hover > .nav-link .dropdown-arrow,
    .nav-item:focus-within > .nav-link .dropdown-arrow {
        transform: rotate(45deg);
        margin-top: -4px;
    }

    .dropdown-menu a {
        padding: 14px 40px;
        font-size: 15px;
        border-bottom: 1px solid #eef0f4;
        white-space: normal;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .header {
        padding: 12px 16px;
    }

    .logo img {
        height: 34px;
    }
}
