/* ==========================================================================
   Tailwind CSS - Compiled Styles
   This file contains utility classes and additional component styles
   ========================================================================== */

/* Base Tailwind directives would be compiled here */
/* For development, we'll use inline styles and the main style.css */

/* ==========================================================================
   Additional Layout Utilities
   ========================================================================== */

.container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

.container-narrow {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

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

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    background-color: var(--bg-0);
    background-image: url('../img/header-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero__title {
    font-size: 3rem;
    line-height: 1.1;
    max-width: 94vw;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero__title {
        font-size: 4.5rem;
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

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

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

.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--line-fg);
    margin-bottom: 1rem;
}

.section-divider--large {
    margin-bottom: 8rem;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    cursor: pointer;
}

.service-card__image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 1rem;
}

.service-card__title {
    font-family: 'Philosopher', serif;
    font-size: 1.25rem;
    text-transform: uppercase;
}

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

.about-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about-section {
        flex-direction: row;
        gap: 5rem;
    }
}

.about-section__image-container {
    position: relative;
    width: 520px;
    max-width: 96vw;
    height: 500px;
    overflow: hidden;
}

.about-section__background {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 410px;
    background-color: #EDE5DB;
}

.about-section__image-container .image-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 420px;
    height: 350px;
    overflow: hidden;
}

.about-section__image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    will-change: transform;
}

.about-section__content {
    flex: 1;
}

@media (min-width: 1024px) {
    .about-section__content {
        width: 40%;
    }
}

.about-section__title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.about-section__text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.5;
}

/* ==========================================================================
   Price Preview
   ========================================================================== */

.price-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .price-preview {
        grid-template-columns: 1fr auto 1fr;
    }
}

.price-preview__column {
    display: flex;
    flex-direction: column;
}

.price-preview__row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.price-preview__divider {
    width: 100%;
    height: 1px;
    background-color: var(--line-fg);
    margin: 1.25rem 0;
}

.price-preview__cta {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .price-preview__cta {
        order: 0;
    }

    .price-preview__column:last-child {
        order: 1;
    }
}

/* ==========================================================================
   About Text
   ========================================================================== */

.about-text {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .about-text {
        max-width: 70%;
    }
}

/* ==========================================================================
   Parallax Section
   ========================================================================== */

.parallax-section {
    width: 100%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.parallax-section--tall {
    height: 60vh;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   Contact Block
   ========================================================================== */

.contact-block {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #EEEBE2;
}

@media (min-width: 768px) {
    .contact-block {
        grid-template-columns: 1.2fr 2fr;
    }
}

.contact-block__info {
    padding: 3rem;
}

@media (min-width: 768px) {
    .contact-block__info {
        padding: 4rem;
    }
}

.contact-block__title {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.contact-block__hour-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.contact-block__divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 1.5rem 0;
}

.contact-block__address {
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.contact-block__image {
    display: none;
}

@media (min-width: 768px) {
    .contact-block__image {
        display: block;
    }

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

/* ==========================================================================
   Navbar Additional Styles
   ========================================================================== */

.navbar__logo-link {
    display: block;
}

.navbar__logo-link img,
.navbar__logo {
    padding: 1.75rem 0;
    width: 8rem;
    height: auto;
}

.navbar__links {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .navbar__links {
        display: flex;
    }
}

.navbar__links a,
.navbar__links span {
    cursor: pointer;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__book-link {
    text-decoration: underline;
    display: none;
}

@media (min-width: 1024px) {
    .navbar__book-link {
        display: block;
    }
}

.navbar__sidebar-toggle {
    display: none;
    width: 2rem;
    height: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .navbar__sidebar-toggle {
        display: flex;
    }
}

.navbar__sidebar-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--fg-0);
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 30vw;
    min-width: 300px;
    max-width: 400px;
    background-color: var(--bg-0);
    z-index: 70;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.sidebar__close span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fg-0);
}

.sidebar__close span:first-child {
    transform: translateY(-50%) rotate(45deg);
}

.sidebar__close span:last-child {
    transform: translateY(-50%) rotate(-45deg);
}

.sidebar__content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 3rem 2rem;
}

.sidebar__logo {
    width: 40%;
}

.sidebar__logo img {
    width: 100%;
    margin-bottom: 4rem;
}

.sidebar__contact {
    width: 60%;
}

.sidebar__title {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.sidebar__phone,
.sidebar__email {
    display: block;
    margin-bottom: 0.25rem;
}

.sidebar__social a {
    color: #2563eb;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer__divider {
    width: 100%;
    height: 1px;
    background-color: var(--line-fg);
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-around;
    }
}

.footer__title {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer__contact a {
    display: block;
    margin-bottom: 0.25rem;
}

.footer__social {
    color: #2563eb;
    display: block;
    margin-bottom: 0.5rem;
}

.footer__copyright {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   Mobile Menu Additional Styles
   ========================================================================== */

.mobile-menu__book {
    padding: 1rem 2rem;
    background-color: var(--fg-0);
    color: var(--bg-0);
    text-align: center;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.underline {
    text-decoration: underline;
}

.text-2xl {
    font-size: 1.5rem;
}

.pt-0 {
    padding-top: 0;
}
