/* Om Gården - Page Styles */

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-deep-fjord);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    text-align: center;
}

.page-loader-logo {
    width: 350px;
    height: auto;
    opacity: 0;
    transform: scale(1.3);
    animation: loaderFadeIn 1.2s ease-out forwards;
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.3);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section - Fullscreen with Parallax */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 45, 65, 0.4) 0%,
        rgba(8, 45, 65, 0.3) 50%,
        rgba(8, 45, 65, 0.5) 100%
    );
    z-index: 2;
}

.hero-image {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    animation: heroImageZoom 20s ease-out forwards;
}

@keyframes heroImageZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Fallback for mobile (fixed attachment doesn't work well) */
@supports (-webkit-touch-callout: none) {
    .hero-image {
        background-attachment: scroll;
        inset: 0;
    }
}

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

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-title span {
    display: block;
    font-size: 0.5em;
    letter-spacing: 0.25em;
    margin-top: 0.5rem;
    font-weight: 300;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--color-white);
    margin: 2rem auto;
    opacity: 0.6;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-white);
}

.hero-scroll-text {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-white), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.4;
    }
}

/* About Section */
.about-section {
    position: relative;
    padding: 6rem 8%;
    background: var(--color-cream);
}

/* Vertical Text */
.vertical-text {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.vertical-text span {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(8, 45, 65, 0.07);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* About Content (Left) */
.about-content {
    max-width: 520px;
}

.about-content .section-label {
    margin-bottom: 1rem;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-deep-fjord);
    margin-bottom: 2rem;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 2.5rem;
}

.about-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--color-deep-fjord);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s var(--transition-smooth);
}

.about-btn:hover {
    background: #0a3a54;
    transform: translateY(-2px);
}

/* Features (Right) */
.about-features {
    background: var(--color-white);
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    align-self: start;
    margin-top: 2.5rem;
}

.features-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.features-line {
    width: 40px;
    height: 1px;
    background: var(--color-deep-fjord);
}

.features-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-deep-fjord);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-deep-fjord);
    flex-shrink: 0;
}

.feature-item span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-black);
}

/* Gallery Section */
.gallery-section {
    position: relative;
    padding: 4rem 0 8rem;
    overflow: hidden;
    background: var(--color-cream);
}

.gallery-vertical-text {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    z-index: 1;
}

.gallery-vertical-text span {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(8, 45, 65, 0.06);
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding-left: 12%;
}

.gallery-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    flex-shrink: 0;
    width: 60vw;
    max-width: 900px;
    height: 70vh;
    max-height: 600px;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide:hover .gallery-image {
    transform: scale(1.03);
}

/* Gallery Navigation */
.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-deep-fjord);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.gallery-btn:hover {
    background: var(--color-deep-fjord);
}

.gallery-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-deep-fjord);
    transition: stroke 0.3s var(--transition-smooth);
}

.gallery-btn:hover svg {
    stroke: var(--color-white);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-counter {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-deep-fjord);
    min-width: 80px;
    text-align: center;
}

.gallery-current {
    font-weight: 600;
}

.gallery-total {
    font-weight: 300;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-section {
        padding: 5rem 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-features {
        margin-left: 0;
    }

    .vertical-text {
        display: none;
    }

    .gallery-vertical-text {
        display: none;
    }

    .gallery-carousel-wrapper {
        padding-left: 5%;
    }

    .gallery-slide {
        width: 80vw;
    }
}

@media (max-width: 768px) {
    .hero-image {
        background-attachment: scroll;
    }

    .about-section {
        padding: 4rem 5%;
    }

    .about-features {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-section {
        padding: 2rem 0 4rem;
    }

    .gallery-slide {
        width: 85vw;
        height: 50vh;
    }

    .gallery-nav {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .gallery-btn {
        width: 44px;
        height: 44px;
    }

    .attr-carousel-wrapper {
        padding-left: 5%;
    }

    .attr-slide {
        width: 85vw;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 2rem;
    }

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

    .gallery-slide {
        width: 90vw;
        height: 40vh;
    }

    .attr-slide {
        width: 90vw;
        height: 280px;
    }
}

/* Attractions Section */
.attractions-section {
    padding: 6rem 8%;
    background: var(--color-white);
}

.attractions-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.attractions-header .section-label {
    justify-content: center;
    margin-bottom: 1rem;
}

.attractions-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-deep-fjord);
    margin-bottom: 1rem;
}

.attractions-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.attraction-card {
    position: relative;
    display: block;
    min-height: 280px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s var(--transition-smooth);
}

.attraction-card:hover {
    transform: translateY(-5px);
}

.attraction-card-featured {
    grid-column: span 2;
    min-height: 350px;
}

.attraction-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s var(--transition-smooth);
}

.attraction-card:hover .attraction-card-bg {
    transform: scale(1.05);
}

.attraction-card-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--color-white);
}

.attraction-tag {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

.attraction-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.attraction-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.attraction-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    transition: gap 0.3s var(--transition-smooth);
}

.attraction-card:hover .attraction-link {
    gap: 1rem;
}

.attraction-link svg {
    width: 16px;
    height: 16px;
}

/* Farm Image Section */
.farm-image-section {
    padding: 0 8% 6rem;
    background: var(--color-cream);
}

.farm-image-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 550px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.farm-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/misc/knutegarden.jpg');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
    .farm-image {
        background-attachment: scroll;
    }
}

/* Attractions Carousel */
.attr-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding-left: 12%;
    min-height: 400px;
}

.attr-carousel {
    display: flex;
    gap: 1rem;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.attr-slide {
    flex-shrink: 0;
    width: 60vw;
    max-width: 850px;
    height: 450px;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    position: relative;
}

.attr-slide.active {
    opacity: 1;
    transform: scale(1.08);
}

.attr-slide-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.attr-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.attr-slide-content {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--color-white);
    z-index: 2;
}

.attr-tag {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

.attr-slide h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.attr-slide p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.attr-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    transition: gap 0.3s var(--transition-smooth);
}

.attr-slide:hover .attr-link {
    gap: 1rem;
}

.attr-link svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    min-height: 16px;
    max-height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

/* Attractions Navigation */
.attr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.attr-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-deep-fjord);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.attr-btn:hover:not(:disabled) {
    background: var(--color-deep-fjord);
}

.attr-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.attr-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-deep-fjord);
    transition: stroke 0.3s;
}

.attr-btn:hover:not(:disabled) svg {
    stroke: var(--color-white);
}

.attr-counter {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-display);
}

.attr-current {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-deep-fjord);
}

.attr-total {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Attractions Responsive */
@media (max-width: 1024px) {
    .attractions-section {
        padding: 5rem 5%;
    }

    .attr-carousel-wrapper {
        padding-left: 5%;
    }

    .attr-slide {
        width: 80vw;
    }

    .farm-image-section {
        padding: 0 5% 4rem;
    }

    .farm-image-container {
        height: 450px;
    }

    .farm-image {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .attractions-section {
        padding: 4rem 5%;
    }

    .attr-slide {
        width: 85vw;
        height: 350px;
    }

    .attr-slide-content {
        padding: 2rem;
    }

    .attr-nav {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .attr-btn {
        width: 44px;
        height: 44px;
    }

    .farm-image-section {
        padding: 0 5% 3rem;
    }

    .farm-image-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .attr-slide {
        width: 90vw;
        height: 280px;
    }
}

/* Mobile fade carousel */
@media (max-width: 900px) {
    .attr-carousel-wrapper {
        padding-left: 0 !important;
        overflow: hidden !important;
    }

    .attr-carousel {
        display: block !important;
        transform: none !important;
        gap: 0 !important;
    }

    .attr-slide {
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        flex-shrink: unset !important;
    }

    .attr-slide.active {
        display: block !important;
    }

    .attr-slide-inner {
        height: 350px !important;
        border-radius: 12px !important;
        margin: 0 1rem !important;
        overflow: hidden !important;
    }

    .attr-nav {
        justify-content: center;
        gap: 2rem;
        padding: 1.5rem 1rem;
    }
}
