/*
Theme Name: Ready Set Travel
Description: Hello Elementor Child is a child theme of Hello Elementor
Author: Daryn van Vreden
Author URI: https://dvanv.co.uk
Template: hello-elementor
Version: 1.0.2
Text Domain: hello-elementor-child
*/

/* Add your custom styles here */

/* Ready. Set. Travel – header & footer */
:root {
	--rst-primary: #a77a42;
	--rst-secondary: #172a38;
	--rst-accent: #E07856;
	--rst-bg: #F5F1E8;
	--rst-text: #141414;
	--rst-line: #DDD6C6;
	--rst-display: "Noto Serif Display", "Times New Roman", serif;
	--rst-body: Poppins, system-ui, sans-serif;
}

body { margin: 0; background: var(--rst-bg); color: var(--rst-text); font-family: var(--rst-body); line-height: 1.6; }

/* Replace Hello Elementor's default pink (#c36) link colour with the brand palette */
a { color: var(--rst-primary); }
a:hover, a:focus, a:active { color: #7e5a2e; }
/* Linked Elementor cards/containers keep their normal text colours */
a:where(.e-con, .e-flexbox, .e-div-block, .e-grid),
a:where(.e-con, .e-flexbox, .e-div-block, .e-grid):hover,
a:where(.e-con, .e-flexbox, .e-div-block, .e-grid):focus,
a:where(.e-con, .e-flexbox, .e-div-block, .e-grid):active { color: inherit; text-decoration: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.rst-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--rst-text); color: var(--rst-bg); padding: 10px 16px; }
.rst-skip-link:focus { left: 8px; }

/* Header */
.rst-header { background: #fff; border-bottom: 1px solid var(--rst-line); position: sticky; top: 0; z-index: 100; }
.admin-bar .rst-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rst-header { top: 46px; } }

.rst-nav { max-width: 1440px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rst-brand { font-family: var(--rst-display); font-size: 1.5rem; color: var(--rst-secondary); text-decoration: none; letter-spacing: .01em; }
.rst-brand__logo { display: block; max-height: 48px; width: auto; }

.rst-nav__links { display: flex; align-items: center; gap: 28px; }
.rst-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.rst-menu a { color: var(--rst-text); text-decoration: none; font-size: .95rem; }
.rst-menu a:hover, .rst-menu .current-menu-item > a { color: var(--rst-primary); text-decoration: underline; text-underline-offset: 4px; }

/* Dropdown (one level) */
.rst-menu > li { position: relative; display: flex; align-items: center; gap: 2px; }
.rst-menu > .current-menu-ancestor > a,
.rst-menu > .current-menu-parent > a { color: var(--rst-primary); }

.rst-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--rst-text); }
.rst-submenu-toggle::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.rst-submenu-toggle:hover, .rst-submenu-toggle:focus, .rst-submenu-toggle:active { background: transparent; color: var(--rst-primary); border-color: transparent; }
.rst-submenu-toggle:focus-visible { outline: 2px solid var(--rst-primary); outline-offset: 2px; }
.rst-menu .is-open > .rst-submenu-toggle::before { transform: translateY(2px) rotate(-135deg); }

.rst-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 300px; background: #fff; border: 1px solid var(--rst-line); box-shadow: 0 12px 28px rgba(23, 42, 56, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 110; }
/* Invisible bridge so the panel doesn't close while the pointer crosses the gap. */
.rst-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.rst-menu .sub-menu a { display: block; padding: 10px 20px; white-space: nowrap; font-size: .92rem; }
.rst-menu .sub-menu a:hover,
.rst-menu .sub-menu .current-menu-item > a { background: var(--rst-bg); color: var(--rst-primary); text-decoration: none; }

@media (min-width: 761px) {
	.rst-menu > li:hover > .sub-menu,
	.rst-menu > li:focus-within > .sub-menu,
	.rst-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}

.rst-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px; border-radius: 4px; font-weight: 500; text-decoration: none; box-sizing: border-box; }
.rst-btn--accent { background: var(--rst-accent); color: var(--rst-text); }
.rst-btn--accent:hover { background: #c9654a; color: var(--rst-text); }

.rst-nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rst-line); border-radius: 4px; background: transparent; cursor: pointer; position: relative; }
/* Hello Elementor's reset gives every button a pink hover/focus background — keep ours neutral */
.rst-nav__toggle:hover, .rst-nav__toggle:focus, .rst-nav__toggle:active { background: transparent; border-color: var(--rst-primary); }
.rst-nav__toggle:focus-visible { outline: 2px solid var(--rst-primary); outline-offset: 2px; }
.rst-nav__toggle-bar, .rst-nav__toggle-bar::before, .rst-nav__toggle-bar::after { content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--rst-primary); transition: transform .2s; }
.rst-nav__toggle-bar { top: 21px; }
.rst-nav__toggle-bar::before { left: 0; top: -6px; }
.rst-nav__toggle-bar::after { left: 0; top: 6px; }
.rst-nav__toggle[aria-expanded="true"] .rst-nav__toggle-bar { background: transparent; }
.rst-nav__toggle[aria-expanded="true"] .rst-nav__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.rst-nav__toggle[aria-expanded="true"] .rst-nav__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
	.rst-nav { flex-wrap: wrap; }
	.rst-nav__toggle { display: block; }
	.rst-nav__links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0 4px; }
	.rst-nav__links.is-open { display: flex; }
	.rst-menu { flex-direction: column; gap: 0; }
	.rst-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rst-line); }
	.rst-btn { justify-content: center; margin-top: 8px; }
	.rst-footer__inner { flex-direction: column; }

	/* Dropdown on mobile: expands in place under its parent */
	.rst-menu > li { flex-wrap: wrap; gap: 0; }
	.rst-menu > li > a { flex: 1; }
	.rst-submenu-toggle,
	.rst-submenu-toggle:hover,
	.rst-submenu-toggle:focus,
	.rst-submenu-toggle:active { width: 44px; height: 44px; border: 0; border-bottom: 1px solid var(--rst-line); }
	.rst-menu .sub-menu { position: static; display: none; flex-basis: 100%; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.rst-menu .sub-menu::before { display: none; }
	.rst-menu .sub-menu a { padding: 10px 0; white-space: normal; }
	.rst-menu .sub-menu a:hover, .rst-menu .sub-menu .current-menu-item > a { background: transparent; }
	.rst-menu > li.is-open > .sub-menu { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.rst-menu .sub-menu, .rst-submenu-toggle::before { transition: none; }
}

/* Footer */
.rst-footer { background: #fff; box-shadow: 0 -1px rgba(0,0,0,0.1); color: #CFCAC0; }
.rst-footer__inner { max-width: 1440px; margin: 0 auto; padding: 40px 24px; display: flex; align-items: center; gap: 20px; flex-direction: row; }
.rst-footer__brand { font-family: var(--rst-display); font-size: 48px; color: var(--rst-text); text-decoration: none; }
.rst-footer__values { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.rst-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rst-footer a { color: var(--rst-text); }
.rst-footer a:hover { color: var(--rst-primary); }
.rst-footer__copy { flex-basis: 100%; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid #2E2E2E; font-size: .8rem; color: #9A958B; }


.rst-menu-footer { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rst-menu-footer a { color: var(--rst-text); text-decoration: none; font-size: .95rem; }
.rst-menu-footer a:hover, .rst-menu .current-menu-item > a { color: var(--rst-primary); text-decoration: underline; text-underline-offset: 4px; }

.text-balance {
	text-wrap: balance;
}