/* ============================================
   FULTON COMMONS - CONSOLIDATED STYLESHEET
   Mobile-First Design - Clean Version (No Shadows/Gradients)
   Updated with Mobile Header Improvements (Logo + Button Centering)
   ============================================ */

/* ============================================
   RESET & BASE STYLES (Mobile First)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: whitesmoke;
    font-family: "Lato", Helvetica, Arial, "Lucida Grande", sans-serif;
    color: #2f4f4f;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   TYPOGRAPHY (Mobile First)
   ============================================ */

h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.8rem 0;
}

h4 {
    font-size: 0.9rem;
    font-weight: 200;
    margin: 0 0 0.5rem 0;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

h6 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}

/* ============================================
   NAVIGATION - MOBILE FIRST
   ============================================ */

.topnav-sticky {
    background-color: #f8c1a8;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    min-height: 70px;
}

/* Logo on left side - visible on mobile */
.leftside {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.leftside a {
    display: flex;
    align-items: center;
}

.leftside img {
    height: 50px;
    width: auto;
    max-width: none;
}

/* Navigation links - hidden on mobile by default */
.rightside {
    display: none;
    position: fixed;
    top: calc(70px); /* Match the min-height of topnav-sticky */
    left: 0;
    width: 100%;
    background-color: #f8c1a8;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.rightside a {
    display: block;
    color: #2f4f4f !important;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(47, 79, 79, 0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.rightside a:hover,
.rightside a.active2 {
    background-color: #eecbbc;
    color: #31696e !important;
    padding-left: 2rem;
    opacity: 1 !important;
}

/* Tour Button - Mobile */
.tour-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2f4f4f;
    color: #ffffff !important;
    padding: 0.65rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: 0.5rem;
}

.tour-button:hover {
    background-color: #1a2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* Hamburger icon - visible on mobile */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2f4f4f;
    cursor: pointer;
    padding: 0.75rem;
    background: none;
    border: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.icon:hover {
    background-color: #eecbbc;
    border-radius: 4px;
}

/* When menu is open */
.topnav-sticky.responsive .rightside {
    display: flex;
}

/* ============================================
   HERO SECTION - FULL SCREEN
   ============================================ */

.hero-fullscreen {
    width: 100%;
    height: 100vh;
    min-height: 550px;
    background-image: url('library1-desk.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-overlay {
    width: 100%;
    padding: 2rem;
}

.hero-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.hero-text h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    text-align: left;
    letter-spacing: 1px;
}

.hero-subtitle {
    color: white;
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0;
    text-align: left;
    line-height: 1.4;
}

/* Hero Description Section - Below Image */
.hero-description {
    background-color: whitesmoke;
    padding: 3rem 1.5rem;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.description-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CTA BUTTON SECTION
   ============================================ */

.cta-section {
    text-align: center;
    padding: 2rem 1rem 0.5rem 1rem;
    background-color: whitesmoke;
}

.cta-button-large {
    display: inline-block;
    background-color: #2f4f4f;
    color: #ffffff !important;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-button-large:hover {
    background-color: #1a2d2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.flex-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 90%;
    margin: 2rem auto;
    align-items: center;
}

.flexitem-2,
.flexitem-3,
.flexitem-4,
.flexitem-5,
.flexitem-6,
.flexitem-8,
.flexitem-10 {
    width: 100%;
    padding: 1rem;
}

.flexitem-2 img,
.flexitem-3 img,
.flexitem-4 img {
    margin: 1rem auto;
}

/* ============================================
   BLOG CONTAINER
   ============================================ */

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 90%;
    margin: 2rem auto;
    font-size: 0.95rem;
}

/* ============================================
   LISTS
   ============================================ */

ul {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
    list-style-position: outside;
}

li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

ul li::marker {
    content: "•";
    color: #2f4f4f;
}

.smalltext {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    width: 100%;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    text-align: left;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-logo-fulton,
.footer-logo-commons {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    color: #2f4f4f;
    font-size: 2rem;
    margin: 0;
    padding: 0;
}

.footer-logo-commons {
    margin-top: -0.15rem;
}

.footer-heading {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #6b8e8f !important;
    margin-bottom: 0.6rem !important;
    text-transform: uppercase;
}

.footer-subheading {
    margin-top: 1rem !important;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #6b8e8f;
}

.footer-column a {
    color: #6b8e8f;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #2f4f4f;
    opacity: 1;
}

.footer-hours-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-cta-button {
    display: inline-block;
    background-color: transparent;
    color: #6b8e8f !important;
    padding: 0.7rem 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    border: 2px solid #6b8e8f;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
    text-align: center;
    align-self: flex-start;
}

.footer-cta-button:hover {
    background-color: #6b8e8f;
    color: #ffffff !important;
    opacity: 1;
}

.footer-social-column .footer-heading {
    margin-bottom: 0.6rem !important;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.footer-social-links p {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.footer-social-links a {
    color: #6b8e8f;
    font-weight: 400;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    color: #2f4f4f;
    opacity: 1;
}

.footer-bottom {
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #d0d0d0;
    text-align: left;
}

.footer-bottom p {
    font-size: 0.6rem;
    color: #a8a8a8;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidedesk {
    display: inline;
}

.hidemobile {
    display: none;
}

center {
    text-align: center;
}

/* Clickable card styling */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.card-link h2 {
    margin-bottom: 1rem;
}

.card-link p {
    margin-bottom: 1rem;
}

/* ============================================
   MOBILE HERO TEXT LEGIBILITY ENHANCEMENT
   Applied only to mobile devices (under 600px)
   ============================================ */

@media (max-width: 599px) {
    .hero-fullscreen {
        padding-bottom: 160px;
    }
    
    .hero-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 200px, transparent 100%);
        padding-bottom: 20px;
    }
    
    .hero-text h1 {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    }
    
    .hero-subtitle {
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
    }
}

/* ============================================
   TABLET BREAKPOINT (min-width: 600px)
   ============================================ */

@media (min-width: 600px) {
    body {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Hero adjustments for tablet */
    .hero-fullscreen {
        min-height: 600px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-overlay {
        padding: 3rem;
    }

    .description-content {
        text-align: left;
        max-width: 900px;
    }

    /* CTA Button - Tablet */
    .cta-section {
        padding: 3rem 2rem;
    }
    
    .cta-button-large {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
    }

    .flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .flexitem-2 {
        flex: 1 1 45%;
        max-width: 48%;
    }

    .flexitem-3 {
        flex: 1 1 30%;
        max-width: 32%;
    }

    .flexitem-4 {
        flex: 1 1 22%;
        max-width: 23%;
    }

    /* Footer - Tablet */
    .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-social-column {
        grid-column: 1 / -1;
    }
}

/* ============================================
   DESKTOP BREAKPOINT (min-width: 800px)
   ============================================ */

@media (min-width: 800px) {
    body {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    /* Hero adjustments for desktop */
    .hero-fullscreen {
        min-height: 700px;
    }

    .hero-text h1 {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-overlay {
        padding: 4rem;
    }

    .hero-description {
        padding: 4rem 2rem;
    }

    .description-content {
        max-width: 1000px;
    }

    /* Desktop Navigation */
    .topnav-sticky {
        height: 80px;
        padding: 0 2rem;
    }

    .leftside img {
        height: 70px;
    }

    /* Show navigation links inline on desktop */
    .rightside {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    .rightside a {
        padding: 0.8rem 1.2rem;
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 1px;
        border-bottom: none;
        white-space: nowrap;
    }

    .rightside a:hover,
    .rightside a.active2 {
        background-color: #eecbbc;
        padding-left: 1.2rem;
    }

    /* Tour Button - Desktop */
    .tour-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.7rem;
        margin-left: 1rem;
        margin-right: 0;
    }

    /* Hide hamburger on desktop */
    .icon {
        display: none;
    }

    /* Container adjustments */
    .flex-container {
        width: 85%;
        gap: 2.5rem;
    }

    .blog-container {
        width: 70%;
        font-size: 1rem;
    }

    /* Utility classes */
    .hidedesk {
        display: none;
    }

    .hidemobile {
        display: inline;
    }

    /* Footer - Desktop */
    footer {
        padding: 4rem 2rem 2rem 2rem;
    }
    
    .footer-logo-fulton,
    .footer-logo-commons {
        font-size: 3.5rem;
    }
    
    .footer-main {
        display: grid;
        grid-template-columns: auto repeat(4, minmax(150px, 0.85fr));
        gap: 6rem;
        margin-bottom: 3rem;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-logo-column {
        grid-column: 1 / 2;
        max-width: 220px;
    }
    
    .footer-column:nth-child(2) {
        grid-column: 2 / 3;
    }
    
    .footer-column:nth-child(3) {
        grid-column: 3 / 4;
    }
    
    .footer-hours-column {
        grid-column: 4 / 5;
        align-items: flex-start;
    }
    
    .footer-cta-button {
        align-self: flex-start;
    }
    
    .footer-social-column {
        grid-column: 5 / 6;
    }
    
    .footer-social-links {
        align-items: flex-start;
    }
    
    .footer-bottom {
        border-top: 1px solid #d0d0d0;
        padding-top: 2rem;
        margin-top: 0;
        text-align: left;
    }
}

/* ============================================
   LARGE DESKTOP BREAKPOINT (min-width: 1200px)
   ============================================ */

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

    .rightside a {
        font-size: 0.75rem;
        padding: 0.8rem 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .topnav-sticky,
    .icon,
    footer {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}