/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary-pink: #d84276;
    --primary-pink-hover: #b0305d;
    --dark-bg: #1f232b;
    --dark-nav: #2c2c2c;
    --text-main: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --border-color: #000000;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --container-width: 1200px;
    --spacing-unit: 15px;
}

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

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

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

/* =========================================
   HEADER & TOP BAR
   ========================================= */
#main-header {
    width: 100%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.top-contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    fill: var(--text-main);
}

.contact-item .details {
    display: flex;
    flex-direction: column;
}

.contact-item .city {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    line-height: 1;
}

.contact-item .phone {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main);
}

.btn-primary {
    background-color: var(--primary-pink);
    color: var(--white);
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.btn-primary:hover {
    background-color: var(--primary-pink-hover);
}

/* =========================================
   NAVIGATION
   ========================================= */
.main-nav {
    background-color: var(--dark-nav);
    color: var(--white);
    position: relative;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-list {
    display: flex;
    height: 100%;
}

.nav-list > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-list > li > a {
    color: #ccc;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    border-top: 3px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--white);
    border-top-color: var(--primary-pink);
}

.arrow {
    font-size: 0.6rem;
    margin-left: 5px;
}

/* Dropdown */
.has-dropdown:hover .dropdown {
    display: block;
    opacity: 1;
    top: 50px;
}

.dropdown {
    position: absolute;
    top: 60px; /* offset for transition */
    left: 0;
    background-color: var(--dark-nav);
    width: 200px;
    display: none; /* controlled via js/hover */
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown li a:hover {
    background-color: #383838;
    color: var(--white);
    padding-left: 25px; /* slight slide effect */
}

/* Social & Search */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a svg {
    width: 16px;
    height: 16px;
    fill: #ccc;
    transition: fill 0.2s;
}

.social-icons a:hover svg {
    fill: var(--white);
}

.search-item svg {
    fill: var(--white);
    width: 18px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #fceeff 0%, #fff 100%);
    overflow: hidden;
}

.hero-content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-images {
    display: flex;
    align-items: flex-end;
    gap: 0;
    height: 100%;
}

.hero-img {
    height: 90%;
    width: auto;
    object-fit: cover;
    /* Masking bottom slightly to blend */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-container svg {
    width: 100%;
    height: 80px;
}

/* =========================================
   INTRO & TITLES
   ========================================= */
.gallery-intro {
    padding: 60px 0 40px;
}

.sub-heading {
    color: var(--primary-pink);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.main-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #222;
}

.description {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 0.95rem;
}

.highlight {
    color: var(--primary-pink);
}

/* =========================================
   FILTERS
   ========================================= */
.filters {
    margin-bottom: 40px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border: 2px solid var(--border-color);
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.filter-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.filter-btn:last-child {
    border-right: none;
}

.filter-btn:hover {
    background-color: #f5f5f5;
}

.filter-btn.active {
    background-color: #000;
    color: var(--white);
}

/* =========================================
   GALLERY GRID
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    min-height: 400px; /* prevent jump on load */
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background-color: #eee;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.pagination {
    display: flex;
    border: 1px solid #000;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-right: 1px solid #000;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:last-child {
    border-right: none;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

.page-btn.active {
    background-color: #000;
    color: var(--white);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--dark-bg);
    color: #aaa;
    position: relative;
    padding-top: 80px;
    font-family: var(--font-body);
}

.footer-overlay {
    /* Simulating the faint background texture */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(40,40,40,0.5) 0%, rgba(31,35,43,1) 80%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-icon {
    border: 1px solid #666;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-icon svg {
    width: 28px;
    height: 28px;
    fill: #ccc;
    stroke: #ccc;
    stroke-width: 0.5;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    background-color: #1a1d24;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo img {
    width: 180px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.copyright-text {
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-icons-footer a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons-footer a:hover {
    background: var(--primary-pink);
}

.social-icons-footer svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.footer-links-group h4,
.footer-subscribe h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links-group ul li {
    margin-bottom: 12px;
}

.footer-links-group ul li a {
    font-size: 0.9rem;
}

.footer-links-group ul li a:hover {
    color: var(--primary-pink);
    padding-left: 5px;
}

.subscribe-form {
    display: flex;
    margin-bottom: 15px;
}

.subscribe-form input {
    background: transparent;
    border: 1px solid #444;
    padding: 10px 15px;
    color: #fff;
    flex-grow: 1;
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.subscribe-form button {
    background: var(--primary-pink);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
}

.subscribe-form button:hover {
    background: var(--primary-pink-hover);
}

.small-text {
    font-size: 0.75rem;
    color: #777;
}

#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark-nav);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0.8;
    transition: 0.3s;
    border: 1px solid #444;
}

#scroll-top:hover {
    background: var(--primary-pink);
}

/* =========================================
   MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    animation: zoom 0.3s;
    border: 2px solid white;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-pink);
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom-inner {
        grid-template-columns: 1fr 1fr;
    }
    
    .top-contact-info {
        display: none; /* Hide top contact on smaller screens like ref if needed, or scale */
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .top-bar-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .top-contact-info, .btn-primary {
        display: none; /* Simplify header on mobile */
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1100;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: var(--dark-nav);
        height: auto;
        padding-bottom: 20px;
        z-index: 1050;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list > li {
        width: 100%;
        height: 50px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-list > li > a {
        width: 100%;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        background-color: #222;
        opacity: 1;
    }
    
    .has-dropdown:hover .dropdown {
        display: block; /* Basic hover on mobile or click logic can be added */
    }

    .hero-content {
        align-items: center;
    }
    
    .hero-images {
        width: 100%;
        justify-content: center;
    }
    
    .hero-img {
        width: 33%;
    }

    .filter-bar {
        display: flex;
        flex-direction: column;
        width: 100%;
        border: none;
        left: 0;
        transform: none;
    }

    .filter-btn {
        border: 1px solid #ddd;
        border-bottom: none;
        width: 100%;
    }
    .filter-btn:last-child {
        border-bottom: 1px solid #ddd;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons-footer {
        justify-content: center;
    }
    
    .footer-logo img {
        margin: 0 auto 20px auto;
    }
}