/* =====================================================
   GPPC MAIN STYLES
   Page-specific components and layouts
   ===================================================== */

/* ==================== GLOBAL HEADING DEFAULTS ==================== */

/* Prevent browser hyphenation on all headings — always word-wrap cleanly */
h1, h2, h3, h4, h5, h6 {
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
}

/* Responsive font-size for large page/article headers on mobile */
@media (max-width: 768px) {
    .article-header h1,
    .page-header h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }
}

/* ==================== NAVIGATION ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.nav-brand {
    text-decoration: none;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo-image {
        height: 50px; /* Reduced from 70px - more balanced size */
    }
}

@media (min-width: 1200px) {
    .logo-image {
        height: 55px; /* Slightly larger on very wide screens */
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo-line {
    width: 24px;
    height: 3px;
    background-color: var(--turquoise-800);
    border-radius: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--navy-800);
    line-height: 1;
}

.logo-subtitle {
    font-size: var(--text-xs);
    color: var(--gray-600);
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-lg); /* 1.125rem = 18px - scales with zoom */
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy-800);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--turquoise-800);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.language-switcher:hover .lang-dropdown,
.lang-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background-color: var(--gray-100);
    color: var(--navy-800);
}

.lang-option.active {
    background-color: var(--turquoise-200);
    color: var(--navy-800);
    font-weight: var(--weight-medium);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--navy-800);
    transition: all var(--transition-base);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link.active::after {
        display: none;
    }
}

/* ==================== HERO SECTION ==================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(135deg,
            rgba(15, 23, 38, 0.65) 0%,
            rgba(26, 41, 66, 0.60) 50%,
            rgba(36, 59, 94, 0.55) 100%),
        url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background-color: rgba(121, 201, 206, 0.1);
    border: 1px solid rgba(121, 201, 206, 0.3);
    border-radius: var(--radius-full);
    color: var(--turquoise-300);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-8);
}

.badge-icon {
    font-size: var(--text-lg);
    color: var(--turquoise-800);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: var(--space-10);
    font-weight: 400;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.75rem;
    }
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .hero-badge {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
        transparent,
        var(--turquoise-800),
        transparent);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* ==================== STATS BAR ==================== */

.stats-bar {
    background-color: var(--white);
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--navy-800);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ==================== INTRO SECTION ==================== */

.intro {
    padding-top: var(--section-lg);
    padding-bottom: var(--section-md);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: var(--text-lg);
    color: var(--gray-700);
    line-height: var(--leading-loose);
}

/* ==================== SECTION HEADER ==================== */

.section-header {
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: var(--turquoise-200);
    color: var(--navy-800);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== SERVICES GRID ==================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--turquoise-200);
    border-radius: var(--radius-lg);
    color: var(--navy-800);
    margin-bottom: var(--space-6);
}

.service-title {
    font-size: var(--text-2xl);
    color: var(--navy-800);
    margin-bottom: var(--space-3);
}

.service-description {
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-6);
}

.service-image {
    width: 100%;
    height: 240px !important;
    max-height: 240px !important;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .service-image {
        height: 280px !important;
        max-height: 280px !important;
    }
}

.service-features li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    padding-left: var(--space-6);
    position: relative;
    margin-bottom: var(--space-2);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    background-color: var(--turquoise-800);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--turquoise-800);
    text-decoration: none;
    margin-top: auto;
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: var(--space-3);
    color: var(--turquoise-900);
}

/* ==================== INSIGHTS GRID ==================== */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.insight-card {
    display: flex;
    flex-direction: column;
}

.insight-thumbnail {
    width: 100%;
    height: 220px !important;
    max-height: 220px !important;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.insight-card:hover .insight-thumbnail {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .insight-thumbnail {
        height: 260px !important;
        max-height: 260px !important;
    }
}

.insight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.insight-category {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--turquoise-800);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.insight-date {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.insight-title {
    margin-bottom: var(--space-4);
}

.insight-title a {
    color: var(--navy-800);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.insight-title a:hover {
    color: var(--turquoise-800);
}

.insight-excerpt {
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.insight-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--turquoise-800);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.insight-link:hover {
    gap: var(--space-3);
    color: var(--turquoise-900);
}

/* ==================== ABOUT SECTION ==================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

.about-highlights {
    list-style: none;
}

.about-highlights li {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.about-highlights svg {
    flex-shrink: 0;
    color: var(--turquoise-800);
    margin-top: 4px;
}

.about-highlights strong {
    display: block;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.about-highlights p {
    color: var(--gray-300);
    font-size: var(--text-sm);
    margin: 0;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
    .about-image {
        max-width: 100%;
    }
}

.experience-badge {
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--turquoise-800),
        var(--turquoise-900));
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-turquoise);
}

.experience-number {
    font-size: var(--text-6xl);
    font-weight: var(--weight-bold);
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.experience-label {
    font-size: var(--text-lg);
    color: var(--white);
    line-height: 1.4;
}

/* ==================== CONTACT SECTION ==================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

.contact-details {
    margin-top: var(--space-8);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--turquoise-200);
    border-radius: var(--radius-lg);
    color: var(--navy-800);
}

.contact-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-1);
}

.contact-value {
    font-size: var(--text-base);
    color: var(--gray-800);
    line-height: var(--leading-relaxed);
}

.contact-value a {
    color: var(--turquoise-800);
}

.form-note {
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--gray-600);
    text-align: center;
}

.form-note a {
    color: var(--turquoise-800);
}

/* ==================== FOOTER ==================== */

.footer {
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo-image {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-4);
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo .logo-line {
    background-color: var(--turquoise-800);
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin-bottom: var(--space-2);
}

.footer-chinese {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.footer-section h4 {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--turquoise-800);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-links-inline a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links-inline a:hover {
    color: var(--turquoise-800);
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */

.cookie-consent {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 90%;
    max-width: 900px;
    background: rgba(121, 201, 206, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.cookie-content h3 {
    color: var(--navy-900);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
}

.cookie-content p {
    color: var(--navy-800);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.cookie-accept-btn {
    background-color: var(--navy-900);
    color: var(--white);
    padding: var(--space-4) var(--space-12);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.cookie-accept-btn:hover {
    background-color: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
    .cookie-consent {
        width: 95%;
        padding: var(--space-8);
    }

    .cookie-content h3 {
        font-size: var(--text-2xl);
    }

    .cookie-content p {
        font-size: var(--text-base);
    }
}
