/* ============================================
   Hampton Inn La Junta — Styles
   Teal + Slate Grey | Clean Minimalist
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #1e293b;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
    color: #0f172a;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 60px;
    }
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 16px;
    z-index: 200;
    font-size: 0.875rem;
    border-radius: 4px;
}

.skip-link:focus {
    top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #0d9488;
    color: #f8fafc;
    border-color: #0d9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
}

.btn-outline {
    background: transparent;
    color: #0f172a;
    border-color: #0f172a;
}

.btn-outline:hover {
    background: #0f172a;
    color: #f8fafc;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-light {
    background: #f8fafc;
    color: #0f172a;
    border-color: #f8fafc;
}

.btn-light:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    color: #0f172a;
}

.section-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.35s ease;
}

.site-header.scrolled {
    background: rgba(250, 250, 250, 0.97);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.logo-icon {
    color: #0d9488;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.main-nav ul {
    display: none;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}

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

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

.main-nav a.btn-outline {
    padding: 10px 24px;
    font-size: 0.75rem;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger {
    position: relative;
    width: 16px;
    height: 12px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #0f172a;
    transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #fafafa;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    
    .main-nav a {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 41, 58, 0.70) 50%,
        rgba(13, 148, 136, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    max-width: 720px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 28px;
}

.tag-line {
    width: 40px;
    height: 1px;
    background: rgba(248, 250, 252, 0.4);
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 400;
    color: #f8fafc;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.015em;
}

.hero-headline em {
    font-style: italic;
    color: #5eead4;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(248, 250, 252, 0.75);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    color: rgba(248, 250, 252, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

@media (max-width: 767px) {
    .hero-content {
        padding: calc(72px + 40px) 24px 100px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* --- Intro --- */
.intro {
    padding: 120px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.intro-text .lead {
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.85;
    margin-bottom: 20px;
}

.intro-text p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.intro-image {
    overflow: hidden;
    border-radius: 2px;
}

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

.intro-image:hover img {
    transform: scale(1.02);
}

/* --- Rooms --- */
.rooms {
    padding: 120px 0;
    background: #f1f5f9;
}

.rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.room-card {
    background: #fafafa;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.room-img {
    overflow: hidden;
    aspect-ratio: 7/5;
}

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

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

.room-info {
    padding: 28px 28px 32px;
}

.room-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.room-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 20px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-features li {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d9488;
    padding: 6px 12px;
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 2px;
}

/* --- Amenities --- */
.amenities {
    padding: 120px 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amenity-card {
    background: #fafafa;
    padding: 40px 32px;
    transition: background 0.3s ease;
}

.amenity-card:hover {
    background: #f8fafc;
}

.amenity-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 2px;
    margin-bottom: 24px;
    color: #0d9488;
}

.amenity-card h3 {
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.amenity-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.8;
}

/* --- Breakfast --- */
.breakfast {
    padding: 120px 0;
    background: #f1f5f9;
}

.breakfast-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .breakfast-split {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.breakfast-content .lead {
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.85;
    margin-bottom: 16px;
}

.breakfast-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 32px;
}

.breakfast-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 400;
}

.highlight-line {
    width: 24px;
    height: 1px;
    background: #0d9488;
    flex-shrink: 0;
}

.breakfast-image {
    overflow: hidden;
    border-radius: 2px;
}

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

/* --- Location --- */
.location {
    padding: 120px 0;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .location-content {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.location-text .lead {
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.85;
    margin-bottom: 16px;
}

.location-text p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 32px;
}

.location-details {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #334155;
}

.detail-row svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #0d9488;
}

.detail-row a {
    color: #0d9488;
    transition: color 0.2s ease;
}

.detail-row a:hover {
    color: #0f766e;
}

.location-map {
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e2e8f0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #64748b;
    text-align: center;
    padding: 40px;
}

.map-placeholder svg {
    color: #0d9488;
    opacity: 0.5;
}

.map-placeholder p {
    font-size: 0.85rem;
    line-height: 1.7;
}

/* --- CTA / Contact --- */
.cta {
    padding: 120px 0;
    background: #0f172a;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 768px) {
    .cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.cta-text .section-title {
    color: #f8fafc;
}

.cta-text p {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.8;
    margin-bottom: 32px;
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 400;
    color: #5eead4;
    transition: color 0.2s ease;
}

.cta-phone:hover {
    color: #99f6e4;
}

.cta-address {
    font-size: 0.88rem;
    color: rgba(248, 250, 252, 0.45);
}

/* Form */
.cta-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.5);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(248, 250, 252, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.06);
}

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

.cta-form .btn-light {
    width: 100%;
    margin-top: 4px;
}

.form-note {
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.3);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    gap: 16px;
}

.form-success svg {
    color: #5eead4;
}

.form-success h3 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 4px;
}

.form-success p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.5);
    line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
    background: #0a0f1a;
    padding: 80px 0 0;
    color: rgba(248, 250, 252, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 64px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 48px;
    }
}

.logo-footer .logo-text {
    color: #f8fafc;
}

.logo-footer .logo-sub {
    color: rgba(248, 250, 252, 0.4);
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-top: 20px;
    max-width: 320px;
    color: rgba(248, 250, 252, 0.35);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.35);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(248, 250, 252, 0.55);
    transition: color 0.2s ease;
}

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

.footer-contact address p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: #5eead4;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.25);
}

.footer-note {
    font-size: 0.72rem !important;
    color: rgba(248, 250, 252, 0.18) !important;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
