/* PVPCooling — shared styles, aligned with the WANG GLOBAL / PVPWare family */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #764ba2;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 2000;
    background: #2c3e50;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Header and navigation */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Full WANG GLOBAL mark: logo is 678x388 (~1.75:1).
   Height is set to match that ratio so object-fit:contain does not letterbox or crop. */
.logo-img {
    width: 112px;
    height: 64px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: contain;
    background: #ffffff;
    flex-shrink: 0;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.lang-toggle .lang-text {
    font-size: 14px;
    font-weight: 600;
}

.lang[hidden] {
    display: none !important;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero .lede,
.hero p {
    font-size: 1.25rem;
    margin-bottom: 28px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-focus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 32px;
    list-style: none;
}

.hero-focus li {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-on-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-on-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2,
.features h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    position: relative;
}

.section h2::after,
.features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 36px auto 48px;
    color: #555;
    font-size: 1.15rem;
    line-height: 1.8;
}

.features {
    padding: 80px 20px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.form-actions .btn {
    min-width: 200px;
}


.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #2c3e50;
}

.feature-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.feature-card p + p {
    margin-top: 12px;
}

.feature-card a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.feature-card a:hover {
    text-decoration: underline;
}

/* Primary-focus cards (the three core markets) */
.focus-card {
    position: relative;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.card-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667eea;
    margin-bottom: 10px;
}

.monogram {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

/* Prose blocks (About, longer service write-ups) */
.prose {
    max-width: 800px;
    margin: 36px auto 0;
    background: white;
    padding: 40px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.prose p {
    color: #444;
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 64px 20px;
}

.cta-band h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-band h2::after {
    display: none;
}

.cta-band p {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.95;
}

.cta-band a.email-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* Contact form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    font-family: inherit;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    color: #666;
    font-size: 0.95rem;
    margin-top: 8px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-error {
    background: #fdecea;
    color: #c0392b;
}

.form-status.is-info {
    background: #eef2ff;
    color: #2c3e50;
}

/* Result pages from contact_process.php */
.result-panel {
    max-width: 720px;
    margin: 40px auto 0;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.result-panel p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 14px;
}

.result-panel a {
    color: #667eea;
    font-weight: 600;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-content a {
    color: #3498db;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 8px 0 16px;
}

.footer-nav a {
    color: #3498db;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        gap: 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        right: 0;
        width: 10%;
        min-width: 200px;
        max-width: 250px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 8px 0 0 8px;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
        height: auto;
    }

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

    .nav-links {
        flex-direction: column;
        padding: 25px 25px;
        gap: 0;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .nav-links li {
        width: 100%;
        min-height: 50px;
    }

    .nav-menu .nav-links a,
    .nav-menu .nav-links a:link,
    .nav-menu .nav-links a:visited,
    .nav-menu .nav-links a:hover,
    .nav-menu .nav-links a:active {
        display: grid;
        place-items: center;
        width: 100%;
        height: 50px;
        padding: 0;
        margin: 0;
        border-radius: 0;
        white-space: nowrap;
        text-align: center;
        background-color: transparent;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 18px;
        transform: none;
    }

    .nav-menu .nav-links a:hover,
    .nav-menu .nav-links a.active {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .hero {
        padding: 72px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section h2,
    .features h2,
    .cta-band h2 {
        font-size: 2rem;
    }

    .features-grid,
    .features-grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .prose,
    .result-panel {
        padding: 24px;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        min-height: 76px;
    }

    .hero {
        padding: 56px 16px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .logo-img {
        width: 96px;
        height: 55px;
        margin-right: 12px;
    }

    .logo-text {
        font-size: 22px;
    }

    .hamburger-menu {
        width: 25px;
        height: 25px;
    }

    .hamburger-line {
        height: 2px;
    }

    .nav-menu {
        top: 76px;
        min-width: 180px;
        max-width: 220px;
    }

    .lang-toggle {
        padding: 8px 14px;
    }
}

.nowrap {
    white-space: nowrap;
}
