/* ==========================================================================
   Raven Cottage - One Page Template Styles
   Inspired by Inigo.com's elegant, refined aesthetic
   ========================================================================== */

/* Variables */
:root {
    --rc-black: #1a1a1a;
    --rc-dark: #2d2d2d;
    --rc-gray: #6b6b6b;
    --rc-light-gray: #e8e8e8;
    --rc-off-white: #f7f6f4;
    --rc-white: #ffffff;
    --rc-accent: #8b7355;
    --rc-font-serif: 'Morion', 'Georgia', 'Times New Roman', serif;
    --rc-font-sans: 'johnston_itcregular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --rc-transition: 0.3s ease;
}

/* Reset for this template */
.raven-cottage-page {
    font-family: var(--rc-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--rc-dark);
    background-color: var(--rc-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.raven-cottage-page * {
    box-sizing: border-box;
}

/* Serif headings should not be uppercase */
.raven-cottage-page h1,
.raven-cottage-page h2,
.raven-cottage-page .rc-hero-title,
.raven-cottage-page .rc-section-title,
.raven-cottage-page .rc-review p {
    text-transform: none;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.rc-nav {
    position: fixed;
    top: 70px; /* Below the main site header */
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 40px;
    background-color: transparent;
    transition: opacity 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

.rc-nav-scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 12px 40px;
}

.rc-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rc-nav-logo {
    font-family: var(--rc-font-serif);
    font-size: 20px;
    color: var(--rc-white);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.rc-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.rc-nav-links a {
    font-size: 12px;
    color: var(--rc-white);
    text-decoration: none;
    letter-spacing: 0.09em;
    transition: var(--rc-transition);
    position: relative;
}

.rc-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--rc-white);
    transition: var(--rc-transition);
}

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

.rc-nav-cta {
    padding: 10px 20px !important;
    border: 1px solid var(--rc-white);
    transition: var(--rc-transition);
}

.rc-nav-cta:hover {
    background-color: var(--rc-white);
    color: var(--rc-black) !important;
}

.rc-nav-cta::after {
    display: none !important;
}

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

.rc-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--rc-white);
    transition: var(--rc-transition);
}

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

.rc-hero {
    min-height: calc(100vh - 70px); /* Account for main site header */
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: var(--rc-off-white);
    overflow: hidden;
}

.rc-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.rc-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%);
}

.rc-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
}

.rc-hero-subtitle {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rc-white);
    margin-bottom: 20px;
}

.rc-hero-title {
    font-family: var(--rc-font-serif);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    color: var(--rc-white);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.rc-hero-tagline {
    font-size: 18px;
    color: var(--rc-white);
    margin-bottom: 40px;
    font-weight: 300;
}

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

.rc-hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--rc-white);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rc-hero-scroll svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

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

.rc-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--rc-transition);
    cursor: pointer;
    border: none;
}

.rc-btn-primary {
    background-color: var(--rc-white);
    color: var(--rc-black);
}

.rc-btn-primary:hover {
    background-color: var(--rc-black);
    color: var(--rc-white);
}

.rc-btn-outline {
    background-color: transparent;
    color: var(--rc-black);
    border: 1px solid var(--rc-black);
}

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

/* ==========================================================================
   Sections - General
   ========================================================================== */

.rc-section {
    padding: 120px 40px;
}

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

.rc-section-header {
    margin-bottom: 60px;
}

.rc-section-header-center {
    text-align: center;
}

.rc-section-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rc-gray);
    margin-bottom: 15px;
}

.rc-section-title {
    font-family: var(--rc-font-serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    color: var(--rc-black);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.rc-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--rc-dark);
    margin-bottom: 30px;
}

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

.rc-about {
    background-color: var(--rc-white);
}

.rc-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.rc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.rc-feature h3 {
    font-family: var(--rc-font-serif);
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px;
    color: var(--rc-black);
}

.rc-feature p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--rc-gray);
    margin: 0;
}

.rc-about-image {
    position: sticky;
    top: 120px;
}

/* Image placeholders */
.rc-image-placeholder {
    background-color: var(--rc-off-white);
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-gray);
    font-size: 14px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.rc-gallery {
    background-color: var(--rc-off-white);
}

.rc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.rc-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.rc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rc-transition);
}

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

.rc-gallery-item .rc-image-placeholder {
    width: 100%;
    height: 100%;
}

/* Lightbox */
.rc-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.rc-lightbox.active {
    display: flex;
}

.rc-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.rc-lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.rc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--rc-white);
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

.rc-lightbox-close:hover {
    opacity: 0.7;
}

.rc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--rc-white);
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 10001;
}

.rc-lightbox-nav:hover {
    opacity: 0.7;
}

.rc-lightbox-prev {
    left: 20px;
}

.rc-lightbox-next {
    right: 20px;
}

/* ==========================================================================
   The Area Section
   ========================================================================== */

.rc-area {
    background-color: var(--rc-white);
}

.rc-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rc-area-image .rc-image-placeholder {
    height: 600px;
}

.rc-highlights {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--rc-light-gray);
}

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

.rc-highlight-number {
    display: block;
    font-family: var(--rc-font-serif);
    font-size: 24px;
    color: var(--rc-black);
    margin-bottom: 5px;
}

.rc-highlight-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rc-gray);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.rc-reviews {
    background-color: var(--rc-off-white);
}

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

.rc-review {
    background-color: var(--rc-white);
    padding: 40px;
    margin: 0;
    border: none;
}

.rc-review p {
    font-family: var(--rc-font-serif);
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: var(--rc-dark);
    margin: 0 0 20px;
}

.rc-review cite {
    font-size: 14px;
    font-style: normal;
    color: var(--rc-gray);
}

/* ==========================================================================
   Booking Section
   ========================================================================== */

.rc-booking {
    background-color: var(--rc-white);
}

.rc-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.rc-booking-content a {
    color: var(--rc-black);
}

.rc-calendar-placeholder {
    background-color: var(--rc-off-white);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-gray);
    font-size: 14px;
    padding: 40px;
}

/* ==========================================================================
   Contact/Footer Section
   ========================================================================== */

.rc-contact {
    background-color: var(--rc-black);
    color: var(--rc-white);
    padding: 80px 40px;
}

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

.rc-contact h3 {
    font-family: var(--rc-font-serif);
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 15px;
}

.rc-contact-info a {
    color: var(--rc-white);
    text-decoration: none;
}

.rc-contact-info a:hover {
    text-decoration: underline;
}

.rc-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.rc-social a {
    color: var(--rc-white);
    opacity: 0.7;
    transition: var(--rc-transition);
}

.rc-social a:hover {
    opacity: 1;
}

.rc-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rc-contact-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--rc-transition);
}

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

.rc-contact-legal {
    text-align: right;
}

.rc-contact-legal p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

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

@media screen and (max-width: 1024px) {
    .rc-about-grid,
    .rc-area-grid,
    .rc-booking-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .rc-about-image {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .rc-area-image {
        order: -1;
    }
    
    .rc-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .rc-reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .rc-nav {
        display: none;
    }
    
    .rc-nav-open .rc-nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .rc-nav-open .rc-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .rc-nav-open .rc-nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .rc-section {
        padding: 80px 20px;
    }
    
    .rc-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .rc-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rc-highlights {
        flex-direction: column;
        gap: 20px;
    }
    
    .rc-contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rc-contact-legal {
        text-align: center;
    }
    
    .rc-social {
        justify-content: center;
    }
}
