/* ==========================================================
   Golden Roof Company — 纽约法拉盛屋顶专家
   设计系统：石墨黑 + 香槟金，呼应品牌名 "Golden Roof"
   ========================================================== */

:root {
    --dark-color: #14181f;
    --dark-color-2: #1c222d;
    --primary-color: #1f2733;
    --accent-color: #c9a227;
    --accent-light: #e3c463;
    --accent-dark: #a3811c;
    --off-white: #f7f5f0;
    --white: #ffffff;
    --text-color: #2b2b2e;
    --text-muted: #656b76;
    --border-color: #e7e3d9;
    --success-color: #2f7d4f;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(20, 24, 31, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 24, 31, 0.12);
    --shadow-lg: 0 24px 60px rgba(20, 24, 31, 0.22);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-color);
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-muted); }

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-dark {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h2, .section-dark h3 {
    color: var(--white);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent-color);
    display: inline-block;
}

.section-dark .eyebrow {
    color: var(--accent-light);
}

.section-head p {
    margin-top: 14px;
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: var(--dark-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-light);
}

.btn-dark {
    background: var(--dark-color);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.topbar a:hover { color: var(--accent-light); }

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
}

.topbar-item:last-child { margin-right: 0; }

/* ---------- Header ---------- */
header.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text .cn {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: 0.04em;
}

.logo-text .en {
    font-size: 0.7rem;
    color: var(--accent-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav.main-nav a.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

nav.main-nav a.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav.main-nav a.nav-link:hover::after,
nav.main-nav a.nav-link.active::after {
    width: 100%;
}

nav.main-nav a.nav-link.active {
    color: var(--accent-dark);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--off-white);
    color: var(--accent-dark);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-phone .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-phone .num {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--dark-color);
    display: block;
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: radial-gradient(circle at 15% 20%, #232b3a 0%, var(--dark-color) 55%, #0d1016 100%);
    color: var(--white);
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, transparent 46%, rgba(201, 162, 39, 0.08) 47%, rgba(201, 162, 39, 0.08) 48%, transparent 49%),
        linear-gradient(60deg, transparent 46%, rgba(201, 162, 39, 0.06) 47%, rgba(201, 162, 39, 0.06) 48%, transparent 49%);
    background-size: 90px 90px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badge svg { width: 16px; height: 16px; fill: var(--accent-light); }

.hero h1 { color: var(--white); margin-bottom: 4px; }

.hero .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 18px 0 6px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 34px;
    backdrop-filter: blur(6px);
}

.hero-panel h3 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.hero-panel ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.hero-panel ul li:last-child { border-bottom: none; }

.hero-panel ul li svg { width: 18px; height: 18px; fill: var(--accent-light); flex-shrink: 0; margin-top: 2px; }

/* ---------- Roof line SVG divider ---------- */
.roofline-divider {
    display: block;
    width: 100%;
    height: 46px;
}

/* ---------- Stats ---------- */
.stats-bar {
    background: var(--dark-color-2);
    padding: 34px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-item .label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ---------- Service Cards ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbeecb, #f0d68a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg { width: 28px; height: 28px; fill: var(--accent-dark); }

.service-card h3 { margin-bottom: 10px; }

.service-card p { flex-grow: 1; }

.service-card .card-link {
    margin-top: 18px;
    font-weight: 700;
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-card .card-link svg { width: 16px; height: 16px; fill: currentColor; transition: var(--transition); }

.service-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Process Steps ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 30px 24px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.process-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-color);
    color: var(--accent-light);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* ---------- Split section (text + panel) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split img, .split .art-frame { border-radius: var(--radius-lg); }

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.checklist svg { width: 20px; height: 20px; fill: var(--success-color); flex-shrink: 0; margin-top: 2px; }

.art-frame {
    background: linear-gradient(160deg, var(--dark-color), #2a3242);
    border-radius: var(--radius-lg);
    padding: 44px;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-frame svg { width: 100%; height: auto; max-width: 320px; }

/* ---------- Badges row ---------- */
.trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 30px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-item svg { width: 26px; height: 26px; fill: var(--accent-dark); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    cursor: pointer;
}

.faq-question .plus {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--accent-dark);
    font-weight: 700;
}

.faq-item.open .faq-question .plus {
    transform: rotate(135deg);
    background: var(--accent-color);
    color: var(--dark-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 4px 22px;
}

/* ---------- Service Area List ---------- */
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.area-tag {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--off-white);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.area-tag:hover {
    background: var(--dark-color);
    color: var(--accent-light);
    border-color: var(--dark-color);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--dark-color), #232b3a);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--white);
}

.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, 0.75); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
    background: var(--off-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    font-size: 0.9rem;
}

.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--accent-dark); }
.breadcrumb-bar span { color: var(--dark-color); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: radial-gradient(circle at 85% 20%, #232b3a 0%, var(--dark-color) 60%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 14px auto 0; }

/* ---------- Contact ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--dark-color);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-info-card h3 { color: var(--white); }

.contact-info-list { margin-top: 24px; }

.contact-info-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-list li:last-child { border-bottom: none; }

.contact-info-list svg { width: 22px; height: 22px; fill: var(--accent-light); flex-shrink: 0; margin-top: 2px; }

.contact-info-list .t { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.contact-info-list .v { font-weight: 700; }

.contact-form {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text-color);
    transition: var(--transition);
    background: var(--white);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Map embed frame ---------- */
.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-partner {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-partner a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-partner a:hover {
    color: var(--white);
}

/* ---------- Footer overrides ---------- */
footer .container { max-width: var(--max-width); }

footer h3 span.cn { display: block; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
/* Reveal-on-scroll is a progressive enhancement: content stays visible
   without JS, and only animates in when the "has-js" class is present. */
.reveal {
    opacity: 1;
    transform: none;
}
html.has-js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
html.has-js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid, .split, .contact-wrap { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .split .art-frame { order: -1; }
}

@media (max-width: 860px) {
    nav.main-nav { position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh; background: var(--white); flex-direction: column; align-items: flex-start; padding: 90px 28px 28px; box-shadow: var(--shadow-lg); transition: right 0.35s ease; gap: 0; overflow-y: auto; }
    nav.main-nav.open { right: 0; }
    nav.main-nav > ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; }
    nav.main-nav > ul > li { width: 100%; }
    .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%; padding-left: 12px; }
    .has-dropdown.open .dropdown { display: block; }
    .header-phone { display: none; }
    .nav-toggle { display: flex; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .section { padding: 60px 0; }
    .hero { padding: 60px 0 80px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-item { margin-right: 12px; font-size: 0.78rem; }
}
