/*-- -------------------------- -->
<---     Defaults               -->
<--- -------------------------- -*/
@media only screen and (min-width: 0em){
    :root{
        --primary: #fff;
        --secondary: #452b83;
        --bodyFontSize: 1.3rem;
        --headerFontSize: clamp(1.724rem, 3.9vw, 2.5rem);
        --headerPadding: clamp(7rem, 5vw, 11rem);
    }
    a {
        color: var(--secondary);
        font-size: var(--bodyFontSize);
    }
    ul {
        list-style-type: none;
    }
    p {
        font-size: var(--bodyFontSize);
        color: #000;
    }
    h1 {
        font-size: var(--headerFontSize);
    }
    h2 {
        font-size: 1.9rem;
    }
    h3 {
        font-size: 1.7rem;
    }
    h4 {
        font-size: 1.5rem;
    }
}

/* Reset Margins */
@media only screen and (min-width: 0rem) {
    body,
    html {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
    }
}

/*-- -------------------------- -->
<---     Navigation             -->
<--- -------------------------- -*/

#header-element {
    background-color: #fff;
}

#header-element a {
    color: var(--secondary);
    text-decoration: none;
}

#header-element a:hover {
    text-decoration: underline;
}

/*-- -------------------------- -->
<---     Base Navigation        -->
<--- -------------------------- -*/
@media only screen and (min-width: 0){
    #header-element{
        width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
        position: sticky;
        z-index: 10000;
        top: 0;
        left: 0;
        border-bottom: 1px solid #e2e2e2;
    }
    .header-container{
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.5rem;
    }
    .logo{
        width: 20%;
        max-width: 30rem;
        height: 8.0625rem;
        margin: 0 auto 0 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
    }
    .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .ul-nav{
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: clamp(1.25rem, 2.5vw, 2.25rem);
        margin: 0;
        padding: 0;
    }
    .li-nav{
        padding: 0.5rem 0;
    }
    .a-nav{
        font-size: 1.5rem;
        line-height: 1.5em;
        display: block;
        position: relative;
        color: var(--secondary);
    }
    .toggle-button{
        display: none;
    }

    /*Dropdown*/
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border: 1px solid #ddd;
        padding: 0.8rem;
        list-style: none;
        z-index: 10000;
        overflow-y: auto; 
        max-height: 30rem;
    }

    .dropdown-menu li a {
        display: block;
        padding: 0.8rem;
        text-decoration: none;
    }

    .dropdown-menu li a:hover {
        background-color: #f7f7f7;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/*-- -------------------------- -->
<---     Mobile Navigation      -->
<--- -------------------------- -*/
@media only screen and (max-width: 63.9375rem) {
    #header-element {
        background: #fff;
    }

    .logo {
        width: auto;
        height: 100%;
        max-width: 10rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: auto;
        padding: 1rem;
    }

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

    .toggle-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        cursor: pointer;
    }

    .toggle-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .hamburger {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #000;
        position: relative;
        transition: background-color 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000;
        position: absolute;
        transition: transform 0.3s ease;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        top: 6px;
    }

    .toggle-button.open .hamburger {
        background-color: transparent;
    }

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

    .toggle-button.open .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f8f5ff;
        border-top: 2px solid var(--secondary);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 0.5rem 0;
        box-sizing: border-box;
        z-index: 10000;
    }

    .header-nav.open {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .ul-nav {
        flex-direction: column;
        gap: 0;
        align-items: center;
        text-align: center;
    }

    .li-nav {
        padding: 0;
        border-bottom: 1px solid #e8e0f5;
        width: 100%;
    }

    .li-nav:last-child {
        border-bottom: none;
    }

    .a-nav {
        font-size: 1.2rem;
        padding: 0.85rem 1.5rem;
        color: var(--secondary);
        font-weight: 600;
        transition: background-color 0.2s ease;
        text-align: center;
    }

    .a-nav:hover {
        background-color: #ede7f9;
    }

    .toggle-button.open ~ .header-nav {
        display: block;
    }

    .dropdown-menu {
        touch-action: manipulation;
        pointer-events: auto;
        max-height: 20rem;
    }
}

/*-- -------------------------- -->
<---    Footer                  -->
<--- -------------------------- -*/
@media only screen and (min-width: 0) {
    #footer-element {
        width: 100%;
        box-sizing: border-box;
        z-index: 10000;
        color: #fff;
    }

    .footer-container {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .footer-links {
        display: flex;
        width: 100%;
        background-color: #fff;
        padding: 3rem 3rem;
        gap: 4rem;
        border-top: 1px solid #e2e2e2;
    }

    .footer-links li {
        list-style-type: none;
        color: var(--secondary);
    }

    .footer-links a {
        color: var(--secondary);
        text-decoration: none;
    }

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

    .footer-links p {
        color: var(--secondary);
    }

    .footer-links h4 {
        margin-bottom: 1rem;
    }

    .logo-and-information {
        flex: 0 0 40%;
    }

    .about-company {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ol-footer {
        margin-top: 0;
    }

    .li-footer {
        padding: 0.5rem;
    }

    /* States Section Styles */
    .states-section {
        background-color: var(--secondary);
        padding: 0 3rem 3rem 3rem;
    }

    .states-section p {
        color: #fff;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    .states-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        width: 100%;
    }

    .state-link {
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        padding: 0.25rem 0;
        transition: opacity 0.3s ease;
    }

    .state-link:hover {
        text-decoration: underline;
    }

    .copyright {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        padding: 1rem;
    }

    .copyright p {
        color: #000;
        margin: 0;
    }
}

/* Mobile Styles */
@media only screen and (max-width: 63.9375rem) {
    .footer-element {
        padding: 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .logo-and-information{
        width: 100%;    
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .logo-and-information img {
        width: auto;
        max-width: 90%;
        height: auto;
    }

    .states-section {
        padding: 1rem;
    }

    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .about-company {
        width: 100%;
        align-items: center;
        text-align: center;
    }
}

/*-- -------------------------- -->
<---     Sidebar                -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
    .main-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
    }

    main#main {
        flex: 1;
    }

    #sidebar-element {
        padding: 2rem;
        background-color: #f7f7f7;
        margin-top: 2rem;
        width: 300px;
        position: sticky;
        top: 2rem;
        height: fit-content;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #featured-camps {
        font-size: 1.8rem;
        font-weight: bold;
        margin: 0;
        color: #333;
    }

    .featured-camp-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .featured-camp-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .camp-card-link {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .camp-card-image {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .camp-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .featured-camp-card:hover .camp-card-image img {
        transform: scale(1.05);
    }

    .camp-card-content {
        padding: 1rem;
    }

    .camp-card-title {
        font-size: 1.4rem;
        margin: 0 0 0.5rem 0;
        color: var(--secondary);
    }

    .camp-card-location, 
    .camp-card-ages {
        font-size: 1rem;
        margin: 0.25rem 0;
        color: #666;
    }
}

/*-- -------------------------- -->
<---     Sidebar on Mobile      -->
<--- -------------------------- -*/
@media only screen and (max-width: 63.9375rem) {
    .main-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    #sidebar-element {
        width: 100%;
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .featured-camp-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .camp-card-image {
        height: 250px;
    }
}

/*-- -------------------------- -->
<---     Random Elements      -->
<--- -------------------------- -*/
@media only screen and (min-width: 0){
    .breadcrumbs {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.2rem;
        flex-wrap: wrap;
    }
    .breadcrumbs-referring-page{
        font-size: 1.2rem;
        text-decoration: none;
    }
    .breadcrumbs-current-page{
        font-size: 1.2rem;
        text-decoration: none;
    }
}




