/*
 * Overton Lofts Page Stylesheet
 * Custom styles for the Overton Lofts apartment community page
 */

/* Theme Colors */
:root {
    --oj-primary: #545454;
    --oj-secondary: #eee7da;
    --oj-tertiary: #5f7d7c;
    --oj-white: #ffffff;
    --oj-text: #515151;
}

/* Hero Section - Full Width with Background Image */
.oj-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.oj-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.oj-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*     background: linear-gradient(135deg, rgba(84, 84, 84, 0.92) 0%, rgba(95, 125, 124, 0.88) 100%); */
    z-index: 2;
}

.oj-hero__container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 80px 100px;
    margin: 0 auto;
}

.oj-hero__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--oj-white);
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.oj-hero__badge {
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--oj-tertiary);
    color: var(--oj-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.oj-hero__title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--oj-white);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.oj-hero__divider {
    width: 100px;
    height: 3px;
    background-color: var(--oj-secondary);
    margin: 25px auto;
    animation: expandWidth 0.8s ease 0.4s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.oj-hero__intro,
.oj-hero__description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--oj-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.oj-hero__intro {
    font-size: 19px;
}

.oj-hero__description {
    animation-delay: 0.8s;
}

.oj-hero__intro strong,
.oj-hero__description strong {
    color: var(--oj-white);
    font-weight: 700;
    background: linear-gradient(90deg, var(--oj-secondary), #f5efe3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.oj-hero__cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 1s both;
}

.oj-hero__button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: var(--oj-tertiary);
    color: var(--oj-white);
    border: 2px solid var(--oj-tertiary);
}

.oj-hero__button:hover {
    background-color: var(--oj-secondary);
    border-color: var(--oj-secondary);
    color: var(--oj-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.oj-hero__button--outline {
    background-color: transparent;
    border-color: var(--oj-white);
    color: var(--oj-white);
}

.oj-hero__button--outline:hover {
    background-color: var(--oj-white);
    border-color: var(--oj-white);
    color: var(--oj-primary);
}

/* Smooth Scroll for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Section Titles */
.oj-section-title {
    color: var(--oj-primary);
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.oj-section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--oj-tertiary);
    margin: 15px auto 0;
}

/* Amenities Section */
.oj-amenities {
    background-color: var(--oj-secondary);
    padding: 60px 100px !important;
}

.oj-amenities__intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 17px;
}

.oj-amenities__grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.oj-amenities__carousel-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.oj-amenities__carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.oj-amenities__slide {
    position: relative;
}

.oj-amenities__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Carousel Navigation - Override theme defaults */
.oj-amenities__carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.oj-amenities__carousel .owl-nav button {
    pointer-events: all;
    background-color: rgba(95, 125, 124, 0.8) !important;
    color: var(--oj-white) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 10px;
    position: relative;
}

.oj-amenities__carousel .owl-nav button:hover {
    background-color: var(--oj-tertiary) !important;
    transform: scale(1.1);
}

/* Override theme's :before pseudo-elements that add duplicate icons */
.oj-amenities__carousel .owl-prev:before,
.oj-amenities__carousel .owl-next:before {
    content: none !important;
    display: none !important;
}

/* Show our FontAwesome icons */
.oj-amenities__carousel .owl-nav button i {
    font-size: 18px;
    display: block;
    position: relative;
}

.oj-amenities__carousel .owl-nav button.owl-prev {
    margin-left: 10px;
}

.oj-amenities__carousel .owl-nav button.owl-next {
    margin-right: 10px;
}

/* Carousel Dots - Override theme defaults */
.oj-amenities__carousel .owl-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.oj-amenities__carousel .owl-dot {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
}

.oj-amenities__carousel .owl-dot span {
    display: none !important;
}

.oj-amenities__carousel .owl-dot:hover,
.oj-amenities__carousel .owl-dot.active {
    background-color: var(--oj-tertiary) !important;
    transform: scale(1.2);
}

.oj-amenities__list {
    flex: 1;
    min-width: 300px;
}

.oj-amenities__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oj-amenities__list li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 17px;
    line-height: 1.6;
    color: var(--oj-text);
}

.oj-amenities__list li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--oj-tertiary);
    font-size: 18px;
}

/* Why Overton Section */
.oj-why {
    background-color: var(--oj-white);
    padding: 60px 100px !important;
}

.oj-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.oj-why__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--oj-secondary);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oj-why__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.oj-why__icon {
    width: 80px;
    height: 80px;
    background-color: var(--oj-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.oj-why__item:hover .oj-why__icon {
    background-color: var(--oj-primary);
}

.oj-why__icon i {
    font-size: 32px;
    color: var(--oj-white);
}

.oj-why__content h3 {
    color: var(--oj-primary);
    font-size: 22px;
    margin-bottom: 10px;
}

.oj-why__content p {
    color: var(--oj-text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.oj-why__closing {
    text-align: center;
    margin-top: 40px;
}

.oj-highlight {
    font-size: 20px;
    font-style: italic;
    color: var(--oj-tertiary);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
}

/* Unit Renderings Section */
.oj-renderings {
    background-color: var(--oj-primary);
    color: var(--oj-white);
    padding: 60px 100px !important;
}

.oj-renderings .oj-section-title {
    color: var(--oj-white);
}

.oj-renderings .oj-section-title:after {
    background-color: var(--oj-white);
}

.oj-renderings__intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--oj-secondary);
}

.oj-renderings__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.oj-rendering__item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.oj-rendering__item:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.oj-rendering__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Rendering Item Meta (Floorplan / Rent) */
.oj-rendering__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 40%);
    color: var(--oj-white);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oj-rendering__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--oj-white);
}

.oj-rendering__details {
    margin: 0;
    font-size: 16px;
    color: var(--oj-secondary);
}

.oj-rendering__details strong {
    color: var(--oj-secondary);
}

/* FAQ Section - Accordion Style */
.faq {
    background-color: var(--oj-white);
    padding: 60px 100px !important;
}

.oj-faq__items {
    max-width: 900px;
    margin: 0 auto;
}

.oj-faq__item {
    margin-bottom: 15px;
    background-color: var(--oj-white);
    border: 2px solid var(--oj-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.oj-faq__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oj-faq__item--active {
    border-color: var(--oj-tertiary);
    box-shadow: 0 4px 16px rgba(95, 125, 124, 0.15);
}

.oj-faq__question {
    width: 100%;
    background-color: transparent;
    border: none;
    color: var(--oj-primary);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    padding: 20px 60px 20px 55px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.oj-faq__question:hover {
    background-color: var(--oj-secondary);
}

.oj-faq__item--active .oj-faq__question {
    background-color: var(--oj-secondary);
    color: var(--oj-tertiary);
}

.oj-faq__question:before {
    content: '\f059';
    font-family: 'FontAwesome';
    position: absolute;
    left: 20px;
    color: var(--oj-tertiary);
    font-size: 20px;
}

.oj-faq__question-text {
    flex: 1;
    padding-right: 20px;
}

.oj-faq__toggle {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--oj-tertiary);
    color: var(--oj-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.oj-faq__item--active .oj-faq__toggle {
    background-color: var(--oj-primary);
    transform: rotate(180deg);
}

.oj-faq__toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.oj-faq__answer {
    display: none;
    overflow: hidden;
}

.oj-faq__answer-content {
    padding: 0 20px 25px 55px;
    color: var(--oj-text);
    font-size: 16px;
    line-height: 1.7;
}

.oj-faq__answer-content p {
    margin-bottom: 15px;
}

.oj-faq__answer-content p:last-child {
    margin-bottom: 0;
}

.oj-faq__answer-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.oj-faq__answer-content li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.oj-faq__answer-content li:before {
    content: '\f111';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--oj-tertiary);
    font-size: 8px;
    top: 15px;
}

.oj-contact-info {
    background-color: var(--oj-secondary);
    padding: 20px;
    border-radius: 5px;
    margin-top: 15px;
}

.oj-contact-info i {
    color: var(--oj-tertiary);
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1080px) {
    .oj-hero__container {
        padding: 60px 50px;
    }
    
    .oj-hero__title {
        font-size: 42px;
    }
    
    .oj-hero__intro,
    .oj-hero__description {
        font-size: 17px;
    }
    
    .oj-amenities,
    .oj-why,
    .oj-renderings,
    .oj-faq {
        padding: 40px 50px !important;
    }
    
    .oj-section-title {
        font-size: 30px;
    }
}

@media (max-width: 800px) {
    .oj-hero {
        min-height: 100vh;
    }
    
    .oj-hero__background {
        background-attachment: scroll;
    }
    
    .oj-hero__container {
        padding: 40px 25px;
    }
    
    .oj-hero__content {
        padding: 30px 20px;
    }
    
    .oj-hero__badge {
        font-size: 12px;
        padding: 6px 18px;
        letter-spacing: 1px;
    }
    
    .oj-hero__title {
        font-size: 32px;
    }
    
    .oj-hero__divider {
        width: 60px;
        margin: 20px auto;
    }
    
    .oj-hero__intro,
    .oj-hero__description {
        font-size: 16px;
    }
    
    .oj-hero__cta {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .oj-hero__button {
        width: 100%;
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .oj-amenities,
    .oj-why,
    .oj-renderings,
    .oj-faq {
        padding: 30px 25px !important;
    }
    
    .oj-section-title {
        font-size: 26px;
    }
    
    .oj-amenities__grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .oj-amenities__carousel-wrapper {
        min-width: 100%;
        width: 100%;
    }
    
    .oj-amenities__carousel {
        border-radius: 6px;
    }
    
    .oj-amenities__carousel .owl-nav button {
        width: 34px;
        height: 34px;
        margin: 0 5px;
    }
    
    .oj-amenities__carousel .owl-nav button i {
        font-size: 14px;
    }
    
    .oj-amenities__carousel .owl-dots {
        bottom: 10px;
    }
    
    .oj-amenities__carousel .owl-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }
    
    .oj-amenities__list {
        min-width: 100%;
    }
    
    .oj-amenities__list li {
        font-size: 15px;
        padding: 10px 0 10px 30px;
    }
    
    .oj-amenities__list li:before {
        font-size: 16px;
    }
    
    .oj-amenities__intro {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .oj-why__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .oj-renderings__gallery {
        grid-template-columns: 1fr;
    }
    
    .oj-faq__question {
        font-size: 16px;
        padding: 15px 50px 15px 45px;
    }
    
    .oj-faq__question:before {
        left: 15px;
        font-size: 18px;
    }
    
    .oj-faq__answer-content {
        padding: 0 15px 20px 45px;
        font-size: 15px;
    }
    
    .oj-faq__toggle {
        width: 26px;
        height: 26px;
    }
    
    .oj-faq__toggle i {
        font-size: 12px;
    }
}

/* Coming Soon Floor Plan Styles */
.oj-renderings__gallery--coming-soon .oj-rendering__item {
    cursor: pointer;
}

/* Coming Soon Popup */
.oj-coming-soon-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.oj-coming-soon-popup--active {
    opacity: 1;
    visibility: visible;
}

.oj-coming-soon-popup__content {
    background: var(--oj-white);
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.oj-coming-soon-popup--active .oj-coming-soon-popup__content {
    transform: scale(1) translateY(0);
}

.oj-coming-soon-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--oj-text);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.oj-coming-soon-popup__close:hover {
    color: var(--oj-tertiary);
}

.oj-coming-soon-popup__icon {
    font-size: 48px;
    color: var(--oj-tertiary);
    margin-bottom: 20px;
    display: block;
}

.oj-coming-soon-popup__content p {
    font-size: 18px;
    color: var(--oj-text);
    margin: 0;
    line-height: 1.6;
}

/* Print Styles */
@media print {
    .oj-hero,
    .oj-amenities,
    .oj-why,
    .oj-renderings,
    .oj-faq {
        padding: 20px !important;
    }
    
    .oj-hero__background {
        background-attachment: scroll;
    }
    
    .oj-amenities__image-wrapper:hover,
    .oj-rendering__item:hover,
    .oj-why__item:hover {
        transform: none;
    }
    
    .oj-coming-soon-popup {
        display: none !important;
    }
}
