/**
 * Service Pages Styles
 * Enhanced responsive design for service landing pages
 * 
 * @package ATH_ATRAHI_DESIGN
 */

/* ==========================================================================
   Service Hero Section
   ========================================================================== */

.service-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px 80px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 100%);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.service-hero-badge {
    display: inline-block;
    background: rgba(185, 157, 99, 0.2);
    border: 1px solid rgba(185, 157, 99, 0.5);
    color: #b99d63;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.service-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.service-hero h1 .text-gold {
    color: #b99d63;
}

.service-hero > .container > .service-hero-content > p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Hero Stats */
.service-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-hero-stats .stat-item {
    text-align: center;
    padding: 15px;
}

.service-hero-stats .stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #b99d63;
    line-height: 1;
    margin-bottom: 8px;
}

.service-hero-stats .stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

/* Hero Buttons */
.service-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.service-hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-hero-buttons .btn-gold {
    background: linear-gradient(135deg, #b99d63, #d4af37);
    color: #1a1a1a;
    border: none;
}

.service-hero-buttons .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(185, 157, 99, 0.4);
}

.service-hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
}

.service-hero-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   Breadcrumb Section
   ========================================================================== */

.breadcrumb-section {
    background: #1a1a1a;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   Service Types Section
   ========================================================================== */

.service-types {
    padding: 80px 0;
    background: #fff;
}

.service-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.service-type-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b99d63, #d4af37);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-type-card:hover {
    border-color: #b99d63;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-type-card:hover::before {
    transform: scaleX(1);
}

.service-type-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-type-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-type-card > p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-type-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-type-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #f3f4f6;
}

.service-type-features li:first-child {
    border-top: none;
}

.service-type-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b99d63;
    font-weight: 700;
}

/* Add image to service type cards */
.service-type-card-img {
    position: relative;
    margin: -30px -24px 20px;
    height: 180px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.service-type-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-type-card:hover .service-type-card-img img {
    transform: scale(1.1);
}

/* ==========================================================================
   Design Styles Section
   ========================================================================== */

.service-styles {
    padding: 80px 0;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.style-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.style-card:hover {
    border-color: #b99d63;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.style-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.style-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.style-card p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.service-features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(185, 157, 99, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.service-pricing {
    padding: 80px 0;
    background: #f9fafb;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 35px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #b99d63;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #b99d63;
    background: linear-gradient(135deg, #fff 0%, #fffbf5 100%);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #b99d63, #d4af37);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #b99d63;
}

.price-unit {
    font-size: 1rem;
    color: #6b7280;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.pricing-card-features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
}

.pricing-card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    background: transparent;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.service-cta {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(26,26,26,0.8);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn-dark {
    background: #1a1a1a;
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-dark:hover {
    background: #333;
    transform: translateY(-3px);
}

.cta-buttons .btn-white {
    background: #fff;
    color: #1a1a1a;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-white:hover {
    background: #f3f4f6;
    transform: translateY(-3px);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    margin-bottom: 16px;
}

.section-badge-text {
    display: inline-block;
    background: rgba(185, 157, 99, 0.1);
    border: 1px solid rgba(185, 157, 99, 0.3);
    color: #b99d63;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-title .text-gold {
    color: #b99d63;
}

.section-desc {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
}

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

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .service-types-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .styles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .service-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .service-hero {
        min-height: 60vh;
        padding: 100px 20px 60px;
        background-attachment: scroll;
    }
    
    .service-hero-stats {
        gap: 24px;
    }
    
    .service-hero-stats .stat-item {
        min-width: 100px;
    }
    
    .service-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .styles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .service-hero {
        min-height: auto;
        padding: 100px 16px 50px;
    }
    
    .service-hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .service-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .service-hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }
    
    .service-hero-stats .stat-item {
        padding: 10px 5px;
        min-width: auto;
        flex: 1;
    }
    
    .service-hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .service-hero-stats .stat-label {
        font-size: 11px;
    }
    
    .service-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .service-hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    /* Sections */
    .service-types,
    .service-styles,
    .service-features,
    .service-pricing,
    .service-cta {
        padding: 50px 0;
    }
    
    .section-header {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-desc {
        font-size: 0.95rem;
    }
    
    /* Service Types */
    .service-types-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
        margin-top: 30px;
    }
    
    .service-type-card {
        padding: 24px 20px;
    }
    
    .service-type-icon {
        font-size: 2.5rem;
    }
    
    .service-type-card h3 {
        font-size: 1.25rem;
    }
    
    /* Styles Grid */
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
        margin-top: 30px;
    }
    
    .style-card {
        padding: 20px 12px;
    }
    
    .style-icon {
        font-size: 2rem;
    }
    
    .style-card h3 {
        font-size: 0.9rem;
    }
    
    .style-card p {
        font-size: 0.75rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    /* Pricing */
    .pricing-cards {
        padding: 0 16px;
        margin-top: 30px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    /* CTA */
    .cta-content {
        padding: 0 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-dark,
    .cta-buttons .btn-white {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Portrait (max 575px) */
@media (max-width: 575px) {
    .service-hero {
        padding: 90px 12px 40px;
    }
    
    .service-hero h1 {
        font-size: 1.5rem;
    }
    
    .service-hero-stats {
        flex-wrap: wrap;
    }
    
    .service-hero-stats .stat-item {
        width: 33.33%;
        padding: 8px 4px;
    }
    
    .service-hero-stats .stat-number {
        font-size: 1.25rem;
    }
    
    .service-hero-stats .stat-label {
        font-size: 10px;
    }
    
    .styles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .style-card {
        padding: 15px 8px;
    }
    
    .style-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .style-card h3 {
        font-size: 0.75rem;
    }
    
    .style-card p {
        display: none;
    }
}

/* ==========================================================================
   Mobile Menu Fixes
   ========================================================================== */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-logo img {
    height: 60px;
    width: auto;
}

.mobile-close {
    background: none;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
}

.mobile-search {
    padding: 20px 0;
}

.mobile-search form {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.mobile-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
}

.mobile-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.mobile-search-btn {
    background: #b99d63;
    border: none;
    padding: 14px 16px;
    color: #1a1a1a;
    cursor: pointer;
}

.mobile-nav-menu {
    flex: 1;
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-list > li > a:hover {
    color: #b99d63;
}

.menu-icon {
    font-size: 20px;
}

/* Mobile Submenu */
.has-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.has-submenu.active .toggle-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0,0,0,0.2);
    margin: 0 -20px;
    padding: 0 20px;
}

.has-submenu.active .mobile-submenu {
    max-height: 500px;
    padding: 10px 20px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 0;
    padding-left: 16px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.mobile-submenu li a:hover {
    color: #b99d63;
    padding-left: 24px;
}

/* Mobile CTA */
.mobile-nav-cta {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-cta-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #b99d63, #d4af37);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 16px;
}

.mobile-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.mobile-cta-btn.messenger {
    background: #0084ff;
}

.mobile-cta-btn.zalo {
    background: #0068ff;
}

/* Mobile Footer */
.mobile-nav-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.mobile-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.mobile-socials a:hover {
    background: rgba(185, 157, 99, 0.2);
    border-color: #b99d63;
    color: #b99d63;
}

.mobile-nav-footer p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.main-nav.scrolled .hamburger span {
    background: #1a1a1a;
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-center,
    .nav-phone {
        display: none !important;
    }
    
    .nav-cta-btn {
        display: none;
    }
}

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