﻿/*
Theme Name: My Custom Theme
Description: A custom WordPress theme.
Version: 1.0.0
*/


/* Main Header */
.site-header {
    width: 100%;
    background-color: #1d382d;
    padding: 7px 40px;
    box-sizing: border-box;
}

/* Header Container */
.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo Section */
.site-logo {
    flex: 0 0 190px;
}

.site-logo a {
    display: inline-block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.site-logo img {
    max-width: 190px;
    max-height: 67px;
    width: auto;
    height: auto;
}

/* Navigation Section */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Menu List */
.header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 55px;

    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu Items */
.header-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Menu Links */
.header-menu li a {
    position: relative;
    display: block;
    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
    padding: 10px 0;

    transition: color 0.3s ease;
}

/* Hover Effect */
.header-menu li a:hover {
    color: #c5d8ca;
}

/* Highlight the current page and its menu parent. */
.header-menu > li.current-menu-item > a,
.header-menu > li.current_page_item > a,
.header-menu > li.current-menu-parent > a,
.header-menu > li.current-menu-ancestor > a,
.header-menu > li.current_page_ancestor > a,
.header-menu a[aria-current="page"] {
    color: #dcebb3;
}

.header-menu > li.current-menu-item > a::after,
.header-menu > li.current_page_item > a::after,
.header-menu > li.current-menu-parent > a::after,
.header-menu > li.current-menu-ancestor > a::after,
.header-menu > li.current_page_ancestor > a::after,
.header-menu a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: #c5d88a;
    content: "";
}

.header-menu .sub-menu .current-menu-item > a,
.header-menu .sub-menu .current_page_item > a,
.header-menu .sub-menu a[aria-current="page"] {
    background: #345344;
    color: #dcebb3;
}

/* Responsive Design */
@media (max-width: 991px) {

    .site-header {
        padding: 15px 20px;
    }

    .header-container {
        gap: 20px;
    }

    .header-menu {
        gap: 20px;
    }

}

@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        flex: auto;
    }

    .main-navigation {
        width: 100%;
        overflow: visible;
        justify-content: flex-start;
    }

    .header-menu {
        justify-content: flex-start;
        gap: 25px;
        width: max-content;
        max-width: calc(100% - 160px);
        overflow-x: auto;
        flex: 0 1 auto;
    }

}


/* Parent Menu Item */
.header-menu > li {
    position: relative;
}

/* Hide Dropdown Menu */
.header-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 200px;
    background-color: #1d382d;

    padding: 8px 0;
    margin: 0;

    list-style: none;
    z-index: 9999;

    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Show Dropdown on Hover */
.header-menu > li:hover > .sub-menu,
.header-menu > li:focus-within > .sub-menu {
    display: block;
}

/* Dropdown Items */
.header-menu .sub-menu li {
    display: block;
    width: 100%;
    position: relative;
}

/* Dropdown Links */
.header-menu .sub-menu li a {
    display: block;
    padding: 11px 18px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}

/* Dropdown Hover */
.header-menu .sub-menu li a:hover {
    background-color: #345344;
    color: #ffffff;
}

/* Page-specific editorial sections migrated from the content brief. */
.additional-copy {
    box-sizing: border-box;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem clamp(3rem, 7vw, 6rem);
    background: #f4f2eb;
}

.additional-copy-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(calc(1120px + clamp(56px, 10vw, 112px)), 100%);
    margin: 0 auto;
}

.additional-copy-item {
    box-sizing: border-box;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(29, 56, 45, 0.12);
    border-radius: 1rem;
    background: #fff;
}

.additional-copy-item h2 {
    margin: 0 0 1rem;
    color: #1d382d;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.25;
}

.additional-copy-item p {
    margin: 0 0 1rem;
    color: #39463f;
    font-size: 1rem;
    line-height: 1.75;
}

.additional-copy-item p:last-child {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .additional-copy {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .additional-copy-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Second Level Dropdown */
.header-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Nested Dropdown Hover */
.header-menu .sub-menu li:hover > .sub-menu,
.header-menu .sub-menu li:focus-within > .sub-menu {
    display: block;
}
