#navbar {
    background: var(--green-dark);
}

#navbar .logo img {
    height: 75px;
    transition: height 0.3s ease;
    margin: 0.2rem 0 0.2rem 1.5rem;
}

#navbar .desktop-nav a:not(.apply-btn) {
    transition: font-size 0.3s ease;
}

/* Hero Section - Gallery Hero Style */
.stepping-hero {
    position: relative;
    height: 70vh;
    height: -webkit-fill-available;
    min-height: 500px;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 10vh;
}

.stepping-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.stepping-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stepping-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.stepping-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 2rem;
}

.stepping-hero-content h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stepping-hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
}

/* Contact Grid Section */
.contact-grid-section {
    padding: 5rem 2rem;
    background: var(--off-white);
}

.contact-header {
    text-align: center;
    padding: 2rem;
    background: var(--off-white);
}

.contact-header h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-header {
        padding: 1.5rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
}

.contact-container {
    max-width: 90vw;
    margin: 0 auto;
}

.contact-grid {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    margin-top: 1rem;
}

/* Force first two cards to be on their own row */
.contact-card:nth-child(1),
.contact-card:nth-child(2) {
    flex: 0 1 calc(40% - 2rem);
    min-width: 250px;
}

/* Push them to be a centered pair */
.contact-card:nth-child(1) {
    margin-right: 0;
}

.contact-card:nth-child(2) {
    margin-left: 0;
}

/* The remaining 3 cards go to the next row */
.contact-card:nth-child(3),
.contact-card:nth-child(4),
.contact-card:nth-child(5) {
    flex: 0 1 calc(30% - 2rem);
    min-width: 200px;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-card:nth-child(1),
    .contact-card:nth-child(2),
    .contact-card:nth-child(3),
    .contact-card:nth-child(4),
    .contact-card:nth-child(5) {
        flex: 0 1 100%;
    }
}

.contact-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    transition: all 0.3s ease;
    /* Safari fix for border-radius + overflow */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.contact-card:hover {
    transform: translateY(-8px);
    -webkit-transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.contact-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--dark);
    transform: translateX(5px);
    -webkit-transform: translateX(5px);
}

/* Location Section */
.location-section {
    padding: 5rem 2rem;
    background: #f5f5f5;
    margin: auto;
}

.location-info {
    text-align: center;
    margin-bottom: 3rem;
}

.location-info h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* Info Grid - 2 columns */
.info-grid {
    display: -webkit-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Address & Hours Cards */
.info-address,
.info-hours {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    /* Safari fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.info-address:hover,
.info-hours:hover {
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem auto;
}

.info-address p,
.info-hours p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.info-address p{
    line-height: 2;
    font-size: 1.3rem;
}

.info-hours p strong {
    color: var(--green);
    font-weight: 600;
}

.info-hours p:first-of-type {
    margin-bottom: 0.75rem;
}

/* Map */
.location-map {
    margin: 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 70vw;
}

.location-map iframe {
    display: block;
}

/* Directions Button */
.location-directions {
    text-align: center;
    margin-top: 2rem;
}

.directions-btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 40px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.directions-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: translateX(5px);
    -webkit-transform: translateX(5px);
}

/* Mobile */
@media (max-width: 768px) {

    .stepping-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .stepping-hero-content h1 {
        font-size: 2rem;
    }
    
    .stepping-hero-content p {
        font-size: 1rem;
    }

    .location-section {
        padding: 3rem 0rem;
    }
    
    .location-info h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-address p{
        line-height: 2;
        font-size: 1.1rem;
    }

    .location-map{
        max-width: 90vw;
    }
    
    .location-map iframe {
        height: 300px;
    }
    
    .directions-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 50vw;
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .info-grid {
        max-width: 600px;
    }
    
    .location-map iframe {
        height: 350px;
    }
}

/* Safari/iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS specific */
    .stepping-hero {
        height: -webkit-fill-available;
    }
    
    /* Fix for hover issues on iOS */
    .contact-card, .info-address, .info-hours {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Fix for border-radius + overflow on iOS */
    .contact-card, .info-address, .info-hours {
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }
}