/* GLOBAL CSS */

:root {
  color-scheme: light dark;
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: #222222;
  --bs-gutter-x: 1rem;
  --primary-blue: #145886;
  --primary-dark-blue: #1e3a8a;
  --hover-crimson: crimson;
  --text-dark: #222222;
  --text-light: #555555;
  --white: #FFFFFF;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --transition-speed: 0.3s;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(59, 130, 246, 0.5);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-curve: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* New variables for Services Section */
  --hover-bg-blue: #145886;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

[data-scheme='dark'] body {
	background-color: #ffffff;
	color: #222222;
}

html, body {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html {
    background-color: #ffffff;
    color: #222222;
  }
    
  body {
    background-color: #ffffff;
    color: #222222;
  }
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: 0;
}

body {
  margin: 0;
  font-family: "PT Sans", "Arial", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  word-spacing: 3px;
  color: #222222;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  background-image: url('../images/backgrounds/left-side-bg.webp'),
              url('../images/backgrounds/right-side-bg.webp');
  background-position: left bottom, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: 50%, 100%;
  margin-bottom: 0;
}

abbr {
  text-decoration: 2px underline dotted;
  cursor: help;
  text-underline-offset: 4px;
}

address {
  font-style: normal;
  font-size: 1.2rem;
}

mark {
  background-color: #145886;
  color: #FFFFFF;
  border-radius: 0.25rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

hr {
  margin: 0.5rem 3rem 1rem 3rem;
  background-color: #878a91;
  width: 50%;
  height: 2px;
}

@media (max-width: 860px) {
  hr {
    display: none;
  }
}

a {
  color: #006cb2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-style: dotted;
  text-underline-offset: 3px;  
  text-decoration-color: #145886;
}

a:hover {
  color: crimson;
  text-decoration: none;
}

p {
  margin: 0 auto 1rem auto;
}

.text-align-center {
  text-align: center;
}

.align-items-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.container,
.container-lg {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.container,
.container-lg {
  width: 100%;
  padding-right: var(--bs-gutter-x, 1rem);
  padding-left: var(--bs-gutter-x, 1rem);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container, .container-lg {
    max-width: 720px;
  }
}

@media (min-width: 800px) {
  .container, .container-lg {
    max-width: 780px;
  }
}

@media (min-width: 860px) {
  .container, .container-lg {
    max-width: 840px;
  }
}

@media (min-width: 915px) {
  .container, .container-lg {
    max-width: 880px;
  }
}

@media (min-width: 960px) {
  .container, .container-lg {
    max-width: 930px;
  }
}

@media (min-width: 992px) {
  .container, .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container, .container-lg {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .container, .container-lg {
    max-width: 1380px;
  }
}

@media (min-width: 1540px) {
  .container, .container-lg {
    max-width: 1480px;
  }
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-filter {
  filter: drop-shadow(5px 5px 5px var(--shadow-hover))
}

/* GLOBAL CSS */


/* TOP SECTION */

.top-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  background-color: #145886;
  font-size: 0.9rem;
  font-weight: 300;
  color: #FFFFFF;
  padding: 0.5rem 0.5rem;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto 1rem auto;
}

.top-section h1 {
  font-size: 0.9rem;
  font-weight: 300;
  color: #FFFFFF;
  margin: 0 auto;
}

.top-section a {
  color: #FFFFFF;
  text-decoration: none;
}

.top-section a:hover {
  color: lime;
  text-decoration: none;
}

@media (max-width: 576px) {
  .top-section {
    display: none;
  }
}

/* TOP SECTION */


/* --- Header & Nav --- */

/* --- Sticky Functionality --- */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    height: 75px;
}

/* --- Navigation Links --- */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px; 
}

.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: "PT Sans", "Arial", sans-serif; /* Ensures uniform font between button/a */
    line-height: 1; /* Ensures uniform height */
    position: relative;
    transition: color var(--transition-speed) var(--ease);
}

/* Hover State & Underline Animation */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width var(--transition-speed) var(--ease), left var(--transition-speed) var(--ease);
}

.nav-item:hover {
    color: var(--hover-crimson);
}

.nav-item:hover::after {
    width: calc(100% - 30px);
    left: 15px;
}

/* --- Submenu Logic --- */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 320px;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) var(--ease);
    border-radius: 4px;
    padding: 10px 0;
    pointer-events: none;
}

.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.submenu li {
    position: relative;
}

.submenu li a {
    display: block;
    padding: 12px 25px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.2s, color 0.2s;
    position: relative;
}

/* Submenu Hover State with Crimson Accent Bars */
.submenu li a:hover {
    background-color: #f0f7ff;
    color: #000000;
}

.submenu li a::before,
.submenu li a::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--hover-crimson);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.submenu li a::before { left: 0; }
.submenu li a::after { right: 0; }

.submenu li a:hover::before,
.submenu li a:hover::after {
    opacity: 1;
}

/* Chevron Rotation */
.chevron {
    margin-left: 8px;
    transition: transform var(--transition-speed) var(--ease);
}

.has-submenu.active .chevron {
    transform: rotate(180deg);
}

/* --- Mobile Hamburger Button --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 1rem 10px 10px; /* Added 1rem spacing on right */
    z-index: 1100;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    position: absolute;
    border-radius: 4px;
    transition: transform 0.25s var(--ease), top 0.25s var(--ease), bottom 0.25s var(--ease);
}

.hamburger-inner::before { content: ""; top: -10px; left: 0; }
.hamburger-inner::after { content: ""; bottom: -10px; left: 0; }

/* Perfect Cross State */
.menu-open .hamburger-inner {
    background-color: transparent !important;
}

.menu-open .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-open .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* --- Responsive Layout (<= 1024px) --- */
@media screen and (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-speed) var(--ease), visibility var(--transition-speed) var(--ease);
        z-index: 1050;
    }

    .menu-open .nav-menu-wrapper {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .nav-item {
        font-size: 1.5rem;
        padding: 20px;
        width: 100%;
        justify-content: center;
    }

    .submenu {
        position: static;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        padding: 0;
        background-color: #fafafa;
    }

    .has-submenu.active .submenu {
        max-height: 1000px;
        padding: 10px 0;
    }

    .submenu li a {
        font-size: 1.1rem;
        padding: 15px;
    }
}

/* --- Header & Nav --- */


/* --- Footer Styles --- */
.main-footer {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    padding: 4rem 1.25rem 1.25rem;
    margin-top: 0;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer-section {
    flex: 1;
    min-width: 280px;
}

/* Footer Part 1: Contact (Left) */
.contact-details {
    text-align: left;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.contact-row {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-details a {
    color: #FFFFFF;
    text-decoration: underline solid;
    text-underline-offset: 4px;
}

.contact-details a:hover {
    color: lime;
    text-decoration: none;
}

/* Footer Part 2: Links (Center) */

.footer-links h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    text-transform: uppercase;
}

.footer-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: underline solid;
    text-underline-offset: 4px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: lime;
    text-decoration: none;
    text-underline-offset: 4px;
}

.footer-separator {
    display: block;
    width: 2.5rem;
    height: 1px;
    background-color: rgba(240, 255, 255, 0.3);
    margin: 1rem 0;
}

/* Footer Part 3: Working Hours (Right) */
.working-hours {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.working-hours h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.hours-intro {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.5;
    width: 100%;
}

.hours-table {
    border: 1px solid rgba(240, 255, 255, 0.5);
    padding: 15px;
    width: 100%;
    max-width: 320px;
    background-color: rgba(255, 255, 255, 0.05);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    margin-bottom: 4px;
}

.hours-row span:first-child {
    margin-right: 1.25rem;
    text-align: left;
}

.hours-row.closed {
    color: #FFFFFF; /* Light blue accent for "Closed" */
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(240, 255, 255, 0.2);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: #FFFFFF;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

.footer-bottom a {
    color: yellow;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.compliance-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 1;
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        align-items: center;
        margin-bottom: 2rem;
        width: 100%;
    }

    .working-hours {
        align-items: center;
        text-align: center;
    }

    .contact-details {
        text-align: center;
    }
}

/* --- Footer Styles --- */

.title-page {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 3rem;
    color: var(--hover-crimson);
}

/* HEADINGS */

        .header-content {
            text-align: center;
            margin-bottom: 4rem;
        }

        .header-title {
            font-size: 1.5rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05rem;
            color: var(--hover-crimson);
            margin-bottom: 0;
            position: relative;
            display: inline-block;
        }

        .header-underline {
            height: 0.25rem;
            width: 5rem;
            background-color: var(--primary-blue);
            margin: 1rem auto 0;
            border-radius: 1rem;
        }

/* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            .header-title {
                font-size: 1.875rem;
            }
          }

/* HEADINGS */

@media (min-width: 800px) {
.border-image {
    display: block;
    margin: 0 auto;
    border-bottom-left-radius: 10rem;
    border-bottom-right-radius: 10rem;
    filter: drop-shadow(0px 10px 0px var(--shadow-hover));
}
}

@media (max-width: 799px) {
.border-image {
    display: none;
    color: 
}
}
