/* ===================================
   EFS Interiors - Main Stylesheet
   =================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #D94F3D;
    background-color: #F5F3EE;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Climate Crisis', 'Helvetica Neue', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    padding: 30px 0;
    position: relative;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.nav-link {
    font-size: 1.25rem;
    font-weight: 400;
    position: relative;
}

.nav-link.active {
    text-decoration: underline;
}

.nav-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===================================
   Hero Section (Homepage)
   =================================== */
.hero {
    padding: 60px 0 100px;
}

.hero-title {
    font-size: 7rem;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    /* white-space: nowrap; */
}

.hero-tagline {
    font-size: 1.35rem;
    line-height: 1.4;
    max-width: 100%;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ===================================
   About/Contact Page
   =================================== */
.about-section {
    padding: 60px 0;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(100%);
}

.hello-flower {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: #F4D35E;
    border-radius: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Create flower petals using pseudo-elements */
.hello-flower::before,
.hello-flower::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: #F4D35E;
    border-radius: 50%;
}

.hello-flower::before {
    transform: translate(-40%, -40%);
}

.hello-flower::after {
    transform: translate(40%, -40%);
}

.hello-text {
    position: relative;
    z-index: 10;
    font-size: 2.5rem;
    margin-top: -10px;
    font-weight: 800;
    color: #D94F3D;
    text-align: center;
}

.about-text {
    padding-top: 20px;
}

.about-greeting {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 35px;
    line-height: 1.2;
}

.about-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-question {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.3;
    text-transform: lowercase;
    margin-bottom: 30px;
}

/* Connect Inline (within About section) */
.connect-inline {
    margin-top: 40px;
}

.connect-inline .connect-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.connect-inline .connect-text {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 30px;
    border-bottom: 2px solid #D94F3D;
    padding-bottom: 25px;
}

/* Connect Section */
.connect-section {
    padding: 80px 0 100px;
}

.connect-title {
    font-size: 5rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: capitalize;
}

.connect-text {
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 800px;
    margin-bottom: 40px;
    border-bottom: 2px solid #D94F3D;
    padding-bottom: 30px;
}

.connect-email {
    font-size: 1.25rem;
}

.connect-email a {
    font-weight: 500;
}

/* ===================================
   Gallery Page
   =================================== */
.gallery-section {
    padding: 30px 0 100px;
}

.gallery-title {
    font-size: 7rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(217, 79, 61, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    color: #F5F3EE;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Image Modal (Click to Enlarge) */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 243, 238, 0.98);
    z-index: 1000;
    padding: 40px;
    overflow: auto;
}

.image-modal:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 1200px;
    max-height: 85vh;
    animation: modalZoom 0.3s ease;
}

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

.modal-content img {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    font-weight: 300;
    color: #D94F3D;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #D94F3D;
    cursor: pointer;
    z-index: 1001;
    padding: 20px;
    transition: all 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.2);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 0;
    text-align: right;
}

.footer-email {
    font-size: 1.25rem;
}

.footer-email a {
    font-weight: 500;
}

/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hello-flower {
        width: 130px;
        height: 90px;
        top: -15px;
        right: -15px;
        padding-top: 8px;
    }

    .hello-flower::before {
        width: 70px;
        height: 70px;
        top: -05px;
        left: 12px;
    }

    .hello-flower::after {
        width: 60px;
        height: 60px;
        top: -0px;
        right: 15px;
    }

    .hello-text {
        padding-top: 10px;
        font-size: 1.5rem;
    }

    .about-greeting {
        font-size: 2.25rem;
    }

    .about-question {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .connect-inline {
        margin-top: 40px;
    }

    .connect-inline .connect-title {
        font-size: 2rem;
    }

    .connect-inline .connect-text {
        font-size: 1.1rem;
    }

    .connect-title {
        font-size: 3.5rem;
    }

    .connect-text {
        font-size: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-title {
        font-size: 3rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .about-section {
        padding: 40px 0;
    }

    .hello-flower {
        width: 110px;
        height: 55px;
        top: -12px;
        right: -12px;
        padding-top: 6px;
    }

    .hello-flower::before {
        width: 60px;
        height: 55px;
        top: -5px;
        left: 20px;
    }

    .hello-flower::after {
        width: 58px;
        height: 48px;
        top: -0px;
        right: 25px;
    }

    .hello-text {
        font-size: 1.25rem;
    }

    .about-greeting {
        font-size: 1.75rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    .about-question {
        font-size: 1.35rem;
        margin-bottom: 35px;
    }

    .connect-inline {
        margin-top: 35px;
    }

    .connect-inline .connect-title {
        font-size: 1.75rem;
    }

    .connect-inline .connect-text {
        font-size: 1rem;
    }

    .connect-section {
        padding: 60px 0 80px;
    }

    .connect-title {
        font-size: 2.5rem;
    }

    .connect-text {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-subtitle {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }

    .footer {
        text-align: center;
    }

    .modal-nav {
        font-size: 2.5rem;
        padding: 10px;
    }

    .modal-nav-prev {
        left: 10px;
    }

    .modal-nav-next {
        right: 10px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-content img {
        max-width: 95%;
        max-height: 80vh;
    }
}
