/* 
 * SUNOLUS VINEYARD HOTEL
 * LUXURY THEME 4.1
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Marcellus&display=swap');

:root {
    /* Light Luxury Color Palette */
    --white: #ffffff;
    --off-white: #f9f7f3;
    --cream: #f5f0e5;
    --sand: #e8e0d0;
    --taupe: #d6cdbf;
    --light-gray: #e5e5e5;
    --gray: #9e9e9e;
    --dark-gray: #424242;
    --charcoal: #333333;
    --noir: #121212;
    
    /* Brand Colors */
    --wine-red: #8c0029;
    --bordeaux: #6a0018;
    --burgundy: #4e0018;
    --gold: #d4af37;
    --wine-gold: #ae8a4c;
    --gold-light: #f1d78c;
    --olive: #556b2f;
    --sage: #87a96b;
    
    /* Gradients */
    --gradient-light: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    --gradient-gold: linear-gradient(135deg, var(--wine-gold) 0%, var(--gold) 50%, var(--gold-light) 100%);
    --gradient-wine: linear-gradient(135deg, var(--burgundy) 0%, var(--wine-red) 100%);
    --gradient-earth: linear-gradient(135deg, var(--olive) 0%, var(--sage) 100%);
    --gradient-dark: linear-gradient(135deg, var(--noir) 0%, var(--charcoal) 100%);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Marcellus', serif;
    --font-secondary: 'Cormorant Garamond', serif;
    --font-size-base: 16px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    
    /* Z-index layers */
    --z-back: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    
    /* Glassmorphism Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-glow: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sizing */
    --container-width: 1280px;
    --content-width: 1280px;
    --header-height: 80px;
    --section-spacing: 6rem;
    
    /* Neomorphism */
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(0, 0, 0, 0.06);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--dark-gray);
    font-weight: 400;
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 0.02em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 0.15em;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60%;
    height: 3px;
    background: var(--wine-red);
}

h3 {
    font-size: 1.8rem;
}

p {
    font-family: var(--font-secondary);
    margin-bottom: 1.8rem;
    font-weight: 400;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.text-spaced {
    letter-spacing: 0.5em;
}

.text-white {
    color: var(--white);
}

.text-gray-600 {
    color: var(--gray);
}

.text-gray-800 {
    color: var(--dark-gray);
}

/* Section Styles */
.section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.section-white {
    background-color: var(--white);
    color: var(--dark-gray);
}

.section-cream {
    background-color: var(--cream);
    color: var(--dark-gray);
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-wine {
    background: var(--gradient-wine);
    color: var(--white);
}

.section-gradient-light {
    background: var(--gradient-light);
    color: var(--dark-gray);
}

.section-gradient-wine {
    background: var(--gradient-wine);
    color: var(--white);
}

.section-gradient-earth {
    background: var(--gradient-earth);
    color: var(--white);
}

.section-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.section-title-container {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60%;
    height: 3px;
    background: var(--wine-red);
}

.section-dark .section-title::after,
.section-wine .section-title::after,
.section-gradient-wine .section-title::after {
    background: var(--gold-light);
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 600px;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 2rem;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(100%);
}

/* Button Styles */
.btn {
    font-family: var(--font-display);
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: all var(--transition-fast);
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    z-index: -1;
    transition: width var(--transition-fast);
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--wine-red);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--burgundy);
}

.btn-secondary {
    background: transparent;
    color: var(--wine-red);
    border: 1px solid var(--wine-red);
}

.btn-secondary:hover {
    background: var(--wine-red);
    color: var(--white);
}

.btn-dark {
    background: var(--charcoal);
    color: var(--white);
    border: none;
}

.btn-dark:hover {
    background: var(--noir);
}

.btn-light {
    background: var(--white);
    color: var(--wine-red);
    border: none;
}

.btn-light:hover {
    background: var(--cream);
}

.btn-gold {
    background: var(--gold-light);
    color: var(--burgundy);
    border: none;
}

.btn-gold:hover {
    background: var(--gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--noir);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.2);
    transform: scale(1.05);
    transition: transform 20s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
    color: var(--white);
}

.hero-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: var(--noir);
}

.hero-video video, .youtube-bg-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.2);
}

.youtube-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.4));
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease forwards 1.2s;
    opacity: 0;
}

.hero-scroll .icon {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
    color: var(--white);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card__image {
    height: 240px;
    overflow: hidden;
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.feature-card:hover .feature-card__image img {
    transform: scale(1.1);
}

.feature-card__content {
    padding: 2rem;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.feature-card__text {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.animate-fadeIn {
    opacity: 0;
    animation: fadeIn var(--transition-medium) ease forwards;
}

.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp var(--transition-medium) ease forwards;
}

.animate-slideUp {
    opacity: 0;
    animation: slideUp var(--transition-medium) ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-medium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--wine-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--burgundy);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Form Elements */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-gray);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--taupe);
    border-radius: 4px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    border-color: var(--wine-red);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(140, 0, 41, 0.25);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Header page styles */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-header-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
#site-header {
    transition: all 0.3s ease;
}

#site-header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#header-bg {
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dropdown-content {
    transition: all 0.3s ease;
}

/* Header Navigation */
#site-header nav a {
    position: relative;
    transition: all 0.3s ease;
}

#site-header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--wine-red);
    transition: width 0.3s ease;
}

#site-header nav a:hover::after,
#site-header nav a.active::after {
    width: 100%;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    :root {
        --content-width: 1140px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --content-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --content-width: 720px;
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --content-width: 100%;
        --header-height: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.7rem;
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title-container {
        margin-bottom: 3rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--taupe);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wine-red);
}

/* Divider Styles */
.divider {
    width: 100%;
    height: 1px;
    background-color: var(--taupe);
    margin: 3rem 0;
    position: relative;
}

.divider-center::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--wine-red);
    border-radius: 50%;
}

.divider-wine {
    background-color: var(--wine-red);
    opacity: 0.3;
}

.divider-gold {
    background: var(--gradient-gold);
}

/* Stats Counter */
.stats-counter {
    text-align: center;
    padding: 2rem;
    transition: all var(--transition-medium);
    border-radius: 8px;
}

.stats-counter:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stats-counter__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--wine-red);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-counter__label {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.section-dark .stats-counter__number,
.section-wine .stats-counter__number {
    color: var(--gold-light);
}

.section-dark .stats-counter__label,
.section-wine .stats-counter__label {
    color: var(--white);
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-animate-title {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-animate-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-animate-button {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

/* Hero title with span styling */
#hero-title {
    letter-spacing: 0.15em;
    line-height: 1.2;
}

#hero-title span {
    display: block;
    font-size: 0.9em;
    margin-top: 0.5rem;
}

/* Blurred Letters Animation */
.blurred-heading {
    display: inline-block;
    line-height: 1.4;
    perspective: 1000px;
    opacity: 1; /* Start visible for Intersection Observer */
}

.vamtam-word {
    display: inline-block;
    letter-spacing: normal;
}

.vamtam-letter {
    display: inline-block;
    opacity: 0; /* Start invisible, will be animated by JS */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    margin: 0;
    padding: 0;
    letter-spacing: normal;
}

.vamtam-space {
    display: inline-block;
    width: 0.25em;
}

.vamtam-letter.blurred {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px) rotateX(10deg);
}

/* Initial states for animated elements */
.prose p, 
section a.inline-block, 
section button[type="submit"],
.stats-counter,
.form-element {
    opacity: 0;
}

@keyframes vamtam-blurred-letters {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(10px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) rotateX(0);
    }
} 