/* General Styles */
body {
    font-family: "Times New Roman", serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    align-items: center;
    position: relative;
    overflow: hidden;
}


/*----------------------------------
   Top Ribbon
----------------------------------*/
.top-ribbon {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.top-ribbon ul,
.top-ribbon ul li {
    list-style: none;  /* remove bullets */
    margin: 0;          /* remove default spacing */
    padding: 0;         /* remove default spacing */
}

.top-ribbon > a {
    display: flex;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
}

.top-ribbon .logo {
    height: auto;
    max-height: 35px;
    width: auto;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    flex-shrink: 1;
    flex-grow: 0;
    align-items: center;
    justify-content: center;
}

/* Navigation Menu */
.top-ribbon .desktop-nav {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto; /* pushes desktop nav to the right */
}

.top-ribbon .desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}
.top-ribbon .desktop-nav ul li {
    list-style: none;
}

.top-ribbon .desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-variant: small-caps;
    padding: 5px 10px;
    white-space: nowrap;
}

.mobile-nav {
    margin-left: 0;    
    flex: 0 0 auto;  /* prevent stretching */

}

.instagram-nav {
    display: flex;
    padding-left: 20px;
    padding-right: 15px;
    flex-shrink: 0;
}



.instagram-icon {
    width: 17px;
    height: auto;
    vertical-align: middle;
    margin-bottom: 0;
}

/*----------------------------------
   Hamburger Menu
----------------------------------*/
.hamburger-wrapper {
    display: none;
    position: relative;
}

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
    padding-right: 0;
}

.hamburger-dropdown li {
    display: none;
}


.intro-wrapper {
    position: fixed;
    top: 45px;
    width: 100vw;
    background: white;
    z-index: 999;
    overflow: visible; /* prevent clipping */
    display: flex;
    justify-content: center;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

h1 {
    font-size: 2.3em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}

h2 {
    font-size: 2.0em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}



/* Title & Tagline */
.contact-form {
    position: absolute;
    top: 90px;
    bottom: 65px;
    left: 0;
    right: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0px;
}

.contact-form iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}


/* Footer Stays at Bottom (Matching Landing Page) */
.footer-wrapper {
    display: flex;   /* shrink-to-fit the widest content */
    flex-direction: column;        /* stack vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    box-sizing: border-box;
}

.footer-wrapper ul {
    display: block;          /* now fills the wrapper */
    width: 100%;             /* ensures text width matches wrapper */
    margin: 0;
    white-space: nowrap;     /* prevents line breaks */
    text-align: center;      /* keeps text centered */
}

.footer {
  background-color: #333;
  color: white;
  padding: 8px 0;
  font-size: 0.9em;
  font-variant: small-caps;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}

.tagline {
    font-size: 1.2em;
    font-style: italic;
    font-variant: small-caps;
}

.year-fix {
    font-size: 0.8em;
    /* Adjust size to match surrounding text */
}

/* Clean, evenly spaced item list */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px; /* even spacing between lines */
}

.footer-list li {
  line-height: 1;
}

.footer-list a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-list a:hover {
  opacity: 0.8;
}



/*----------------------------------
   Media Query (kept intact)
----------------------------------*/
@media (max-width: 825px) {
    /* Top Ribbon flex setup */
    .top-ribbon {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 8px;
    }

    /* Logo container flex */
    .top-ribbon > a {
        display: flex;
        flex-shrink: 1;      
        flex-grow: 1;        
        min-width: 0;
        margin-right: 10px;  
    }

    .top-ribbon .logo {
        max-width: 85%;
        max-height: 35px;    
        width: auto;
        height: auto;
    }

    /* Nav container (hamburger + Instagram) */
    .top-ribbon nav {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hamburger icon */
    .hamburger-menu {
        display: flex;             /* make container a flexbox */
        align-items: center;       /* vertically center the img */
        justify-content: center;   /* horizontally center if needed */
        cursor: pointer;
        padding: 0;
        line-height: 0;            /* removes any inline-gap issues */
        }

    /* Hamburger image */
    .hamburger-menu img {
        display: block;
        height: 17px;              /* match Instagram icon */
        width: auto;
    }

/* Instagram icon */
    .instagram-icon {
        display: block;
        width: 17px;
        margin-bottom: 0;
    }

    /* Hamburger dropdown - hidden by default */
    .hamburger-dropdown {
        display: none;
        flex-direction: column;       /* vertical stacking */
        position: absolute;
        top: calc(100% + 4px);
        right: 0px;
        background-color: #333;
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 140px;
        z-index: 2000;                /* above ribbon */
    }

    .hamburger-dropdown li {
    display: block;
    }

    .hamburger-dropdown li a {
        display: block;
        padding: 12px;
        color: white;
        text-decoration: none;
        font-variant: small-caps;
        white-space: nowrap;
    }

    .hamburger-dropdown li a:hover {
        background-color: rgba(236, 233, 233, 0.2);
    }

    /* Hamburger wrapper */
    .hamburger-wrapper {
        display: block;
        position: relative;
    }

    /* Hide desktop nav in mobile */
    .top-ribbon .desktop-nav {
        display: none;
    }

    /* Show dropdown only when active */
    .hamburger-wrapper.active .hamburger-dropdown {
        display: flex;
    }

}


@media (max-width: 685px) {


    .intro-wrapper {
        display: inline-flex;
        top: 40px;
        transform: scale(0.80);
        transform-origin: top center;
        width: 100vw;
    }

    .intro-wrapper h1, .intro-wrapper h2 {
        display: block;    
        white-space: nowrap;
        margin-top: 5px;

    }

    .contact-form {
        top: 85px;    }


    .footer {
      padding-top: 8px;
      padding-bottom: 0px;
    }

    .footer-wrapper ul {
        display: inline-flex;
        transform: scale(0.80);
        transform-origin: top center;
    }
}