/* ROOT VARIABLES */
:root {
    --nav: #000000;
    --header: #019877;
    --primary: #101727;
    --accent: #04836E;
    --accent1: #009865;
    --accent2: #8ed7c7;
    --accent3: #045443;
    --accent4: #fafafa;
    --background: #ffffff;
    --ink: #ffffff;
    --ink2: #000000;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radius: 10px;
    --radius2: 7px;
    --font-main: "Manrope", sans-serif;
    --font-heading: "Inter", sans-serif;
    --maxw: 1200px;
}

/* .darkmode {

} */

#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: var(--accent4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
}
 
/* #theme-switch svg {
    fill: var(--ink2);
}

#theme-switch svg:last-child{
    display: none;
}

.darkmode #theme-switch svg:first-child {
    display: none;
}

.darkmode #theme-switch svg:last-child {
    display: block;
} */

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* GLOBAL STYLES */
body {
    font-family: var(--font-main);
    margin: 0;
    padding-right: 0;
    line-height: 1.6;
    background-color: var(--background);
    color: #222;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}
h1 {
    font-size: 3.5rem;
}

main {
    width: 100%;       /* Allows it to fill smaller screens */
    margin: 80px auto 0 auto; /* 80px matches the header height */
}

/* FIXED HEADER BAR */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(239, 243, 237, 0.6); /* Frosted glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    z-index: 1000;
}

/* LOGO AND TITLES */
.header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.logo-container {
    background: linear-gradient(to right, var(--accent1), var(--accent));
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.title-main {
    font-weight: 800;
    color: var(--ink2);
    text-transform: uppercase;
    font-size: 1.1rem;
}

.title-sub {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--accent3);
}

/* MOBILE NAVIGATION & ANIMATED HAMBURGER */
.navigation {
    display: flex;
    justify-content: flex-end;
    padding-right: 1.5rem;
}

#menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to X Animation */
#menu.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

#menu.open .bar:nth-child(2) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* MOBILE DROPDOWN MENU */
.navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--ink);
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease-out;
    
}

.navigation ul.open {
    display: flex;
}

.navigation a {
    display: block;
    color: var(--ink2);
    text-decoration: none;
    padding: 1.2rem;
    text-align: center;
    transition: 0.3s;
}

.navigation a.active {
    margin: 0.5rem 1rem;
    background: linear-gradient(to right, var(--accent1), var(--accent));
    border-radius: 8px;
    color: var(--ink);
    font-weight: 900;
}

.hero-directory::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0.7;
    z-index: 1;
}


.hero-text {
    text-align: center;
    max-width: 500px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    margin: 0;
    line-height: 0.9;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* FOOTER & SOCIALS */
footer {
    background: var(--primary);
    color: #ffffff;
    padding: 3rem 1.5rem;
    /* margin-top: 8rem; */
}
footer p, h2 {
    font-size: 1rem;
    margin-bottom: -1rem;
}

footer .lastmod {
    color: var(--accent2);
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* This ensures the phone number and links stays white */
.footer-link, 
.footer-link:visited, 
.footer-link:hover {
    color: var(--ink);
    text-decoration: underline;
}
.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-icons a {
    width: 60px;
    height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons img {
    filter: brightness(0) invert(1);
    width: 35px;
}

/* ANIMATIONS */
@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.toast {
    position: fixed;
    bottom: 20px;
    right: -400px; /* Hidden off-screen by default */
    background-color: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    visibility: hidden;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    right: 20px; /* Slides into view */
    visibility: visible;
}

#close-toast {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#visit-toast {
    background-color: #333;
    color: #ffffff;
}

#close-toast:hover {
    color: #ffcc00; /* Calabar Chamber gold/accent color */
}