 /* ========================================
   MAIN CSS - Chris Galang Creative Photoworks
   Common styles used across all pages
   ======================================== */

/* --- Global Styles & Resets --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #222222;
    color: #f0f0f0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

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

h1, h2, h3, h4 {
    margin-top: 0;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-dark {
    background-color: #9fe7e7;;
    color: #0F1A1B;
}

.btn-dark:hover {
    background-color: #333;
    color: #e8f8ff;
}

/* --- Header --- */
.main-header {
    background-color: #317484;
    color: #333;
    padding: 1rem 0;
    /*border-bottom: 1px solid #e0e0e0;*/
}

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

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: #e8f8ff;
    font-weight: 500;
    text-transform: lowercase;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: #0F1A1B;
}

.main-nav a.active {
    color: #9fe7e7;
    font-weight: 700;
}

/* --- Hero Section (Base) --- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* Dark overlay for all hero sections */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1rem;
    color: #e0e0e0;
    max-width: 450px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slideshow-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.slideshow-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slideshow-dots .dot.active {
    background-color: rgba(255, 255, 255, 0.9);
}

.slideshow-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* --- Services Section --- */
.services {
    padding: 5rem 0;
    background-color: #222;
}

.sub-heading {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.services h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.services p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Gallery Section --- */
.gallery {
    padding: 0 5% 5rem 5%;
    background-color: #222;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.image-grid img,
.image-grid a img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-grid a:hover img {
    transform: scale(1.03);
    opacity: 0.8;
}

/* Scrollable Gallery - Show 3 at a time */
.image-grid-scroll {
    max-width: 2000px;
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    position: relative;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 1.35rem);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: opacity 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-title {
    opacity: 1;
    transform: translateY(0);
}

/* Fade out effect for items being scrolled out */
.gallery-item.fading-out {
    opacity: 0.3;
}

/* Scrollbar styling */
.image-grid-scroll::-webkit-scrollbar {
    height: 10px;
}

.image-grid-scroll::-webkit-scrollbar-track {
    background: #333;
    border-radius: 5px;
}

.image-grid-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.image-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
}

.gallery-nav {
    text-align: center;
    margin-top: 2.5rem;
}

.nav-arrow {
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-arrow:hover {
    background-color: #666;
}

/* --- Status Check Link --- */
.status-check-link {
    font-size: 12px;
    color: #f0f0f0;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.status-check-link:hover {
    color: #fff;
}

/* --- Footer --- */
.main-footer {
    background-color: #317484;
    padding: 4rem 5%;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.logo-footer {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.logo-footer img {
    height: 50px;
    width: auto;
}

.footer-col h4 {
    font-size: 0.8rem;
    color: whitesmoke;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a:hover {
    color: black;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid whitesmoke;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 0.9rem;
    font-weight: bold;
}

.social-icons a:hover {
    background-color: #555;
    color: #fff;
}

/* --- Contact Page Styles --- */
.contact-page-header {
    text-align: center;
    padding: 4rem 5% 3rem 5%;
}

.contact-page-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-page-header p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 1350px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 3rem;
    padding: 0 5% 5rem 5%;
    margin: 0 auto;
    max-width: 1750px;
    align-items: flex-start;
}

.contact-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-gallery img {
    width: 100%;
    height: calc(100% - 10px);
    border-radius: 8px;
    object-fit: cover;
}

.contact-gallery .img-large {
    grid-column: 1 / -1;
    width: 100%;
    height: 600px;
} 

.contact-form-wrapper {
    flex: 1;
    background-color: #2a2a2a;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.contact-form-wrapper p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 1rem;
    background-color: #d90000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-btn:hover {
    background-color: #b00000;
}

/* --- Portfolio Gallery (Packages & Collections) --- */
.portfolio-gallery {
    padding: 5rem 5%;
    text-align: center;
}

.portfolio-gallery .container-narrow p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 3rem auto;
}

.portfolio-gallery h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.portfolio-filters ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.portfolio-filters a {
    padding: 0.5rem 1rem;
    color: #aaa;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.portfolio-filters a:hover {
    color: #fff;
}

.portfolio-filters a.active {
    background-color: #333;
    color: #fff;
}

.portfolio-grid-wrapper {
    width: 90%;
    max-width: 2000px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portfolio-grid img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
}

.view-more-link {
    text-align: center;
}

.view-more-link a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.9rem;
}

.view-more-link a:hover {
    color: #ccc;
}

/* --- About Us Page Content --- */
.about-content {
    padding: 15rem 5%;
    background-color: #2a2a2a;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about-text p {
    color: #ccc;
    line-height: 1.7;
}

.about-image-collage {
    position: relative;
    min-height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-collage img {
    border: 15px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: absolute;
    object-fit: cover;
}

.collage-img-1 {
    width: 80%;
    height: auto;
    z-index: 1;
}

.collage-img-2 {
    width: 52.5%;
    height: 200px;
    top: -18rem; 
    left: 70%;
    z-index: 0;
}

.collage-img-3 {
    width: 52.5%;
    height: 200px;
    bottom: -18rem; 
    left: 70%;
    z-index: 3; 
}

/* --- Package Page Styles --- */
.package-filters {
    padding: 2rem 0;
    background-color: #222;
    text-align: center;
}

.package-filters .container {
    border: 1px solid #555;
    border-radius: 4px;
    display: inline-block;
}

.btn-filter {
    display: inline-block;
    padding: 0.8rem 2rem;
    color: #aaa;
    font-weight: 500;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.btn-filter.active,
.btn-filter:hover {
    background-color: #333;
    color: #fff;
}

.package-display {
    padding: 5rem 5%;
    background-color: #222;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* For pages with only 2 packages (wedding, photoshoot) */
.package-grid:has(.package-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0rem;
    min-height: 750px;
    max-height: fit-content;
    background-color: #e6e6e6;
    color: #333;
    text-align: center;
}

:root {
    --package-icon-size: 150px;
    --package-icon-margin: -25px;
}

.package-icon-img {
    width: var(--package-icon-size);
    height: var(--package-icon-size);
    border-radius: 50%;
    margin: var(--package-icon-margin);
    object-fit: cover;
}

.package-icon-text {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    background-color: #e0e0e0;
    color: #999;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.package-icon-crest {
    width: var(--package-icon-size);
    height: var(--package-icon-size);
    border-radius: 50%;
    margin: var(--package-icon-margin);
    object-fit: contain;
}

.package-icon-rings {
    width: var(--package-icon-size);
    height: var(--package-icon-size);
    border-radius: 50%;
    margin: var(--package-icon-margin);
    object-fit: cover;
}

.package-price {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0;
}

.package-card h3 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
}

.package-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    width: 80%;
    text-align: center;
    min-height: 150px;
    margin-bottom: 1.5rem;
}

.btn-inquire {
    display: inline-block; 
    padding: 1.2rem 6rem; 
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
    margin-bottom: 0;
}

.btn-inquire:hover {
    background-color: #555;
}

.package-features {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #555;
    width: 78%;
}

.package-features li {
    font-size: 1rem;
    padding-left: 20px;
    position: relative;
}

.package-features li::before {
    content: '';
    position: absolute;
    text-align: center;
    left: -4px;
    bottom: 12%;
    width: 16px;
    height: 16px;
    background-image: url('../images/icons/check-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.btn-show-more {
    display: inline-block;
    padding: 1rem 2.5rem; 
    background-color: transparent;
    color: #333;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    background-color: #eee;
    border-color: #333;
}

/* --- Inquire Form Styles --- */
.inquire-form-section {
    padding: 0 5% 5rem 5%;
}

.inquire-form-wrapper {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.inquire-form-wrapper h3 {
    font-size: 1.8rem;
    color: #fff;
}

.inquire-form-wrapper p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.inquire-form-wrapper .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.inquire-form-wrapper .form-group input[type="text"],
.inquire-form-wrapper .form-group input[type="email"],
.inquire-form-wrapper .form-group input[type="tel"],
.inquire-form-wrapper .form-group input[type="date"],
.inquire-form-wrapper .form-group input[type="time"],
.inquire-form-wrapper .form-group select {
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.inquire-form-wrapper .form-group input:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

.inquire-form-wrapper .form-group input[type="date"]::-webkit-calendar-picker-indicator,
.inquire-form-wrapper .form-group input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.custom-package-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.custom-package-group label {
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-group label {
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 400;
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: #d90000;
}

.file-input {
    background-color: #333;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.file-input::file-selector-button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}

.file-input::file-selector-button:hover {
    background-color: #777;
}

.submit-group {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-submit {
    background-color: #f0f0f0;
    color: #222;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
    transform: scale(1.03);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

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

    .gallery-item {
        flex: 0 0 calc(80% - 1rem);
    }
    
    .gallery-item img {
        height: 250px;
    }

    .contact-gallery {
        display: none;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }

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

    .logo-footer {
        align-items: center;
    }

    .logo-footer img,
    .logo img {
        height: 45px;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-container {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

    .about-image-collage {
        margin-top: 2rem;
        min-height: auto;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .about-image-collage img {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }

    .collage-img-1 {
        grid-column: 1 / -1;
        height: auto;
    }

    .collage-img-2 {
        height: 150px;
    }

    .collage-img-3 {
        height: 150px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

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

    .package-filters .container {
        display: block;
        border: none;
    }

    .btn-filter {
        display: inline-block;
        margin: 0.25rem;
        border: 1px solid #555;
    }

    .btn-filter.active {
        border: 1px solid #333;
    }

    .inquire-form-wrapper {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-column {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-grid .form-group {
        margin-bottom: 0;
    }
}
