/* ============================================
   Hillside Perch — Boutique Lodging, Salida CO
   Bold editorial style: plum + amber palette
   ============================================ */

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

:root {
    --plum-deep: #3D1C2E;
    --plum: #7B3F5B;
    --plum-light: #A66D85;
    --plum-pale: #F3E8ED;
    --plum-ghost: #FBF7F8;
    --amber: #C8861A;
    --amber-light: #E5A935;
    --amber-pale: #FDF3E0;
    --cream: #FAF6F3;
    --warm-white: #FDFCFA;
    --charcoal: #1A1418;
    --text: #2C1E24;
    --text-muted: #6B5460;
    --text-light: #9A8290;
    --border: #E8D8DF;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 2px 8px rgba(61, 28, 46, 0.06);
    --shadow-md: 0 8px 32px rgba(61, 28, 46, 0.10);
    --shadow-lg: 0 16px 64px rgba(61, 28, 46, 0.14);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--plum-deep);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--space-sm);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--plum);
    color: #fff;
    border-color: var(--plum);
}

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.site-header.scrolled .logo {
    color: var(--plum-deep);
}

.logo-icon {
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 0.3s ease;
}

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

.main-nav a:hover {
    color: #fff;
}

.site-header.scrolled .main-nav a {
    color: var(--text-muted);
}

.site-header.scrolled .main-nav a:hover {
    color: var(--plum);
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.site-header.scrolled .nav-toggle-line {
    background: var(--plum-deep);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(61, 28, 46, 0.55) 0%,
        rgba(61, 28, 46, 0.40) 50%,
        rgba(61, 28, 46, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-lg) var(--space-md);
}

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

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: var(--space-md);
    font-weight: 800;
    line-height: 1.08;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber-light);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    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%);
    z-index: 1;
    color: rgba(255,255,255,0.6);
    animation: bounce 2s infinite;
}

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

/* --- Statement --- */
.statement {
    padding: var(--space-2xl) 0;
    background: var(--warm-white);
}

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

.statement-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--space-sm);
    display: block;
}

.statement-headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.statement-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

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

.statement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* --- Rooms --- */
.rooms {
    padding: var(--space-2xl) 0;
    background: var(--plum-ghost);
}

.rooms .section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.room-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.room-image {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

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

.room-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.room-features li {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    background: var(--plum-pale);
    color: var(--plum);
    border-radius: 50px;
}

.rooms-cta {
    text-align: center;
    padding: var(--space-lg);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.rooms-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.rooms-cta .btn {
    margin-top: var(--space-xs);
}

/* --- Experience --- */
.experience {
    padding: var(--space-2xl) 0;
    background: var(--charcoal);
    color: #fff;
}

.experience .section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.experience .section-title {
    color: #fff;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.exp-item {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s ease, transform 0.3s ease;
}

.exp-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.exp-icon {
    color: var(--amber-light);
    margin-bottom: var(--space-sm);
}

.exp-item h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.exp-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}

/* --- Location --- */
.location {
    padding: var(--space-2xl) 0;
    background: var(--warm-white);
}

.location .section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

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

.location-map iframe {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

.location-detail {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.location-detail svg {
    flex-shrink: 0;
    color: var(--plum);
    margin-top: 2px;
}

.location-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--plum-deep);
    margin-bottom: 0.25rem;
}

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

.location-detail a:hover {
    color: var(--plum);
    text-decoration: underline;
}

.nearby {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.nearby h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--space-sm);
}

.nearby ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.nearby li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.nearby li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--plum-light);
    border-radius: 50%;
}

/* --- Gallery --- */
.gallery {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--plum-ghost);
}

.gallery .section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    grid-auto-rows: 280px;
}

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

.gallery-item:nth-child(2),
.gallery-item:nth-child(6) {
    grid-row: span 2;
    grid-auto-rows: 140px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* --- Contact --- */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: var(--space-sm);
}

.contact-info > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

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

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

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

.contact-detail a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--plum-ghost);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(123, 63, 91, 0.1);
}

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

.form-success {
    text-align: center;
    padding: var(--space-lg);
}

.form-success svg {
    color: var(--plum);
    margin-bottom: var(--space-sm);
}

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

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

/* --- Footer --- */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255,255,255,0.55);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-auto-rows: 220px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--plum-deep);
        padding: 5rem var(--space-md) var(--space-md);
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .main-nav a {
        color: rgba(255,255,255,0.8) !important;
        font-size: 1.1rem;
    }
    
    .main-nav a:hover {
        color: var(--amber-light) !important;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .statement .container {
        grid-template-columns: 1fr;
    }
    
    .statement-image {
        order: -1;
        max-height: 400px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(6) {
        grid-row: span 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: var(--space-md);
    }
}
