/* Karlvik Ranch - Main Stylesheet */

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

:root { --nav-height: 70px; }

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 14pt;
    line-height: 1.6;
    color: #4a4a4a;
    background-color: #faf8f5;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

/* Elegant fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatingAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Header */
header {
    background: linear-gradient(rgba(139, 117, 83, 0.75), rgba(139, 117, 83, 0.75)), 
                url('images/hero-1920w.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-attachment: scroll;
}

/* Logo at top of page */
.page-logo {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: auto;
    z-index: 500;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(139, 117, 83, 0.95);
    padding: 10px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled .logo-container img {
    height: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background: rgba(212, 175, 120, 0.15);
    border: 2px solid rgba(212, 175, 120, 0.6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
}

.login-btn:hover {
    background: rgba(212, 175, 120, 0.25);
    border-color: #d4af78;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 120, 0.3);
}

.lang-link {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    opacity: 0.9;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.lang-link:hover {
    color: #d4af78;
    border-bottom-color: rgba(212, 175, 120, 0.7);
}

.lang-link.active {
    color: #d4af78;
    border-bottom-color: #d4af78;
}

.lang-sep { color: rgba(255,255,255,0.6); }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-wrapper {
    display: none;
    z-index: 1002;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af78;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease-out;
    margin-top: calc(var(--nav-height) + 20px);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1.5s ease-out 0.3s both;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.5s ease-out 0.6s both;
}

/* Floating elements */
.floating-element {
    animation: floatingAnimation 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 120, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 120, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.cta-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 175, 120, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite;
    z-index: -1;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #d4af78 0%, #b8956a 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    animation: fadeInUp 1.5s ease-out 0.9s both, pulse 2s ease-in-out 2s infinite;
    box-shadow: 0 8px 25px rgba(212, 175, 120, 0.4);
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.cta-button::after {
    content: '\2192';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 20px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #e0bb88 0%, #c4a378 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 120, 0.6);
    padding-right: 50px;
}

.cta-button:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(212, 175, 120, 0.4);
}

/* Main sections */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

section#about {
    padding-top: 120px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #8b7553;
    font-weight: 300;
    position: relative;
    padding-top: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af78, #8b7553);
    border-radius: 2px;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 22px;
}

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

.about-image {
    text-align: center;
    position: relative;
}

/* Exterior Photo Grid */
.exterior-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px 0 80px 0;
    max-width: 1400px;
}

.exterior-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.exterior-gallery picture {
    display: block;
}

/* Interior Photo Showcase */
.interior-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    align-items: center;
}

.interior-showcase img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.interior-showcase picture {
    display: block;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    user-select: none;
}

.lightbox-close:hover {
    color: #8b7553;
    transform: rotate(90deg);
}

.lightbox-caption {
    display: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    background: rgba(139, 117, 83, 0.7);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(139, 117, 83, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Pricing section */
.pricing {
    background-color: #faf8f5;
}

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

.private-stable-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e8e3db;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-top: 50px;
}

.stable-description h3 {
    color: #8b7553;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.stable-description p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.cta-text {
    margin-top: 30px;
    text-align: center;
}

.contact-cta-button {
    text-align: center;
    margin-top: 30px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8e3db;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured { border-color: #d4af78; }

.pricing-header h3 {
    color: #8b7553;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.price {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #8b7553;
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #d4af78;
    font-weight: bold;
}

.pricing-cta { text-align: center; margin-top: 10px; }
.quiet-link { color: #8b7553; text-decoration: none; border-bottom: 1px dotted #c9bba5; }
.quiet-link:hover { color: #6e5c40; border-bottom-color: #8b7553; }

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #8b7553;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #8b7553;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8e3db;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af78;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(212, 175, 120, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #8b7553;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.submit-btn:hover {
    background-color: #756347;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:active {
    transform: translateY(0);
}

.form-status {
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid #cfe7cf;
    background: #f3fbf3;
    color: #2b6b2b;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #8b7553;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
    display: none;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #d4af78;
}

/* Responsive design */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-center {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .mobile-nav-wrapper {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(139, 117, 83, 0.98);
        backdrop-filter: blur(10px);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 80px 30px 30px;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-nav-wrapper.active {
        right: 0;
    }

    .mobile-nav-wrapper ul {
        list-style: none;
        padding: 0;
        margin: 0 0 30px 0;
    }

    .mobile-nav-wrapper ul li {
        margin-bottom: 15px;
    }

    .mobile-nav-wrapper ul li a {
        color: white;
        text-decoration: none;
        font-size: 1.3rem;
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }

    .mobile-nav-wrapper ul li a:hover {
        background: rgba(212, 175, 120, 0.3);
        border-left-color: #d4af78;
        transform: translateX(5px);
    }

    .mobile-language-switcher {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        padding: 16px 20px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }

    nav {
        padding: 15px 20px;
    }

    nav.scrolled {
        padding: 10px 20px;
    }

    .logo-container img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    nav.scrolled .logo-container img {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .exterior-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0 60px 0;
    }

    .exterior-gallery img {
        height: 260px;
    }

    .interior-showcase {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .interior-showcase img {
        height: 240px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    section {
        padding: 60px 0;
        scroll-margin-top: calc(var(--nav-height) + 10px);
    }

    section#about {
        padding-top: 100px;
    }

    h2 {
        font-size: 2rem;
    }
}

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

    .container {
        padding: 0 15px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section:not(:first-child) {
    border-top: 1px solid #e8e3db;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #d4af78, #8b7553);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b7553, #d4af78);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Reveal animations */
@keyframes revealFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.reveal {
    opacity: 0;
}

.reveal.active {
    opacity: 1;
    animation: revealFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Elegant hover effects for text */
.elegant-hover {
    transition: color 0.3s ease;
    display: inline;
}

.elegant-hover:hover {
    color: #8b7553;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #8b7553;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    margin: 0 0 10px 0;
}

.cookie-banner button {
    background: white;
    color: #8b7553;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-banner a {
    color: white;
    text-decoration: underline;
}
