/* ===================================
   Villa Tramonto - Classic Elegant Hotel
   =================================== */

/* CSS Custom Properties */
:root {
    --color-forest-dark: #1a3a2a;
    --color-forest: #2d5a3d;
    --color-forest-light: #3d7a52;
    --color-forest-muted: #4a6b5a;
    --color-cream: #faf8f4;
    --color-cream-dark: #f5f0e8;
    --color-warm-white: #fefcf8;
    --color-gold: #c9a96e;
    --color-gold-light: #d4b87e;
    --color-gold-dark: #b8944f;
    --color-text-dark: #1a1a1a;
    --color-text: #2d2d2d;
    --color-text-muted: #6b6b6b;
    --color-text-light: #9a9a9a;
    --color-border: #e8e4dc;
    --color-border-light: #f0ece4;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 3px rgba(26, 58, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 58, 42, 0.1);
    --shadow-lg: 0 8px 30px rgba(26, 58, 42, 0.12);
    --shadow-xl: 0 16px 50px rgba(26, 58, 42, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-forest-dark);
    border: 2px solid var(--color-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-green {
    background: var(--color-forest);
    color: var(--color-cream);
    border: 2px solid var(--color-forest);
}

.btn-green:hover {
    background: var(--color-forest-dark);
    border-color: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-cream);
    border: 2px solid rgba(250, 248, 244, 0.6);
}

.btn-outline-light:hover {
    background: var(--color-cream);
    color: var(--color-forest-dark);
}

/* Section Styles */
.section {
    padding: var(--space-3xl) 0;
}

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

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

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.section-eyebrow-light {
    color: var(--color-gold-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.section-title-light {
    color: var(--color-cream);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-forest-dark);
}

.nav-logo-icon {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-forest);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-forest-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(26, 58, 42, 0.4) 0%,
        rgba(26, 58, 42, 0.6) 50%,
        rgba(26, 58, 42, 0.8) 100%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-3xl);
    align-items: center;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    width: 100%;
}

.hero-card {
    max-width: 600px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(250, 248, 244, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(250, 248, 244, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 248, 244, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(250, 248, 244, 0.15);
    transform: translateX(8px);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    min-width: 80px;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(250, 248, 244, 0.8);
    flex: 1;
}

.stat-icon {
    color: var(--color-gold-light);
    opacity: 0.7;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.hero-scroll a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(250, 248, 244, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero-scroll a:hover {
    color: var(--color-cream);
}

/* Rooms Section */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.room-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.room-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.room-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.375rem 0.875rem;
    background: var(--color-gold);
    color: var(--color-forest-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.room-badge-premium {
    background: var(--color-forest-dark);
    color: var(--color-gold);
}

.room-content {
    padding: var(--space-xl);
}

.room-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.room-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.room-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.room-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-text);
}

.room-features svg {
    color: var(--color-forest);
    flex-shrink: 0;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.experience-item {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.experience-item:hover {
    background: rgba(250, 248, 244, 0.05);
}

.experience-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    color: var(--color-gold);
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: var(--space-sm);
}

.experience-description {
    font-size: 0.9375rem;
    color: rgba(250, 248, 244, 0.7);
    line-height: 1.7;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-large {
    grid-column: span 7;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 5;
}

.gallery-item:not(.gallery-item-large):not(.gallery-item-wide) {
    grid-column: span 3;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(26, 58, 42, 0.8), transparent);
    color: var(--color-cream);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Location Section */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.location-description {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.location-detail {
    display: flex;
    gap: var(--space-md);
}

.location-icon {
    color: var(--color-forest);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.location-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.location-detail p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.location-detail a {
    color: var(--color-forest);
    transition: var(--transition);
}

.location-detail a:hover {
    color: var(--color-gold);
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-border) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.map-icon {
    color: var(--color-forest);
    opacity: 0.5;
}

.map-placeholder p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-text);
}

.map-subtext {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-description {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
}

.contact-detail svg {
    color: var(--color-forest);
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--color-forest);
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--color-gold);
}

.contact-form-wrapper {
    background: var(--color-warm-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-cream);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    gap: var(--space-md);
}

.form-success.active {
    display: flex;
}

.form-success svg {
    color: var(--color-forest);
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.form-success p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background: var(--color-forest-dark);
    color: var(--color-cream);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: var(--space-sm);
}

.footer-logo-icon {
    color: var(--color-gold);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(250, 248, 244, 0.7);
    font-style: italic;
    font-family: var(--font-serif);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.footer-link-group h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
    font-family: var(--font-sans);
}

.footer-link-group a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(250, 248, 244, 0.7);
    padding: 0.375rem 0;
    transition: var(--transition);
}

.footer-link-group a:hover {
    color: var(--color-cream);
    padding-left: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 248, 244, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(250, 248, 244, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 200px;
    }
    
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-cream);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .hero-content {
        padding-top: var(--space-xl);
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item-large,
    .gallery-item-wide,
    .gallery-item:not(.gallery-item-large):not(.gallery-item-wide) {
        grid-column: span 1;
        grid-row: span 1;
        height: 240px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .room-features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
