/* Header - Overlay on Hero */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 50px 0 40px 0;
    border-bottom: none !important;
}

.gh-head {
    border-bottom: none !important;
}

.gh-head-inner {
    border-bottom: none !important;
}

/* Non-homepage header styling */
.has-cover:not(.home-template) .gh-head {
    background-color: white !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.has-cover:not(.home-template) .gh-head nav {
    padding: 20px 40px;
}

.has-cover:not(.home-template) .nav-left a,
.has-cover:not(.home-template) .nav-right a {
    color: var(--dark-text);
    text-shadow: none;
}

.has-cover:not(.home-template) .nav-left a:hover,
.has-cover:not(.home-template) .nav-right a:hover {
    color: var(--primary-teal);
}

.has-cover:not(.home-template) .logo {
    padding: 0 30px;
}

.has-cover:not(.home-template) .logo img {
    height: 70px;
    filter: none;
    margin-top: 0;
}

nav {
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 100px;
    width: 100%;
    box-sizing: border-box;
}

.has-cover:not(.home-template) nav {
    gap: 120px;
}

.nav-left,
.nav-right {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 45px;
    margin: 0;
    padding: 0;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.nav-left li,
.nav-right li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    margin-top: 10px;
}

.nav-left a,
.nav-right a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.nav-subscribe {
    background: var(--primary-green);
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s;
}

.nav-subscribe:hover {
    background: var(--dark-text);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: max(85vh, 850px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../images/SunriseonLake.jpg');
    background-size: cover;
    background-position: center top -200px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background: white;
    clip-path: ellipse(100% 100% at 50% 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    margin-top: -200px;
}

.hero-title-large {
    font-family: "Playfair Display", serif;
    font-size: 12em;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: "Playfair Display", serif;
    font-size: 1.4em;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    margin-top: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Hero Cards */
.hero-cards {
    position: absolute;
    bottom: -170px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    z-index: 10;
    margin-top: 80px;
}

/* Section spacing after hero */
.hero + * {
    padding-top: 280px;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 0 0 280px;
    max-width: 280px;
    height: 420px;
    margin: 0 -5px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.hero-card:first-child {
    margin-left: 0;
}

.hero-card:last-child {
    margin-right: 0;
}

.hero-card.middle {
    transform: translateY(-50px);
    z-index: 3;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    z-index: 5;
}

.hero-card.middle:hover {
    transform: translateY(-60px);
    z-index: 5;
}

.hero-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-card-content {
    padding: 20px 25px 25px 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card-label {
    font-family: "Playfair Display", serif;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-teal);
    font-weight: 400;
    margin-bottom: 15px;
}

.hero-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 2em;
    color: var(--dark-text);
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

.hero-card h3::first-letter {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-teal);
}

.hero-card p {
    font-family: "Playfair Display", serif;
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 1.1em;
    margin: 0;
}

.hero-card .read-more {
    display: inline-block;
    background: var(--primary-teal);
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Playfair Display", serif;
    font-size: 1em;
    letter-spacing: 1px;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 20px;
}

.hero-card .read-more:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title-large {
        font-size: 8em;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .hero-card {
        margin: 0;
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .hero-card.middle {
        transform: translateY(0);
    }

    .hero-card.middle:hover {
        transform: translateY(-10px);
    }

    /* Adjust hero cards to only extend downward on mobile */
    .hero-cards {
        bottom: 0;
        transform: translateX(-50%) translateY(calc(100% - 80px));
        margin-top: -50px;
    }

    /* Reduce spacing after hero since cards extend down */
    .hero + * {
        padding-top: 100px;
    }

    /* Specific spacing for page-head (blog section) */
    .page-head {
        margin-top: 1020px !important;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 20px;
    }

    .has-cover:not(.home-template) nav {
        gap: 40px;
        padding: 15px 20px;
    }

    .has-cover:not(.home-template) .logo {
        padding: 0 15px;
    }

    .has-cover:not(.home-template) .logo img {
        height: 50px;
    }

    .nav-left,
    .nav-right {
        gap: 15px;
        font-size: 0.85em;
    }

    .logo img {
        height: 50px;
    }

    .hero {
        min-height: max(100vh, 700px);
    }

    .hero-title-large {
        font-size: 5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-cards {
        padding: 0 20px;
        bottom: 0;
        transform: translateX(-50%) translateY(calc(100% - 100px));
        margin-top: -30px;
    }

    .hero-card-image {
        height: 200px;
    }

    .hero-card-content {
        padding: 20px 25px 30px 25px;
    }

    /* Reduce base padding after hero */
    .hero + * {
        padding-top: 100px;
    }

    /* Adjust blog section spacing for tablet/mobile */
    .page-head {
        margin-top: 1100px !important;
    }
}

@media (max-width: 480px) {
    /* Reduce base padding after hero */
    .hero + * {
        padding-top: 100px;
    }

    .hero-cards {
        margin-top: -20px;
        transform: translateX(-50%) translateY(calc(100% - 120px));
    }

    /* Adjust blog section spacing for small mobile */
    .page-head {
        margin-top: 1180px !important;
    }
}
