/* ============================================
   Stone Hall — Hotels & Lodging, Farmington ME
   Clean minimalist · Forest green + off-white
   ============================================ */

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

:root {
    --green-900: #0d1f14;
    --green-800: #1a3c2a;
    --green-700: #24543a;
    --green-600: #2d6a4f;
    --green-500: #3a8a65;
    --green-100: #c8d6c4;
    --green-50:  #e8f0e9;
    --cream:     #faf9f6;
    --cream-dark:#f0efe9;
    --white:     #ffffff;
    --text-dark: #1a1a18;
    --text-mid:  #3d3d3a;
    --text-light:#6b6b66;
    --line:      #e2e0d9;
    --line-light:#efecea;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --nav-h: 72px;
    --container: 1200px;
    --radius: 4px;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 12px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--green-800);
    letter-spacing: 0.01em;
}

.logo-mark {
    color: var(--green-700);
}

/* --- Nav --- */
.nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

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

.nav a:hover {
    color: var(--green-700);
}

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

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- 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-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 31, 20, 0.55) 0%,
        rgba(13, 31, 20, 0.45) 50%,
        rgba(13, 31, 20, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding-top: var(--nav-h);
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.divider-line {
    width: 100%;
    max-width: var(--container);
    height: 1px;
    background: var(--line);
}

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

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

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

.room-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.room-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

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

.room-info {
    padding: 32px;
}

.room-info h3 {
    font-size: 1.375rem;
    margin-bottom: 10px;
}

.room-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 20px;
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.room-features li {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-mid);
    padding: 6px 0;
    border-top: 1px solid var(--line-light);
}

.rooms-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.value-label {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--green-700);
    min-width: 60px;
    padding-top: 2px;
}

.value-sep {
    display: block;
    width: 1px;
    flex: 1;
    background: var(--line);
    min-width: 32px;
    margin-top: 10px;
}

.value-text {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 6px;
}

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

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

.location-info {
    padding: 40px 0;
}

.location-address {
    font-style: normal;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.location-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--green-700);
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.location-phone:hover {
    color: var(--green-600);
}

.location-note {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loc-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9375rem;
    color: var(--text-mid);
}

.loc-feature svg {
    color: var(--green-600);
    flex-shrink: 0;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--line);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--green-800);
}

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

.contact .section-eyebrow {
    color: var(--green-100);
}

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

.contact-text p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    transition: border-color 0.2s ease;
}

.contact-phone:hover {
    border-color: var(--white);
}

/* --- Form --- */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
    color: var(--green-700);
}

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

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

/* --- Footer --- */
.footer {
    padding: 64px 0 40px;
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
}

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

.footer-phone {
    font-size: 1.0625rem;
    color: var(--green-700);
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: var(--green-600);
}

.footer-bottom {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 300px;
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav a {
        font-size: 0.9375rem;
    }
    
    .hero-headline {
        font-size: clamp(1.875rem, 8vw, 2.75rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .rooms {
        padding: 80px 0;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .location {
        padding: 80px 0;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
    
    .room-image img {
        height: 240px;
    }
    
    .value {
        flex-wrap: wrap;
    }
    
    .value-sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        padding-top: calc(var(--nav-h) + 24px);
    }
}

/* --- 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;
    }
    
    .hero-scroll {
        display: none;
    }
}
