/* ========================================
   Goettingen Guest House - Main Stylesheet
   ======================================== */

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

:root {
    --gold: #c5a47e;
    --gold-dark: #b08d6a;
    --dark: #1a1a1a;
    --text: #555555;
    --text-light: #777777;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #2c2c2c;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title.left {
    text-align: left;
}

.title-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 25px;
}

.title-divider.left {
    margin: 0 0 25px;
}

.section-text {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--gold-dark);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i,
.top-bar-right i {
    color: var(--gold);
    margin-right: 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-link:hover {
    color: var(--gold);
}

.btn-book-now-sm {
    background: var(--gold);
    color: var(--white);
    padding: 5px 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-book-now-sm:hover {
    background: var(--gold-dark);
}

.currency-select {
    cursor: pointer;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: padding 0.3s, box-shadow 0.3s, transform 0.35s ease;
    transform: translateY(0);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Spacer to offset fixed navbar */
.navbar + * {
    /* handled by body padding */
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 5px 0;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gold);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 550px;
    background: url('https://images.unsplash.com/photo-1618773928121-c32242e63f39?w=1400&h=600&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 25px;
}

/* ========================================
   BOOKING BAR
   ======================================== */
.booking-bar {
    position: relative;
    margin-top: -40px;
    z-index: 10;
    padding: 0 20px;
}

.booking-form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    background: var(--white);
    padding: 25px 35px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.booking-field {
    flex: 1;
}

.booking-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.booking-field input,
.booking-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text);
    background: var(--white);
}

.booking-form .btn-primary {
    white-space: nowrap;
    padding: 12px 25px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.about-text .btn-primary {
    margin-top: 10px;
}

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

/* ========================================
   ROOMS SECTION
   ======================================== */
.rooms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.room-card {
    background: var(--white);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.room-info {
    padding: 20px;
}

.room-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

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

.room-features li {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.room-features li i {
    color: var(--gold);
    width: 18px;
    margin-right: 8px;
}

.room-amenities {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.room-amenities i {
    color: var(--gold);
    margin-right: 5px;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.room-price {
    background: var(--gold);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.room-link:hover {
    color: var(--gold-dark);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--gold);
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */
.testimonial {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial.revealed {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background: var(--bg-light);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.testimonial-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-content cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   SPECIAL OFFERS SECTION
   ======================================== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.offer-card {
    text-align: left;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

.offer-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.offer-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.offer-card p i {
    color: var(--gold);
    margin-right: 6px;
}

/* ========================================
   VIDEO CTA SECTION
   ======================================== */
.video-cta {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?w=1400&h=500&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-cta.revealed {
    opacity: 1;
    transform: translateY(0);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.video-content {
    position: relative;
    color: var(--white);
}

.video-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-content p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.85;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--white);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1);
}

/* ========================================
   FACILITIES SECTION
   ======================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 30px auto 0;
    text-align: left;
}

.facility-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.facility-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.facility-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.facility-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-light);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--gold-dark);
}

.footer-contact li {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-contact li i {
    color: var(--gold);
    width: 18px;
    margin-right: 8px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.newsletter-form button {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--gold-dark);
}

/* Copyright */
.copyright-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 0;
    font-size: 0.8rem;
}

.copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-text .section-title,
    .about-text .title-divider {
        text-align: center;
    }

    .title-divider.left {
        margin: 0 auto 25px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */
@media (max-width: 768px) {
    .top-bar-left,
    .currency-select {
        display: none;
    }

    .top-bar-inner {
        justify-content: flex-end;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .booking-form {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .booking-field {
        width: 100%;
    }

    .booking-form .btn-primary {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-cta {
        height: 300px;
    }

    .video-content h2 {
        font-size: 1.4rem;
        padding: 0 20px;
    }

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

    .copyright-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .testimonial-content {
        padding: 30px 25px;
    }

    .testimonial-content blockquote {
        font-size: 1.1rem;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.anim {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim.fade-up {
    transform: translateY(40px);
}

.anim.fade-left {
    transform: translateX(-40px);
}

.anim.fade-right {
    transform: translateX(40px);
}

.anim.zoom-in {
    transform: scale(0.9);
}

.anim.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered children animation */
.anim-stagger > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.anim-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.anim-stagger.visible > *:nth-child(4) { transition-delay: 0.45s; }

.anim-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation */
.hero-content h1,
.hero-content .btn-primary {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-content .btn-primary {
    animation-delay: 0.3s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image reveal animation */
.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    transition: transform 0.8s ease;
    transform: scale(1.1);
}

.img-reveal.visible img {
    transform: scale(1);
}

/* ========================================
   SUB-PAGE STYLES
   ======================================== */
.page-banner {
    position: relative;
    height: 300px;
    background: url('https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?w=1400&h=400&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-banner-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.page-banner-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

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

.contact-details li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.contact-details li i {
    color: var(--gold);
    width: 20px;
    margin-right: 10px;
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

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

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

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.blog-card {
    background: var(--white);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 200px;
    }

    .page-banner-content h1 {
        font-size: 1.8rem;
    }
}
