/* ===================================
   Castello Cabin - Custom Styles
   =================================== */

/* CSS Variables */
:root {
    /* Terracotta & Sand Palette */
    --color-terracotta: #C46A4A;
    --color-terracotta-light: #D4896F;
    --color-terracotta-dark: #A8553A;
    --color-sand: #F5E6D3;
    --color-sand-light: #FAF3EB;
    --color-sand-dark: #E8D5C0;
    --color-cream: #FFFCF8;
    --color-charcoal: #2C2420;
    --color-text: #3D322C;
    --color-text-light: #6B5B54;
    --color-white: #FFFFFF;
    --color-border: #E8DDD5;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Quicksand', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
    --shadow-md: 0 4px 20px rgba(44, 36, 32, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 36, 32, 0.12);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-charcoal);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    border-color: var(--color-white);
}

.btn-full {
    width: 100%;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-terracotta);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-terracotta);
}

.nav-links a::after:hover {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-cream);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-btn {
    margin-top: var(--space-sm);
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: 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(44, 36, 32, 0.4) 0%,
        rgba(44, 36, 32, 0.2) 50%,
        rgba(44, 36, 32, 0.6) 100%
    );
}

.hero-content {
    text-align: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin-bottom: var(--space-md);
    background-color: rgba(196, 106, 74, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

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

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

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

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

/* About Section */
.about {
    background-color: var(--color-sand-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-images {
    position: relative;
}

.img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 50%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-sand-light);
}

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

.about-content .lead {
    font-size: 1.25rem;
    color: var(--color-terracotta);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* Amenities Section */
.amenities {
    background-color: var(--color-cream);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.amenity-card {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-terracotta-light);
}

.amenity-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-sand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.amenity-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-terracotta);
}

.amenity-card h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-charcoal);
}

.amenity-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Location Section */
.location {
    background-color: var(--color-sand-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: stretch;
}

.location-content {
    padding: var(--space-lg);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.location-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

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

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

.detail-item strong {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

.detail-item span {
    font-size: 1rem;
    color: var(--color-text);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* Contact Section */
.contact {
    background-color: var(--color-cream);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: var(--space-lg);
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.contact-info .section-tag {
    color: var(--color-sand);
}

.contact-info .section-title {
    color: var(--color-white);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-white);
    transition: opacity var(--transition-fast);
}

.contact-method:hover {
    opacity: 0.8;
}

.contact-method svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-method .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.contact-method .value {
    font-size: 1rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    padding: var(--space-lg);
}

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

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

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

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-sand-light);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(196, 106, 74, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: rgba(196, 106, 74, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-terracotta);
    font-weight: 500;
}

.form-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-sand);
    padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-terracotta-light);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(245, 230, 211, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: rgba(245, 230, 211, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid,
    .location-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .img-secondary {
        right: 20px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-style: normal;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .about-images {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .img-main img,
    .img-secondary img {
        height: 300px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}
