/* ============================================
   Gaither Horse Motel — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3A3A3A;
    background-color: #FAF8F4;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    line-height: 1.3;
    color: #1A3A2A;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.25);
}

.btn-primary {
    background-color: #2D5A3D;
    color: #F5F0E8;
    border-color: #2D5A3D;
}

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

.btn-secondary {
    background-color: #E8E4D8;
    color: #2D5A3D;
    border-color: #E8E4D8;
}

.btn-secondary:hover {
    background-color: #DDD8CA;
    border-color: #DDD8CA;
}

.btn-outline-light {
    background-color: transparent;
    color: #F5F0E8;
    border-color: #F5F0E8;
}

.btn-outline-light:hover {
    background-color: #F5F0E8;
    color: #2D5A3D;
}

.btn-light {
    background-color: #F5F0E8;
    color: #2D5A3D;
    border-color: #F5F0E8;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

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

/* ---- Section Labels & Headings ---- */
.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #2D5A3D;
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: #6B6B6B;
    max-width: 560px;
    margin: 0 auto;
}

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

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.08);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(45, 90, 61, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #1A3A2A;
}

.logo-icon {
    color: #2D5A3D;
}

.logo-text {
    letter-spacing: -0.01em;
}

/* ---- Nav ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2D5A3D;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

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

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3A3A3A;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2D5A3D;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover {
    color: #2D5A3D;
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

/* ---- 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: -2;
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 58, 42, 0.55) 0%,
        rgba(26, 58, 42, 0.45) 50%,
        rgba(26, 58, 42, 0.70) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(245, 240, 232, 0.15);
    border: 1px solid rgba(245, 240, 232, 0.3);
    color: #F5F0E8;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #F5F0E8;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(245, 240, 232, 0.85);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
}

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

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.8);
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245, 240, 232, 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); }
}

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

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

.intro-image-wrap {
    position: relative;
}

.intro-image-wrap img {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(45, 90, 61, 0.15);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.intro-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background-color: #2D5A3D;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.15;
}

.intro-text .section-label {
    margin-bottom: 12px;
}

.intro-text .section-heading {
    margin-bottom: 24px;
}

.intro-text p {
    color: #555;
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

/* ---- Rooms ---- */
.rooms {
    padding: 100px 0;
    background-color: #F0EDE4;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.room-card {
    background-color: #FAF8F4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(45, 90, 61, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(45, 90, 61, 0.15);
}

.room-card-featured {
    border: 2px solid #2D5A3D;
}

.room-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #2D5A3D;
    color: #F5F0E8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
}

.room-card-img {
    height: 220px;
    overflow: hidden;
}

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

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

.room-card-body {
    padding: 28px;
}

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

.room-desc {
    color: #6B6B6B;
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.room-features {
    margin-bottom: 24px;
}

.room-features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9375rem;
    color: #4A4A4A;
    margin-bottom: 8px;
}

.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background-color: #2D5A3D;
    border-radius: 50%;
    opacity: 0.6;
}

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

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.amenity-card {
    background-color: #FAF8F4;
    border: 1px solid rgba(45, 90, 61, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    border-color: rgba(45, 90, 61, 0.2);
    box-shadow: 0 8px 32px rgba(45, 90, 61, 0.1);
    transform: translateY(-4px);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(45, 90, 61, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D5A3D;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.amenity-card:hover .amenity-icon {
    background-color: #2D5A3D;
    color: #F5F0E8;
}

.amenity-card h3 {
    font-size: 1.1875rem;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.amenity-card p {
    color: #6B6B6B;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---- Location ---- */
.location {
    padding: 100px 0;
    background-color: #F0EDE4;
}

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

.location-desc {
    font-size: 1.0625rem;
    color: #555;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.location-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    color: #2D5A3D;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail strong {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #1A3A2A;
    margin-bottom: 4px;
}

.location-detail span,
.location-detail a {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.location-detail a:hover {
    color: #2D5A3D;
    text-decoration: underline;
}

.location-map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(45, 90, 61, 0.12);
}

.map-placeholder {
    background: linear-gradient(135deg, #E8E4D8 0%, #D4CFC0 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #2D5A3D;
}

.map-placeholder-inner svg {
    opacity: 0.5;
}

.map-placeholder-inner p {
    font-family: 'Lora', serif;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1A3A2A;
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 58, 42, 0.88) 0%,
        rgba(45, 90, 61, 0.82) 100%
    );
    z-index: -1;
}

.cta-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #F5F0E8;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* ---- Contact ---- */
.contact {
    padding: 100px 0;
}

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

.contact-desc {
    font-size: 1.0625rem;
    color: #555;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(45, 90, 61, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D5A3D;
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #1A3A2A;
    margin-bottom: 4px;
}

.contact-method a,
.contact-method span {
    color: #555;
    font-size: 0.9375rem;
}

.contact-method a:hover {
    color: #2D5A3D;
    text-decoration: underline;
}

/* ---- Contact Form ---- */
.contact-form-wrap {
    background-color: #FAF8F4;
    border: 1px solid rgba(45, 90, 61, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(45, 90, 61, 0.08);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: #1A3A2A;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1A3A2A;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #DDD8CA;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    color: #3A3A3A;
    background-color: #F5F0E8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2D5A3D;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A09888;
}

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

.form-note {
    font-size: 0.8125rem;
    color: #888;
    margin-top: 16px;
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.form-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #2D5A3D;
}

.form-success-inner svg {
    color: #2D5A3D;
}

.form-success-inner h3 {
    font-size: 1.5rem;
    color: #1A3A2A;
}

.form-success-inner p {
    color: #6B6B6B;
    font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
    background-color: #1A3A2A;
    color: rgba(245, 240, 232, 0.7);
    padding: 72px 0 32px;
}

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

.footer-logo {
    color: #F5F0E8;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F5F0E8;
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #F5F0E8;
}

.footer-contact li:last-child {
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, 0.1);
    padding-top: 28px;
    text-align: center;
    font-size: 0.875rem;
}

/* ---- Scroll 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);
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #FAF8F4;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 20px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.0625rem;
    }

    .nav-menu .btn {
        margin-top: 8px;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .intro-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-image-wrap {
        order: -1;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cta-actions {
        flex-direction: column;
    }

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

    .contact-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .intro,
    .rooms,
    .amenities,
    .location,
    .contact {
        padding: 64px 0;
    }

    .cta {
        padding: 80px 0;
    }
}
