/* Mobile Styles - Elegant and Spacious */

/* Mobile menu overlay backdrop */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 998;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    /* Base adjustments */
    body {
        font-size: 16px;
    }

    /* Navigation */
    .nav {
        padding: 1rem 0;
        position: relative;
    }

    .nav-brand img {
        height: 38px;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0;
        margin-right: 0;
        z-index: 1002;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    }

    .nav-center.active {
        right: 0;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 80px 0 0 0;
        text-align: left;
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(159, 134, 94, 0.1);
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        text-align: left;
    }

    .nav-center.active .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-center.active .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-center.active .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
    .nav-center.active .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
    .nav-center.active .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
    .nav-center.active .nav-menu li:nth-child(5) { transition-delay: 0.3s; }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 17px;
        font-weight: 400;
        display: block;
        padding: 1.25rem 1.5rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        text-align: left;
        width: 100%;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background-color: #9F865E;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu a:hover::before,
    .nav-menu a.active::before {
        width: 3px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(159, 134, 94, 0.05);
        padding-left: 2rem;
        color: #9F865E;
    }

    /* Hide desktop contact button on mobile */
    .nav-contact-desktop {
        display: none !important;
    }

    /* Show mobile contact button inside menu */
    .nav-contact-mobile {
        display: block !important;
        padding: 1.5rem;
        border-top: 1px solid rgba(159, 134, 94, 0.1);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0s;
        flex: 0 0 auto;
        background: #ffffff;
    }

    .nav-center.active .nav-contact-mobile {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.35s;
    }

    .nav-contact-mobile .btn {
        width: 100%;
        padding: 15px 32px;
        font-size: 15px;
        text-align: center;
        display: block;
        font-weight: 500;
    }

    .nav-contact-mobile .btn:active {
        transform: scale(0.98);
    }

    /* Hamburger menu button */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        z-index: 1003;
        position: relative;
        padding: 8px;
        cursor: pointer;
        background: transparent;
        border: none;
        gap: 5px;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2.5px;
        background-color: #2c2c2c;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .nav-toggle.active {
        position: fixed;
        right: 1.5rem;
        top: 1.5rem;
    }

    .nav-toggle.active span {
        background-color: #9F865E;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* Typography - More refined */
    h1 {
        font-size: 2.5rem;
        line-height: 1.25;
        font-weight: 300;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.3;
        font-weight: 400;
    }

    h3 {
        font-size: 1.35rem;
        font-weight: 500;
    }

    p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    /* Hero Section - More impactful */
    .hero {
        padding: 100px 0 70px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.25;
        font-weight: 300;
    }

    .hero-text p {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        line-height: 1.7;
        max-width: 100%;
        color: #666666;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 18px 32px;
        font-size: 16px;
    }

    .hero-image {
        order: -1;
        overflow: hidden;
        margin: 0 -1.5rem;
    }

    .hero-image img {
        height: 350px;
        width: 100%;
        border-radius: 0;
        transform: none !important;
        object-fit: cover;
    }

    /* About Section - More breathing room */
    .about {
        padding: 80px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text h2 {
        margin-bottom: 1.5rem;
    }

    .about-text > p {
        margin-bottom: 1.5rem;
    }

    .about-features {
        margin-top: 2.5rem;
    }

    .feature {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .feature h3 {
        margin-bottom: 0.75rem;
    }

    .about-image {
        order: -1;
        overflow: hidden;
        margin: 0 -1.5rem;
    }

    .about-image img {
        height: 320px;
        width: 100%;
        border-radius: 0;
        transform: none !important;
        object-fit: cover;
    }

    /* Work Section - Better card design */
    .work {
        padding: 80px 0;
    }

    .work-header {
        margin-bottom: 3rem;
    }

    .work-header h2 {
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .work-item {
        overflow: hidden;
    }

    .work-item img {
        height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .work-item-content {
        padding: 2rem 1.75rem;
    }

    .work-item h3 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .work-item p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* Reviews Section - More elegant cards */
    .reviews {
        padding: 80px 0;
    }

    .reviews-header {
        margin-bottom: 3rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .review-item {
        padding: 2.5rem 2rem;
    }

    .review-stars {
        font-size: 1.15rem;
        margin-bottom: 1.75rem;
        letter-spacing: 3px;
    }

    .review-item p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.75rem;
    }

    .review-author {
        font-size: 1rem;
    }

    /* Contact Section - Better form design */
    .contact {
        padding: 80px 0;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .contact-info p {
        margin-bottom: 2rem;
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .contact-form-wrapper {
        padding: 2.5rem 2rem;
        order: 1;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 16px 18px;
        font-size: 16px;
    }

    .contact-form textarea {
        min-height: 140px;
    }

    .contact-form .btn {
        padding: 18px 32px;
        font-size: 16px;
        margin-top: 0.5rem;
    }

    /* Footer - More spacious */
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-brand img {
        width: 90px;
        margin-bottom: 1.25rem;
    }

    .footer-brand p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 1.25rem;
        font-size: 1.15rem;
    }

    .footer-links li {
        margin-bottom: 1rem;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.95rem;
    }

    /* Gallery - Beautiful mobile presentation */
    .gallery-hero {
        padding: 110px 0 70px;
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    }

    .gallery-hero h1 {
        font-size: 2.75rem;
        font-weight: 300;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }

    .gallery-hero p {
        font-size: 1.2rem;
        line-height: 1.7;
        color: #666666;
        max-width: 100%;
    }

    .gallery {
        padding: 70px 0;
        background-color: #ffffff;
    }

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

    .gallery-item {
        background-color: #ffffff;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-item:active {
        transform: scale(0.98);
    }

    .gallery-item img {
        height: 320px;
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .gallery-item-content {
        padding: 2rem 1.75rem 2.25rem;
        background-color: #ffffff;
    }

    .gallery-item h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        font-weight: 500;
        color: #1a1a1a;
    }

    .gallery-item p {
        font-size: 1.05rem;
        line-height: 1.65;
        color: #666666;
        margin: 0;
    }

    .gallery-cta {
        padding: 90px 0;
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
        text-align: center;
    }

    .gallery-cta h2 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
        font-weight: 400;
        line-height: 1.3;
    }

    .gallery-cta p {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-bottom: 3rem;
        color: #666666;
    }

    .gallery-cta .btn {
        padding: 18px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - maintain elegance */
    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2.15rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    h3 {
        font-size: 1.25rem;
    }

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

    .hero-text h1 {
        font-size: 2.15rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .hero-buttons .btn {
        padding: 16px 28px;
        font-size: 15px;
    }

    .hero-image {
        overflow: hidden;
        margin: 0 -1.25rem;
    }

    .hero-image img {
        height: 300px;
        transform: none !important;
    }

    .about,
    .work,
    .reviews,
    .contact {
        padding: 60px 0;
    }

    .about-image {
        overflow: hidden;
        margin: 0 -1.25rem;
    }

    .about-image img {
        height: 280px;
        transform: none !important;
    }

    .work-item img,
    .gallery-item img {
        height: 260px;
    }

    .work-item-content,
    .gallery-item-content {
        padding: 1.75rem 1.5rem;
    }

    .review-item {
        padding: 2rem 1.75rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.75rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px 16px;
    }

    .footer-brand img {
        width: 80px;
    }

    /* Gallery adjustments for small screens */
    .gallery-hero {
        padding: 100px 0 60px;
    }

    .gallery-hero h1 {
        font-size: 2.35rem;
    }

    .gallery-hero p {
        font-size: 1.1rem;
    }

    .gallery {
        padding: 60px 0;
    }

    .gallery-grid {
        gap: 2rem;
    }

    .gallery-item img {
        height: 280px;
    }

    .gallery-item-content {
        padding: 1.75rem 1.5rem 2rem;
    }

    .gallery-item h3 {
        font-size: 1.3rem;
    }

    .gallery-cta {
        padding: 70px 0;
    }

    .gallery-cta h2 {
        font-size: 2rem;
    }

    .gallery-cta p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .gallery-cta .btn {
        padding: 16px 36px;
        font-size: 15px;
    }
}