/* ===================================
   Haby Settlement Inn - Styles
   Clean, minimalist, forest green palette
==================================== */

:root {
    --forest: #1a3c2a;
    --forest-light: #2d5a3f;
    --forest-dark: #0f2419;
    --cream: #f8f6f1;
    --cream-dark: #efece5;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #9a9a9a;
    --line: #e0ddd6;
    --line-light: #efece5;
    
    --font-display: 'Instrument Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Typography
==================================== */

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 16px;
    display: block;
}

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

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===================================
   Buttons
==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

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

.btn-full {
    width: 100%;
}

/* ===================================
   Header
==================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 241, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}

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

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

.logo {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--forest);
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ===================================
   Hero
==================================== */

.hero {
    padding-top: 136px;
    padding-bottom: 80px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

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

.hero-content {
    max-width: 520px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.hero-visual {
    position: relative;
}

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

.hero-card-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.stat-cards {
    display: flex;
    gap: 16px;
    margin-top: -48px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.stat-card {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-light);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--forest);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================================
   Section Header
==================================== */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===================================
   About
==================================== */

.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content .lead {
    color: var(--text-dark);
    font-size: 1.125rem;
}

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

.amenity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-dark);
}

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

/* ===================================
   Rooms
==================================== */

.rooms {
    padding: 100px 0;
    background: var(--cream);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-light);
    transition: all 0.3s ease;
}

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

.room-image {
    overflow: hidden;
}

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

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

.room-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-info h3 {
    margin-bottom: 4px;
}

.room-info > p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.room-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 4px 0;
}

.room-features li {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--forest);
    border-radius: 50%;
}

.rooms-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.rooms-note a {
    color: var(--forest);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s ease;
}

.rooms-note a:hover {
    border-color: var(--forest);
}

/* ===================================
   Location
==================================== */

.location {
    padding: 100px 0;
    background: var(--white);
}

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

.location-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-content .lead {
    color: var(--text-dark);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    gap: 16px;
}

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

.detail-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 4px;
}

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

.detail-item a {
    color: var(--forest);
    transition: color 0.2s ease;
}

.detail-item a:hover {
    color: var(--forest-light);
}

.nearby {
    padding-top: 8px;
}

.nearby h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

.nearby li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.nearby li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--forest);
    border-radius: 50%;
    opacity: 0.5;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-light);
}

.location-map iframe {
    width: 100%;
    height: 500px;
    display: block;
}

/* ===================================
   Contact
==================================== */

.contact {
    padding: 100px 0;
    background: var(--forest);
}

.contact .eyebrow {
    color: rgba(255,255,255,0.6);
}

.contact h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.contact > .container > .contact-grid > .contact-info > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item svg {
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.contact-item a {
    color: rgba(255,255,255,0.9);
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(26, 60, 42, 0.1);
}

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

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

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

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

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

.form-success a {
    color: var(--forest);
    font-weight: 500;
}

/* ===================================
   Footer
==================================== */

.site-footer {
    background: var(--forest-dark);
    padding: 64px 0 32px;
}

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

.footer-brand h3 {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

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

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

/* ===================================
   Animations (progressive enhancement)
==================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   Responsive
==================================== */

@media (max-width: 1024px) {
    .hero-grid {
        gap: 48px;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.open {
        transform: translateY(0);
    }
    
    .main-nav a {
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 104px;
        padding-bottom: 60px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-card-main img {
        height: 280px;
    }
    
    .stat-cards {
        margin-top: -32px;
        flex-direction: column;
    }
    
    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .amenity-list {
        grid-template-columns: 1fr;
    }
    
    .room-features {
        grid-template-columns: 1fr;
    }
}
