/* ===========================================
   OLIVA HOME STAGING - CLEAN CSS
   =========================================== */

/* Import Montserrat font (modern geometric sans-serif similar to Futura PT) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-green: #000000;
    --dark-green: #000000;
    --white: #fff;
    --light-gray: rgba(255, 255, 255, 0.95);
    /* Mobile viewport height fix */
    --vh: 1vh;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Universal font family for buttons and anchors */
button, a {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* SEO Hidden Content */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Mobile viewport fix */
    height: calc(var(--vh, 1vh) * 100); /* Use dynamic viewport height for better mobile support */
    min-height: 100vh; /* Fallback for older browsers */
    background-color: #C96654;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.8s ease-in-out;
    /* Mobile Safari specific fixes */
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.splash-screen.hide {
    transform: translateY(-100%);
}

.splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-img {
    height: 400px;
    width: auto;
    max-height: 70vh;
    max-width: 90vw;
    filter: brightness(0) saturate(100%) invert(100%);
    opacity: 0;
    animation: fadeInLogo 0.3s ease-in-out forwards;
}

/* Mobile-specific splash screen adjustments */
@media (max-width: 768px) {
    .splash-screen {
        /* Ensure splash screen covers entire mobile screen */
        height: 100vh;
        height: 100dvh;
        /* Fix for iOS Safari viewport issues */
        min-height: -webkit-fill-available;
    }
    
    .splash-logo-img {
        height: 300px;
        max-height: 60vh;
        max-width: 80vw;
    }
}

@media (max-width: 480px) {
    .splash-logo-img {
        height: 250px;
        max-height: 50vh;
        max-width: 75vw;
    }
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hide splash screen after animation */
.splash-screen.hidden {
    display: none;
}

/* ===== NAVIGATION ===== */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #C96654;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 15px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
    gap: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    color: inherit;
    outline: none;
    box-shadow: none;
}

.nav-logo a:hover,
.nav-logo a:focus,
.nav-logo a:active,
.nav-logo a.active {
    background: none;
    border: none;
    transform: none;
    color: inherit;
    box-shadow: none;
    outline: none;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(100%);
    margin: -8px 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 15px;
    position: relative;
    transition: all 0.3s ease;
    align-items: center;
}

.nav-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.nav-social {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.nav-link:hover {
    border: 2px solid white;
    transform: scale(1.05);
}

.nav-link.active {
    color: white;
    border: 2px solid transparent;
    transform: scale(1.05);
}

.nav-social-link {
    display: inline-block;
    transition: transform 0.3s ease;
    padding: 4px;
    border-radius: 50%;
}

.nav-social-link:hover {
    transform: scale(1.1);
}

.nav-social-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(100%);
}

.nav-social-icon:hover {
    opacity: 1;
}

/* ===== HEADER ===== */
.header-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 0;
    flex-shrink: 0;
    height: 0;
}

/* ===== FOOTER ===== */
.footer-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 0;
    margin: auto auto 0 auto;
    flex-shrink: 0;
}

.logo {
    max-width: 60%;
    max-height: 150px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/* ===== MAIN CONTENT ===== */
.body-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 100px 20px 0 20px;
    flex-grow: 1;
    margin: 0 auto;
}

.page-title-display {
    color: #000000;
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 24px;
    text-align: center;
    width: 100%;
}

#main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-top: 70px;
}

/* ===== SECTIONS ===== */
section {
    width: 100%;
    scroll-margin-top: 60px;
}

.about-section,
.contact-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    margin: 0;
    border-radius: 15px;
    width: 100%;
    border-left: 3px solid #000000;
    border-right: 3px solid #000000;
}



.about-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    font-size: 16px;
    line-height: 1.25;
    color: #666;
    margin-bottom: 15px;
    text-indent: 1.5em;
}

/* ===== CONTACT SECTION ===== */
.contact-details {
    text-align: left;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h3 {
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.contact-address {
    font-style: normal;
}

.email-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    transform-origin: center center;
    cursor: pointer;
}

.email-with-icon:hover {
    transform: scale(1.1);
}

.email-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    color: #666;
}

.service-list {
    list-style-type: disc;
    margin-left: 20px;
}

.service-list li {
    margin-bottom: 5px;
    color: #666;
    font-size: 16px;
    line-height: 1.25;
}

.contact-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 15px;
}

span[itemprop="email"] {
    color: #666;
    font-size: 16px;
    line-height: 1.25;
}

.contact-social-media {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    transition: transform 0.3s ease;
    font-size: 16px;
    line-height: 1.25;
}

.contact-social-link:hover {
    transform: scale(1.1);
}

.contact-social-icon {
    width: 20px;
    height: 20px;
}

/* ===== EQUATION CONTAINER ===== */
.equation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 15px;
    width: 100%;
    flex-wrap: nowrap;
}

.equation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 50px;
    flex: 1;
}

.equation-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    filter: opacity(0.8);
}

.equation-text {
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equation-number {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.equation-title {
    font-size: 10px;
    font-weight: bold;
    line-height: 1.1;
}

.equation-operator {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin: 0 5px;
    flex-shrink: 0;
}

/* ===== INSTAGRAM FEED ===== */
.instagram-feed-section {
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100vw !important;
    position: relative;
    left: 0;
    right: 0;
    transform: translateX(calc(-50% + 50vw));
    box-sizing: border-box;
    max-width: none !important;
}

/* Ensure Instagram section uses correct font */
.instagram-feed-section button,
.instagram-feed-section a {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: #f8f8f8;
}

.instagram-post:hover {
    transform: scale(1.02);
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-image {
    opacity: 0.8;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-caption {
    color: white;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
    width: 100%;
}

.load-more-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(90, 107, 93, 0.2);
}

.load-more-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 107, 93, 0.3);
}

.instagram-follow {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
}

.follow-instagram-btn {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}

.follow-instagram-btn:hover {
    color: var(--dark-green);
    border-bottom-color: var(--dark-green);
    transform: translateY(-1px);
}

/* Mobile responsiveness for Instagram feed - Mobile First Approach */

/* iPhone and small phones - 1 column */
@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }
    
    .instagram-overlay {
        padding: 8px;
    }
    
    .instagram-caption {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 13px;
    }
}

/* Small tablets - 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
    }
    
    .instagram-caption {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .instagram-overlay {
        padding: 10px;
    }
}

/* Large tablets - 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0;
    }
}

/* Desktop - 4 columns */
@media (min-width: 1025px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0;
    }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #000000;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.bottom-nav-contact {
    color: #000000;
    font-size: 13px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bottom-nav-contact:hover {
    transform: scale(1.1);
}

.bottom-nav-social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bottom-nav-social-link {
    display: inline-block;
    transition: transform 0.3s ease;
    padding: 4px;
    border-radius: 50%;
}

.bottom-nav-social-link:hover {
    transform: scale(1.1);
}

.bottom-nav-social-icon {
    width: 18px;
    height: 18px;
}

.bottom-nav-social-icon:hover {
    opacity: 1;
}

/* ===== MOBILE RESPONSIVE ===== */
/* iPhone XR and similar devices (414px) */
@media (max-width: 414px) and (min-width: 376px) {
    .nav-container {
        padding: 2px 10px;
        gap: 8px;
    }
    
    .nav-logo {
        display: flex !important;
        align-items: center;
    }
    
    .nav-logo-img {
        height: 42px;
        margin: -6px 0;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 4px 7px;
    }
    
    .nav-social {
        gap: 5px;
    }
    
    .nav-social-icon {
        width: 15px;
        height: 15px;
    }
    
    /* Main content adjustments for iPhone XR */
    #main-content {
        padding: 0 12px;
        padding-top: 65px;
    }
    
    .about-section,
    .contact-section {
        padding: 15px 12px;
        margin: 2px 0;
    }
    
    /* Mobile font sizing for about and contact content */
    .about-text p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .contact-item h3 {
        font-size: 16px;
    }
    
    .contact-item p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .service-list li {
        font-size: 14px;
        line-height: 1.4;
    }
    
    span[itemprop="email"] {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .contact-social-link {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Page title adjustments */
    .page-title {
        font-size: 18px;
        padding: 8px 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    /* Navigation adjustments */
    .nav-container {
        padding: 3px 12px;
        gap: 8px;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    /* Mobile nav logo adjustments - ensure always visible */
    .nav-logo {
        display: flex !important;
        align-items: center;
    }
    
    .nav-logo-img {
        height: 38px;
        width: auto;
        margin: -6px 0;
    }
    
    .nav-social {
        gap: 5px;
    }
    
    .nav-social-icon {
        width: 15px;
        height: 15px;
    }
    
    /* Main content adjustments */
    #main-content {
        padding: 0 15px;
        padding-bottom: 40px;
    }
    
    .about-section,
    .contact-section {
        padding: 20px 15px;
        margin: 2px 0;
    }
    
    /* Mobile font sizing for about and contact content */
    .about-text p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-item h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .contact-item p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .service-list li {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 4px;
    }
    
    span[itemprop="email"] {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .contact-social-link {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Equation container adjustments */
    .equation-container {
        gap: 4px;
        padding: 0 10px;
    }
    
    .equation-item {
        min-width: 45px;
    }
    
    .equation-icon {
        width: 28px;
        height: 28px;
    }
    
    .equation-number {
        font-size: 12px;
    }
    
    .equation-title {
        font-size: 9px;
    }
    
    .equation-operator {
        font-size: 16px;
        margin: 0 3px;
    }
    
    /* Bottom nav adjustments */
    .bottom-nav-container {
        padding: 10px 20px;
    }
    
    .bottom-nav-contact {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .bottom-nav-social {
        gap: 6px;
    }
    
    .bottom-nav-social-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 375px) {
    /* Extra small screen adjustments */
    .nav-container {
        padding: 2px 8px;
        gap: 8px;
    }
    
    .nav-links {
        gap: 0px;
    }
    
    /* Mobile nav logo for small screens */
    .nav-logo-img {
        height: 32px;
        margin: -4px 0;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .nav-social-icon {
        width: 14px;
        height: 14px;
    }
    
    .equation-container {
        gap: 2px;
        padding: 0 8px;
    }
    
    .equation-item {
        min-width: 40px;
    }
    
    .equation-icon {
        width: 24px;
        height: 24px;
    }
    
    .equation-number {
        font-size: 11px;
    }
    
    .equation-title {
        font-size: 8px;
    }
    
    .equation-operator {
        font-size: 14px;
        margin: 0 2px;
    }
    
    .bottom-nav-contact {
        font-size: 10px;
    }
}