/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile/tablet: reduce side padding so content fills more of the screen */
@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }

    /* Ensure contact cards never exceed viewport width on mobile/tablet */
    .contact .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .contact-content,
    .contact-form,
    .contact-info {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

@media (max-width: 992px) {
    .navbar .container {
        padding: 0.75rem 1rem;
    }
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 70px;
}


.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-overlay {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* Force single column on mobile/tablet - overrides any other breakpoint */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.service-description {
    margin-bottom: 1rem;
}

.service-starting-price {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

/* Gallery Section */
.gallery {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1400px;
    border-radius: 10px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.close-modal:hover {
    color: var(--primary-color);
}

#modalTitle {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.modal-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.modal-gallery-item:hover {
    transform: scale(1.05);
}

.modal-gallery-item img,
.modal-gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-size: 2rem;
    pointer-events: none;
}

/* Lightbox for full-size images */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img,
.lightbox video {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.75rem 0.5rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.gallery-filter {
    display: none; /* Hidden - using project folders instead */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-note {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.gallery-note a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.gallery-note a:hover {
    color: #2980b9;
}

/* About Section - text block card */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-light);
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.7rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form button {
    width: fit-content;
    border: none;
}

.contact-form-status {
    display: none;
    margin-top: -0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact-form-status.is-visible {
    display: block;
}

.contact-form-status.is-success {
    background: #eaf7ef;
    color: #1f6b3b;
    border: 1px solid #b9e2c7;
}

.contact-form-status.is-error {
    background: #fff1ef;
    color: #9f2d20;
    border: 1px solid #f3c2bb;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-headshot {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: var(--shadow);
    margin: 0 0 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--secondary-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-first: apply mobile layout for viewport width 992px and below (catches all phones and tablets) */
@media (max-width: 992px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 3rem 0;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.85rem 1rem;
        min-height: 44px;
    }
    
    .hero {
        min-height: 45vh;
        height: auto;
        padding: 2rem 0 3rem;
        background-attachment: scroll;
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                          url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=960&q=75');
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 48px;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        justify-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        padding: 2rem;
        border-radius: 10px;
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    /* use base font sizes for service card text; only tweak line-height on mobile */
    .service-card p {
        line-height: 1.75;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .project-card {
        border-radius: 10px;
    }
    
    .project-thumbnail {
        height: 250px;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding: 2rem;
        border-radius: 12px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text ul {
        margin-left: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .contact-info {
        padding: 2rem;
    }

    .contact-headshot {
        width: 80px;
        height: 80px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.3rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .about-text p,
    .about-text li,
    .contact-item p {
        line-height: 1.7;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-meta {
        font-size: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-item h4,
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.9rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a,
    .footer-section li {
        font-size: 1rem;
    }
    
    .footer-bottom {
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        align-items: center;
    }

    /* Modal mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1rem 1rem 2rem;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .close-modal {
        right: 0.5rem;
        top: 0.5rem;
    }
    
    #modalTitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-right: 3rem;
    }
    
    .modal-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-gallery-item img,
    .modal-gallery-item video {
        height: 200px;
    }
    
    /* Lightbox mobile */
    .lightbox-close {
        top: 8px;
        right: 8px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 8px;
    }
    
    .lightbox-next {
        right: 8px;
    }
    
    .lightbox img,
    .lightbox video {
        max-width: 100%;
        max-height: 85vh;
    }
}

/* Tablets: keep 1 column; desktop uses default auto-fit multi-column */

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 1.5rem 0 2.5rem;
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                          url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=70');
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    /* use base font sizes for service/about/contact text on very small screens */
    
    .project-title {
        font-size: 1.15rem;
    }
    
    .project-meta {
        font-size: 0.95rem;
    }
    
    .project-thumbnail {
        height: 220px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    
    #modalTitle {
        font-size: 1.35rem;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .navbar .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .modal-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Gallery item hidden state for filtering */
.gallery-item.hide {
    display: none;
}

/* Standalone Page Sections */
.page-hero {
    margin-top: 70px;
    padding: 4.5rem 0 3rem;
    background: linear-gradient(130deg, #eef4fb 0%, #f7fafc 55%, #eaf2fa 100%);
}

.page-hero .section-title,
.page-hero .section-subtitle {
    text-align: left;
}

.page-section {
    padding: 4.5rem 0;
}

.packages-grid,
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.package-card,
.tour-card {
    background: var(--white);
    border: 1px solid #e5ebf1;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.package-card h3,
.tour-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.package-price {
    font-size: 1.35rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.package-list,
.tour-list {
    margin-left: 1rem;
    color: var(--text-light);
}

.embed-wrap {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.embed-wrap iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.client-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .page-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .page-hero .section-title,
    .page-hero .section-subtitle {
        text-align: center;
    }
}
