/* Site Specific Styles */

:root {
	/* NavBar */
	--site-nav-col: white;
	--site-nav-bg: black;
	
	--nav-menu-hover-col: white;
	--nav-menu-hover-bg: #d70000;
	
	--nav-menu-is-current: var(--nav-menu-hover-bg);
	
	--submenu-col: white;
	--submenu-bg: black;
	
	--submenu-hover-col: white;
	--submenu-hover-bg: #708090;
	
	/* Header */
    --header-bg: #d70000;
	--header-text-shadow: black;
	
	--shadow-strong: 0.1em 0.1em 0.2em black;
    --shadow-soft: 0.06em 0.06em 0.15em black;
	
	/* Main Display */
	--display-shadow: 5px 25px 25px -25px rgba(0,0,0,0.90);
		
	/* Lower Page */
	--lower-submenu: inherit;
	--lower-submenu-hover: #708090;
	--lower-submenu-phone: #d70000;
	--lower-links: inherit;
	--lower-links-hover: #708090;
	
	/* Footer */
	--social-bg: var(--header-bg); /* --social-bg: #444; */
    --social-col: white;
	
	--footer-main-bg: #3a3a3a;
    --footer-base-bg: #222;
    --footer-text: #ddd;
    --footer-link-hover: #fff;
}

/* ===============================
   Top Navigation
=============================== */

.site-nav {
    background: var(--site-nav-bg);
    color: var(--site-nav-col);
	margin-bottom: -4px; /* Removes bottom seam */
	font-weight: bold;
}
@media (max-width: 768px) { .site-nav { margin-bottom: 0; } }

/* layout */
.site-nav .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

/* main list */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

/* links */
.nav-menu a {
    padding: 0.75rem 0.75rem;
    color: inherit;
    text-decoration: none;
	display: flex;
    align-items: center;
}

/* hover */
.nav-menu a:hover {
	col: var(--nav-menu-hover-col);
    background:
		linear-gradient(to top,
            rgba(255,255,255,0.25),
            rgba(255,255,255,0) 40%),
		var(--nav-menu-is-current);
}

/* current page */
.nav-menu a.is-current {
    background:
		linear-gradient(to top,
            rgba(255,255,255,0.25),
            rgba(255,255,255,0) 40%),
		var(--nav-menu-is-current);
}

/* Desktop dropdowns */

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
	color: var(--submenu-col);
    background: var(--submenu-bg);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 12rem;
    display: none;
	z-index: 1000;
}

.has-submenu:hover > .submenu {
    display: block;
}

.submenu a {
    padding: 0.6rem 0.75rem;
}

.submenu a:hover {
	color: var(--submenu-hover-col);
    background: var(--submenu-hover-bg);
}

/* Mobile behaviour */

@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .site-nav.is-open .nav-menu {
        display: flex;
    }

    .submenu {
        position: static;
    }

}

/* right side */
.nav-extras {
    margin-left: auto;   /* magic */
    display: flex;
	align-items: center;
    gap: 0.1rem;
	margin-top: -4px; /* aligns extras and navbar text */
}
@media (max-width: 768px) { .nav-extras { display: none; } }

.nav-phone,
.nav-mobile,
.nav-email,
.nav-text
 {
    font-size: 1.0rem;
    font-weight: bold;
	text-shadow: var(--shadow-soft);
}
.nav-phone a, .nav-mobile a, .nav-email a { text-decoration: none; }
.nav-text a:hover { color: #ccc; }

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-social svg {
    height: 1.2em;
    width: 1.2em;
}


/* ===============================
	Header
=============================== */

.site-header {
	color: white;
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.25),
            rgba(255,255,255,0) 40%),
        var(--header-bg);
}

/* decorative stripes */
.header-lines {
    border-top: 2px solid white;
    border-bottom: 3px solid black;
}

/* main layout */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* alignment */
.header-left  {
	text-align: left;
	display: flex;
    flex-direction: column;   /* ← magic */
    gap: .75rem;
    justify-content: center;
}
.header-center {
	text-align: center;
	display: flex;
    align-items: center;
    justify-content: center;
}
.header-right {
    text-align: right;
    display: flex;
    flex-direction: column;   /* ← magic */
    gap: .75rem;
    justify-content: center;
    align-items: flex-end;    /* keeps them right aligned */
}

/* typography */
.header-name {
	font-weight: bold;
	font-size: 1.5rem;
	text-shadow: var(--shadow-strong);
}
.header-strap,
.header-phone,
.header-mobile,
.header-email
 {
    font-size: 1.0rem;
    font-weight: bold;
	text-shadow: var(--shadow-soft);
}
.header-phone a, .header-mobile a, .header-email a { text-decoration: none; }

@media (max-width: 840px) {
    .header-left,
    .header-right {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   Page display / hero
=============================== */

.page-display {
    width: 100%;
    position: relative;
	box-shadow: var(--display-shadow);
}

.page-display {
    position: relative;
    overflow: hidden;   /* ← magic */
}

/* default media behaviour */
.page-display iframe,
.page-display img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-display--map {
    height: clamp(250px, 40vh, 500px);
}

.page-display img {
    display: block;
    width: 100%;
    height: auto;
}

.page-display--slider .swiper {
    width: 100%;
    height: 100%;
}

:root { --swiper-theme-color: #708090; }

/* make arrows white */
.swiper-button-prev,
.swiper-button-next {
    color: white;
	text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* pagination dots */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.7);
}

.swiper-pagination-bullet-active {
    background: white;
	text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* hide by default */
.page-display--slider .swiper-button-prev,
.page-display--slider .swiper-button-next {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* show on hover */
.page-display--slider:hover .swiper-button-prev,
.page-display--slider:hover .swiper-button-next {
    opacity: 1;
}


/* ===============================
   Page Content
=============================== */

.col-2, .col-3 {
    display: grid;
    gap: 2rem;
}

.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 840px) {
    .col-2, .col-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* ===============================
   Lower page elements
=============================== */

.lower-page {
    padding: 1rem 0 0 0;
}

.lower-page section {
    margin-bottom: 1rem;
}

.lower-page h2 {
    margin-bottom: 0.5rem;
}

/* Call To Action */
.lower-cta {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: var(--header-bg);
    color: white;
    text-decoration: none;
	font-weight: 600;
	border-radius: 5px;
}

.btn:hover {
    background: var(--site-nav-bg);
    color: white;
}

.lower-submenu a {
	text-decoration: none;
	color: var(--lower-submenu);
}

.lower-submenu a:hover {
	text-decoration: underline;
	color: var(--lower-submenu-hover);
}

.lower-submenu-phone a {
	text-decoration: none;
	color: var(--lower-submenu-phone);
	font-weight: 600;
}

/* affiliates */
.lower-affiliates {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lower-affiliates img {
    height: 80px;   /* choose your standard */
    width: auto;
	align-items: center;
}

/* SEO */
.lower-seo {
    text-align: center;
}

/* lower links */
.lower-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.lower-links a {
	text-decoration: none;
	color: var(--lower-links);
}

.lower-links a:hover {
	text-decoration: underline;
	color: var(--lower-links-hover);
}

/* If lower links finish the page, tighten gap before footer */
.lower-links:last-child {
    margin-bottom: 0;
}

@media (max-width: 840px) {
    .lower-links {
        display: none;
    }
}


/* ===============================
	Footer
=============================== */

.footer-social {
    background: var(--social-bg);
    color: var(--social-col);
    min-height: 20px;
    display: flex;
    align-items: center;
}

.footer-social-inner {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.footer-social a:hover {
    opacity: 0.85;
}

/* Overall */
.site-footer {
    color: var(--footer-text);
    font-size: 0.95rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--footer-link-hover);
}


/* Upper Footer */
.footer-main {
    background: var(--footer-main-bg);
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 840px) {
	.footer-left {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

.footer-center,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* Lower Footer */
.footer-base {
    background: var(--footer-base-bg);
    padding: 0.75rem 0;
}

.footer-base-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 840px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-base-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    z-index: 9999;
}

.cookie-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-accept {
    background: var(--header-bg);
    border: 0;
    color: white;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}
.cookie-accept:hover {
    background: #27CFC3;
}

@media (max-width: 600px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}


/* To Top button */
.to-top {
    position: fixed;
    bottom: 3rem;
    right: 1.5rem;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: #696969;
    color: white;

    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.to-top:hover { background: #27CFC3; }

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}
