/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Sage Tones Color Palette */
    --sage-light-1: #E2E4D6;
    --sage-light-2: #CFDDCD;
    --sage-light-3: #B8B497;
    --sage-medium-1: #747F6F;
    --sage-medium-2: #646E66;
    --sage-medium-3: #838474;
    --sage-dark-1: #8E9E86;
    --sage-dark-2: #99A285;
    --sage-dark-3: #4E6250;
    --sage-neutral-1: #C6CEC3;
    --sage-neutral-2: #9BAA97;
    --sage-accent-1: #83957D;
    --sage-accent-2: #6D7C67;
    --sage-accent-3: #80AE98;
    --sage-deep-1: #B0AE98;
    --sage-deep-2: #4B5B51;
    --sage-deep-3: #7E7F60;
    --sage-muted-1: #A79270;
    --sage-muted-2: #A6A883;
    
    --cream: #F5F3EE;
    --white: #FFFFFF;
    --text-dark: #2C3E2F;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--cream);
    overflow-x: hidden;
}

/* ===== Accessibility - Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--sage-dark-3);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--sage-accent-1);
    outline-offset: 2px;
}

/* ===== Universal Focus Styles ===== */
*:focus {
    outline: 3px solid var(--sage-accent-1);
    outline-offset: 3px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--sage-accent-1);
    outline-offset: 3px;
}

/* ===== Keyframe Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(245, 243, 238, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(131, 149, 125, 0.15);
    animation: fadeInDown 0.8s ease-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
    overflow: hidden;
    animation: scaleIn 0.8s ease-out 0.2s backwards;
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    justify-content: center;
}

.nav-menu li {
    animation: fadeInUp 0.6s ease-out backwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.3s; }
.nav-menu li:nth-child(2) { animation-delay: 0.4s; }
.nav-menu li:nth-child(3) { animation-delay: 0.5s; }
.nav-menu li:nth-child(4) { animation-delay: 0.6s; }
.nav-menu li:nth-child(5) { animation-delay: 0.7s; }

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--sage-accent-1);
}

.book-btn {
    background-color: var(--sage-dark-3);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    display: inline-block;
    animation: fadeInRight 0.8s ease-out 0.5s backwards;
}

.book-btn:hover,
.book-btn:focus {
    background-color: var(--sage-accent-2);
    transform: translateY(-50%) translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    padding: 2rem 0;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--sage-accent-1);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--sage-medium-2);
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 1.2s backwards;
}

.cta-button {
    background-color: var(--sage-dark-3);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 1.4s backwards;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--sage-accent-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 98, 80, 0.2);
}

.hero-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-image img {
    width: 100%;
    height: 450px;
    min-height: 450px;
    max-height: 450px;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    display: block;
    animation: fadeInRight 0.8s ease-out backwards;
}

.hero-image img:nth-child(1) {
    animation-delay: 1s;
}

.hero-image img:nth-child(2) {
    animation-delay: 1.2s;
}

/* ===== About Section ===== */
.about-section {
    padding: 8rem 3rem;
    background-color: var(--white);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--sage-accent-1);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--sage-medium-2);
    margin-bottom: 1.5rem;
}

.secondary-btn {
    background-color: transparent;
    color: var(--sage-dark-3);
    border: 2px solid var(--sage-dark-3);
    padding: 0.9rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    margin-top: 1rem;
}

.secondary-btn:hover,
.secondary-btn:focus {
    background-color: var(--sage-dark-3);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Services Section ===== */
.services-section {
    padding: 8rem 3rem;
    background-color: var(--cream);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card a {
    display: block;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(78, 98, 80, 0.1);
    border-color: var(--sage-light-2);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sage-medium-2);
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.1rem;
    color: var(--sage-accent-1);
    font-weight: 500;
    display: block;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 8rem 3rem;
    background-color: var(--white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.8s ease-in-out;
}

.gallery-item {
    min-width: calc((100% - 6rem) / 3);
    flex: 0 0 calc((100% - 6rem) / 3);
    height: 400px;
    background: linear-gradient(135deg, var(--sage-neutral-1) 0%, var(--sage-accent-1) 100%);
    border-radius: 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

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

.gallery-indicators,
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.gallery-indicators button,
.testimonials-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--sage-dark-3);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-indicators button[aria-selected="true"],
.testimonials-indicators button[aria-selected="true"] {
    background-color: var(--sage-dark-3);
}

.gallery-indicators button:hover,
.testimonials-indicators button:hover,
.gallery-indicators button:focus,
.testimonials-indicators button:focus {
    transform: scale(1.3);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 8rem 3rem;
    background-color: var(--sage-light-1);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-carousel {
    margin-top: 4rem;
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.8s ease-in-out;
}

.testimonial-card {
    min-width: calc((100% - 6rem) / 3);
    flex: 0 0 calc((100% - 6rem) / 3);
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--sage-accent-1);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 8rem 3rem;
    background-color: var(--cream);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.contact-info h2 {
    margin-bottom: 3rem;
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h3 {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--sage-accent-1);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.info-block p,
.info-block address {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--sage-medium-2);
    font-style: normal;
}

.info-block a {
    color: var(--sage-accent-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover,
.info-block a:focus {
    color: var(--sage-dark-3);
    text-decoration: underline;
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.booking-description {
    font-size: 0.95rem;
    color: var(--sage-medium-2);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Calendar Styles */
.calendar-container {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--cream);
    border-radius: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.calendar-nav {
    background-color: var(--sage-dark-3);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover,
.calendar-nav:focus {
    background-color: var(--sage-accent-2);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-accent-1);
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day:not(.empty):not(.past):hover,
.calendar-day:not(.empty):not(.past):focus {
    background-color: var(--sage-light-2);
    border-color: var(--sage-accent-1);
    transform: scale(1.05);
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-day.today {
    background-color: var(--sage-dark-3) !important;
    color: var(--white) !important;
    font-weight: 600;
    border: 2px solid var(--sage-dark-3) !important;
}

.calendar-day.past {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.weekend {
    background-color: var(--sage-light-1);
}

.calendar-day.weekend.today {
    background-color: var(--sage-dark-3) !important;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--sage-dark-3);
    padding: 4rem 3rem 2rem;
    color: var(--cream);
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    opacity: 0.7;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 243, 238, 0.2);
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.developer-credit {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 300;
}

.developer-credit a {
    color: var(--sage-neutral-1);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.developer-credit a:hover,
.developer-credit a:focus {
    color: var(--sage-light-2);
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .nav-content {
        flex: 1;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .nav-menu a {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .book-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.6rem;
        position: static;
        transform: none;
    }
    
    .book-btn:hover,
    .book-btn:focus {
        transform: translateY(-2px);
    }
    
    .hero {
        margin-top: 80px;
        padding-top: 2rem;
    }
    
    .about-container {
        display: flex;
        flex-direction: column;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-image {
        order: 2;
        margin-top: 2rem;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .secondary-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container,
    .testimonials-carousel {
        overflow: hidden;
        position: relative;
        padding: 0;
    }
    
    .gallery-track,
    .testimonials-track {
        display: flex;
        gap: 0;
        transition: transform 0.8s ease-in-out;
    }
    
    .gallery-item,
    .testimonial-card {
        min-width: 100%;
        flex: 0 0 100%;
        margin: 0;
    }
    
    .gallery-item {
        height: 350px;
    }
    
    .testimonial-card {
        padding: 1.5rem 1.2rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .testimonial-author {
        font-size: 0.8rem;
    }
    
    .hero,
    .about-section,
    .services-section,
    .gallery-section,
    .testimonials-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .calendar-container {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .calendar-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .calendar-title {
        font-size: 1.2rem;
    }
    
    .weekday {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.8rem;
    }
    
    .hero-image {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .hero-image img {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
    
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
    
    .developer-credit {
        font-size: 0.65rem;
    }
}

/* ===== Print Styles for Accessibility ===== */
@media print {
    .navbar,
    .gallery-controls,
    .testimonials-controls,
    .calendar-nav,
    .skip-link {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor;
    }
    
    .cta-button,
    .book-btn,
    .secondary-btn {
        border: 2px solid currentColor;
    }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}