/* =========================================================
   ADVOCATE HEADER
   Premium / Elegant / Legal
   ========================================================= */

/* ---------------------------------------------------------
   VARIABLES
   --------------------------------------------------------- */

:root {
	--advocate-navy: #171b21;
	--advocate-navy-light: #20252d;
	--advocate-cream: #f7f5ef;
	--advocate-white: #ffffff;
	--advocate-gold: #a9854b;
	--advocate-gold-light: #c5a66b;
	--advocate-text: #202124;
	--advocate-muted: #686868;
	--advocate-border: #dedbd3;

	--advocate-container: 1180px;
}


.adv-header,
.adv-header *,
.adv-header *::before,
.adv-header *::after,
.advocate-topbar,
.advocate-topbar *,
.advocate-topbar *::before,
.advocate-topbar *::after {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   CONTAINER
   --------------------------------------------------------- */

.container {
	width: min(
		calc(100% - 48px),
		var(--advocate-container)
	);

	margin-inline: auto;
}


/* =========================================================
   TOP ANNOUNCEMENT BAR
   ========================================================= */

.advocate-topbar {
	background: var(--advocate-navy);
	color: var(--advocate-white);

	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);

	position: relative;
	z-index: 100;
}

.advocate-topbar__inner {
	min-height: 42px;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 30px;
}

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.advocate-topbar__contact {
	display: flex;
	align-items: center;
	gap: 26px;
}

.advocate-topbar__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;

	color: rgba(255, 255, 255, 0.88);

	text-decoration: none;

	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;

	font-size: 13px;
	font-weight: 400;

	transition:
		color 180ms ease,
		opacity 180ms ease;
}

.advocate-topbar__contact-link:hover {
	color: var(--advocate-white);
}

/* ---------------------------------------------------------
   ICON
   --------------------------------------------------------- */

.advocate-topbar__icon {
	width: 18px;
	height: 18px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 18px;

	color: var(--advocate-gold-light);
}

.advocate-topbar__icon svg {
	width: 100%;
	height: 100%;

	fill: currentColor;
}

/* ---------------------------------------------------------
   RIGHT SIDE
   --------------------------------------------------------- */

.advocate-topbar__right {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* ---------------------------------------------------------
   SOCIAL ICONS
   --------------------------------------------------------- */

.advocate-topbar__social {
	display: flex;
	align-items: center;
	gap: 8px;

	padding-right: 22px;

	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.advocate-topbar__social a {
	width: 30px;
	height: 30px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	color: rgba(255, 255, 255, 0.86);

	text-decoration: none;

	border: 1px solid transparent;
	border-radius: 50%;

	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		transform 180ms ease;
}

.advocate-topbar__social a:hover,
.advocate-topbar__social a:focus-visible {
	color: var(--advocate-white);

	background: rgba(255, 255, 255, 0.08);

	border-color: rgba(255, 255, 255, 0.18);

	transform: translateY(-1px);
}

.advocate-topbar__social svg {
	width: 15px;
	height: 15px;

	fill: currentColor;
}

/* =========================================================
   TOPBAR CONSULTATION
   ========================================================= */

.advocate-topbar__consultation {
	display: inline-flex;
	align-items: center;
	gap: 10px;

	color: var(--advocate-gold-light);

	text-decoration: none;

	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;

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

	letter-spacing: 0.02em;

	transition:
		color 180ms ease,
		transform 180ms ease;
}

.advocate-topbar__consultation:hover {
	color: var(--advocate-white);

	transform: translateY(-1px);
}

.advocate-topbar__calendar {
	width: 20px;
	height: 20px;

	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.advocate-topbar__calendar svg {
	width: 100%;
	height: 100%;

	fill: currentColor;
}

/* =========================================================
   MAIN HEADER
   ========================================================= */

.adv-header {
    --adv-header-bg: #1B2436;
    --adv-header-gold: #96793C;
    --adv-header-gold-light: #b99a5a;
    --adv-header-text: #ffffff;

    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--adv-header-bg);
    color: var(--adv-header-text);
    transition:
        background-color .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

.adv-header.adv-header--home {
    position: absolute;
    top: 60px;
    left: 0;
    background: transparent;
}

.adv-header.adv-header--home.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(27, 36, 54, .96);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.adv-header.adv-header--inner {
    position: absolute;
    left: 0;
    background: transparent;
}

.adv-header .adv-header__inner {
    width: min(calc(100% - 120px), 1420px);
    min-height: 100px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 5px;
}

.adv-header .adv-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.adv-header .adv-brand__mark {
    width: 66px;
    height: 66px;
    border: 1px solid var(--adv-header-gold);
    border-radius: 13px;
    display: grid;
    place-items: center;
}

.adv-header .adv-brand__scale {
    color: var(--adv-header-gold);
    font-size: 31px;
    line-height: 1;
}

.adv-header .adv-brand__text {
    display: grid;
    gap: 3px;
}

.adv-header .adv-brand__text strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: .02em;
}

.adv-header .adv-brand__text small {
    color: var(--adv-header-gold-light);
    font: 500 10px/1.2 Arial, sans-serif;
    letter-spacing: .08em;
}

.adv-header .adv-nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.adv-header .adv-nav__list {
    display: flex;
    align-items: center;
    gap: 39px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.adv-header .adv-nav__list li {
    position: relative;
}

.adv-header .adv-nav__list a {
    color: var(--adv-header-text);
    text-decoration: none;
    text-transform: uppercase;
    font: 500 14px/1 Arial, sans-serif;
    letter-spacing: .02em;
    transition: color .25s ease;
}

.adv-header .adv-nav__list a:hover {
    color: var(--adv-header-gold-light);
}

.adv-header .adv-nav__list .current-menu-item > a {
    color: var(--adv-header-text);
}

.adv-header .adv-nav__list .current-menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--adv-header-gold);
}

.adv-header .adv-header__cta {
    min-height: 40px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #111111;
    background: var(--adv-header-gold);
    text-decoration: none;
    text-transform: uppercase;
    font: 700 13px/1 Arial, sans-serif;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: transform .25s ease, background-color .25s ease;
}

.adv-header .adv-header__cta:hover {
    color: #111111;
    background: var(--adv-header-gold-light);
    transform: translateY(-2px);
}

.adv-header .adv-header__cta-icon {
    font-size: 16px;
}

.adv-header .adv-menu-toggle {
    display: none;
}

/* Tablet / mobile */
@media (max-width: 1180px) {
    .adv-header .adv-header__inner {
        width: min(calc(100% - 50px), 1420px);
    }

    .adv-header .adv-nav {
        gap: 20px;
    }

    .adv-header .adv-nav__list {
        gap: 22px;
    }

    .adv-header .adv-header__cta {
        padding-inline: 17px;
    }
}

/* =========================================================
   TABLET / MOBILE MENU
   ========================================================= */

@media (max-width: 1024px) {

    .adv-header .adv-header__inner {
        min-height: 100px;
        padding: 10px 0;
    }

    /* Hamburger */
    .adv-header .adv-menu-toggle {
        width: 45px;
        height: 45px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 5px;
        border: 1px solid var(--adv-header-gold);
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
    }

    .adv-header .adv-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--adv-header-gold);
        transition: transform .25s ease, opacity .25s ease;
    }

    /* Mobile navigation */
    .adv-header .adv-nav {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        padding: 25px;
        background: rgba(15, 23, 37, .98);
        border: 1px solid rgba(150, 121, 60, .35);
        border-radius: 10px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
        z-index: 1001;
    }

    /* OPEN MENU */
    .adv-header .adv-nav.is-open {
        display: flex;
    }

    /* Menu items */
    .adv-header .adv-nav__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .adv-header .adv-nav__list li {
        padding: 13px 0;
    }

    .adv-header .adv-nav__list a {
        display: block;
        width: 100%;
        font-size: 14px;
    }

    .adv-header .adv-nav__list .current-menu-item::after {
        display: none;
    }

    /* CTA */
    .adv-header .adv-header__cta {
        width: 100%;
    }

    /* Hamburger animation */
    .adv-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .adv-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .adv-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 640px) {
    .adv-header .adv-header__inner {
        width: min(calc(100% - 30px), 1420px);
    }

    .adv-header .adv-brand__mark {
        width: 50px;
        height: 50px;
    }

    .adv-header .adv-brand__text strong {
        font-size: 23px;
    }

    .adv-header .adv-brand__text small {
        font-size: 7px;
    }
}

/* =========================================================
   MOBILE (800px and below) - TOPBAR FIX
   ========================================================= */

@media (max-width: 800px) {

	.advocate-topbar__inner {
		min-height: 40px;
		flex-direction: column;
		justify-content: center;
		padding-block: 8px;
		gap: 8px;
	}

	.advocate-topbar__contact {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: center;
		gap: 14px;
		width: 100%;
	}

	.advocate-topbar__contact-link {
		font-size: 11px;
	}

	.advocate-topbar__icon {
		width: 14px;
		height: 14px;
		flex: 0 0 14px;
	}

	.advocate-topbar__right {
		width: 100%;
		justify-content: center;
	}

	.advocate-topbar__social {
		border-right: 0;
		padding-right: 0;
	}

	.advocate-topbar__location-link {
		display: none !important;
	}

	.site-header__main {
		min-height: 50px;
	}

	.site-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 20px 24px 25px;
		background: var(--advocate-cream);
		border-bottom: 1px solid var(--advocate-border);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
	}

	.site-navigation.is-open {
		display: block;
	}

	.primary-menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-menu > li > a {
		width: 100%;
		padding: 15px 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		font-size: 13px;
	}

	.primary-menu > li > a::after {
		display: none;
	}

	.site-header__consultation {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.container {
		width: min(
			calc(100% - 32px),
			var(--advocate-container)
		);
	}

	.advocate-topbar__social a {
		width: 27px;
		height: 27px;
	}

	.advocate-topbar__social svg {
		width: 14px;
		height: 14px;
	}

	.advocate-topbar__consultation-text {
		font-size: 11px;
	}

	.advocate-topbar__calendar {
		width: 17px;
		height: 17px;
	}

	.site-header__main {
		min-height: 70px;
	}
}

/* =========================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================= */

.advocate-topbar a:focus-visible,
.site-header a:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid var(--advocate-gold-light);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.advocate-topbar *,
	.site-header * {
		transition: none !important;
	}
}

/* =========================================================
   LOGO SIZE
   ========================================================= */

.adv-header .adv-brand__logo {
    display: block;
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .adv-header.adv-header--home {
        top: 40px;
    }

    .adv-header .adv-header__inner {
        min-height: 64px;
        padding: 6px 0;
    }

    .adv-header .adv-brand__logo {
        height: 46px;
        max-width: 140px;
    }

    .adv-header .adv-menu-toggle {
        width: 38px;
        height: 38px;
        padding: 8px;
        gap: 4px;
    }

    .adv-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .adv-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .adv-header .adv-brand__logo {
        height: 40px;
        max-width: 120px;
    }

    .adv-header .adv-menu-toggle {
        width: 36px;
        height: 36px;
    }
}

/* =========================================================
   SUBMENU / DROPDOWN STYLES (CLEAN SINGLE ARROW)
   ========================================================= */

/* Parent Menu Item Indicator (Single Chevron Arrow) */
.adv-header .adv-nav__list li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.adv-header .adv-nav__list li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

/* --- DESKTOP DROPDOWN --- */
@media (min-width: 1025px) {
    .adv-header .adv-nav__list li.menu-item-has-children {
        position: relative;
    }

    .adv-header .adv-nav__list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #1B2436;
        border: 1px solid rgba(150, 121, 60, 0.3);
        border-radius: 8px;
        padding: 10px 0;
        margin: 10px 0 0 0;
        list-style: none;
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
        z-index: 1100;
    }

    .adv-header .adv-nav__list li.menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .adv-header .adv-nav__list li.menu-item-has-children:hover > a::after {
        transform: rotate(-135deg);
    }

    .adv-header .adv-nav__list .sub-menu li {
        padding: 0;
    }

    .adv-header .adv-nav__list .sub-menu a {
        display: block;
        padding: 10px 20px;
        font-size: 13px;
        color: #ffffff;
        text-transform: none;
        letter-spacing: 0;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .adv-header .adv-nav__list .sub-menu a:hover {
        background: rgba(150, 121, 60, 0.15);
        color: var(--adv-header-gold-light);
    }
}

/* --- MOBILE SUBMENU ACCORDION --- */
@media (max-width: 1024px) {
    .adv-header .adv-nav__list li.menu-item-has-children {
        display: block;
    }

    .adv-header .adv-nav__list .sub-menu {
        display: none;
        width: 100%;
        list-style: none;
        padding: 5px 0 5px 15px;
        margin: 5px 0;
        border-left: 2px solid var(--adv-header-gold);
    }

    .adv-header .adv-nav__list li.is-submenu-open > .sub-menu {
        display: block;
    }

    .adv-header .adv-nav__list li.is-submenu-open > a::after {
        transform: rotate(-135deg);
    }

    .adv-header .adv-nav__list .sub-menu a {
        padding: 8px 0;
        font-size: 13px;
        text-transform: none;
        color: rgba(255, 255, 255, 0.85);
    }
}