/*
Theme Name: Wing Sun Modern
Theme URI: https://wingsunmgt.com
Author: Antigravity
Description: A modern, atmospheric redesign of Wing Sun Management.
Version: 1.0
*/

:root {
    --primary: #0f2c59;
    --secondary: #1e3a8a;
    --accent: #d4af37;
    /* Gold */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-cn {
    font-size: 1.5rem;
}

.logo-en {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.3);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Section General */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Features */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Contact */
.contact {
    background: var(--primary);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--white);
}

/* Footer */
.site-footer {
    background: #0a1e3f;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Inner Page Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 120px 0 60px;
    margin-bottom: 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.main-content {
    padding-bottom: 100px;
}

.entry-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.entry-content ul {
    margin-bottom: 30px;
    list-style: none;
}

.entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.entry-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Contact section inside entry-content */
.entry-content .contact {
    background: transparent;
    color: var(--text-main);
    padding: 0;
}

.entry-content .contact .section-title h2 {
    color: var(--primary);
    margin-top: 0;
}

.entry-content .contact .section-title p {
    color: var(--text-light);
}

.entry-content .contact-item h4 {
    color: var(--primary);
    margin-top: 0;
}

.entry-content .contact-item p {
    color: var(--text-main);
}

.entry-content .contact-item a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content .contact-item a:hover {
    color: var(--accent);
}

.entry-content .contact-icon {
    background: var(--bg-light);
    color: var(--accent);
}

.entry-content .contact-form input,
.entry-content .contact-form textarea {
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.entry-content .contact-form input::placeholder,
.entry-content .contact-form textarea::placeholder {
    color: var(--text-light);
}

.entry-content .contact-form input:focus,
.entry-content .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.entry-content .submit-btn {
    background: var(--primary);
    color: var(--white);
}

.entry-content .submit-btn:hover {
    background: var(--secondary);
}


/* Pricing/Plan Cards in Content */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.plan-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-card h4 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

/* FAQ Styles */
.faq-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Contact Page Featured Image */
.contact-featured-image {
    margin-bottom: 60px;
}

.contact-featured-image .container {
    max-width: var(--max-width);
}

.contact-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Contact Map Section */
.contact-map {
    background: var(--bg-light);
    padding: 80px 0;
}

.contact-map .section-title h2 {
    color: var(--primary);
}

.contact-map .section-title p {
    color: var(--text-light);
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.map-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .contact-featured-image {
        margin-bottom: 40px;
    }

    .contact-image {
        border-radius: 12px;
    }

    .map-wrapper {
        border-radius: 12px;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

/* =========================================
   New Contact Page Styles
   ========================================= */

/* Hero Banner with Background Image */
.contact-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    padding: 160px 0 100px;
    margin-bottom: 80px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 89, 0.7);
    /* Primary color with opacity */
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
}

/* Contact Layout Grid */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left Side: Contact Details */
.content-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.content-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.content-header p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.info-text p {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.info-text a {
    color: var(--text-main);
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--accent);
}

/* Right Side: Contact Form */
.contact-form-area {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-card h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

.submit-btn.full-width {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-form-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 80px;
    }

    .content-header h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   Fix Layout Issues for Contact Page
   ========================================= */

/* Reset entry-content styles specifically for contact page to avoid double boxing */
.entry-content.contact-page-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
}

/* Ensure container width is respected */
.contact-page-content .contact-layout {
    width: 100%;
}