/* ═══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Wong Lye Pte Ltd (v2 — Logo-anchored palette)
   Aesthetic: Established Singapore family builder. Confident heritage.
   Anchored by the Wong Lye 旺来 mark — red, yellow, ink on warm cream.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Primary palette — drawn from the Wong Lye logo */
    --red: #d62018;
    --red-dark: #a01510;
    --red-soft: #fce8e7;
    --yellow: #f5c518;
    --yellow-soft: #fdf3cf;
    --gold-deep: #b8881e;

    /* Ink and surface */
    --ink: #181410;
    --ink-soft: #4a423a;
    --ink-mute: #8b8278;
    --paper: #faf6ee;
    --paper-warm: #f3ecd9;
    --line: #d4c9b3;
    --green: #25D366;
    --white: #ffffff;

    --max-w: 1180px;
    --section-pad: clamp(72px, 9vw, 120px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.section-eyebrow {
    font-size: 11px; font-weight: 500;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--red); margin-bottom: 14px;
    display: inline-block;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
}
.section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 400; line-height: 1.12;
    letter-spacing: -0.015em;
    margin-bottom: 18px; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--gold-deep); }
.section-subtitle {
    font-size: 16px; color: var(--ink-soft);
    max-width: 640px; line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 30px; border: none; border-radius: 2px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px; font-weight: 500;
    letter-spacing: 0.01em; cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(214,32,24,0.3); }
.btn-whatsapp { background: var(--green); color: var(--white); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.btn-outline { background: transparent; color: var(--paper); border: 1.5px solid rgba(250,246,238,0.5); }
.btn-outline:hover { border-color: var(--paper); background: rgba(250,246,238,0.08); }
.btn-outline-ink { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline-ink:hover { border-color: var(--red); color: var(--red); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,246,238,0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(20px, 4vw, 40px);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    height: 80px; gap: 20px;
}
.header-brand {
    display: flex; align-items: center;
    gap: 12px; text-decoration: none; color: inherit;
}
.header-logo-img {
    width: 48px; height: 48px;
    border-radius: 50%; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(24,20,16,0.12);
}
.header-wordmark {
    display: flex; flex-direction: column; line-height: 1.1;
}
.header-wordmark .name {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 500;
    color: var(--ink); letter-spacing: -0.01em;
}
.header-wordmark .name em { font-style: italic; color: var(--red); font-weight: 500; }
.header-wordmark .meta {
    font-size: 10px; color: var(--ink-mute);
    letter-spacing: 1.8px; text-transform: uppercase;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .header-wordmark .meta { display: none; }
    .header-wordmark .name { font-size: 19px; }
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 2px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--red); background: var(--red-soft); }
.nav-cta {
    background: var(--ink) !important; color: var(--paper) !important;
    margin-left: 10px;
}
.nav-cta:hover { background: var(--red) !important; color: var(--paper) !important; }

.mobile-toggle {
    display: none; background: none; border: none;
    font-size: 24px; cursor: pointer; color: var(--ink);
}
@media (max-width: 900px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 80px; left: 0; right: 0;
        background: var(--paper); flex-direction: column; gap: 0;
        padding: 16px 20px; border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; width: 100%; border-bottom: 1px solid var(--line); }
    .nav-links a:last-child { border-bottom: none; }
}

/* HERO */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center;
    padding: 80px clamp(20px, 4vw, 40px);
    background:
        linear-gradient(135deg, rgba(24,20,16,0.82) 0%, rgba(24,20,16,0.6) 60%, rgba(160,21,16,0.45) 100%),
        url('hero.jpg') center/cover no-repeat;
    color: var(--paper);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-eyebrow {
    font-size: 11px; font-weight: 500;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 24px;
    font-family: 'Inter Tight', sans-serif;
}
.hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 400; line-height: 1.05;
    letter-spacing: -0.02em; margin-bottom: 24px;
    max-width: 920px;
}
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: rgba(250,246,238,0.85);
    max-width: 640px; line-height: 1.6; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* TRUST STRIP */
.trust-strip { background: var(--ink); color: var(--paper); padding: 28px clamp(20px, 4vw, 40px); }
.trust-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 24px; align-items: center;
}
.trust-item { text-align: center; padding: 0 8px; border-right: 1px solid rgba(250,246,238,0.15); }
.trust-item:last-child { border-right: none; }
.trust-key {
    font-family: 'Fraunces', serif; font-size: 22px;
    color: var(--yellow); line-height: 1; margin-bottom: 6px;
    font-weight: 500;
}
.trust-label {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(250,246,238,0.65); line-height: 1.4;
}
@media (max-width: 800px) {
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .trust-item { border-right: none; border-bottom: 1px solid rgba(250,246,238,0.12); padding-bottom: 16px; }
    .trust-item:nth-last-child(1), .trust-item:nth-last-child(2) { border-bottom: none; }
}

/* SECTION BASE */
section { padding: var(--section-pad) clamp(20px, 4vw, 40px); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* PROBLEM */
.problem-section { background: var(--paper-warm); position: relative; }
.problem-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 60px; align-items: start;
}
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; gap: 32px; } }
.problem-quote {
    font-family: 'Fraunces', serif; font-style: italic;
    font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2;
    color: var(--red); border-left: 3px solid var(--red);
    padding-left: 24px;
}
.problem-body p { margin-bottom: 18px; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.problem-body p:last-child { margin-bottom: 0; }

/* SERVICES */
.services-section { background: var(--paper); }
.services-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; gap: 20px; } }

.service-card {
    background: var(--white); border: 1px solid var(--line);
    padding: 36px 30px; border-radius: 2px;
    position: relative; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px; background: var(--red);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(24,20,16,0.08);
    border-color: var(--red);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 32px; margin-bottom: 18px; }
.service-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 500; line-height: 1.2;
    margin-bottom: 14px; color: var(--ink);
}
.service-card p {
    font-size: 14.5px; color: var(--ink-soft);
    line-height: 1.7; margin-bottom: 22px; flex-grow: 1;
}
.service-link {
    color: var(--red); font-size: 13px; font-weight: 500;
    letter-spacing: 0.5px; transition: gap 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.service-link:hover { gap: 10px; }

/* ONE-TEAM */
.one-team-section { background: var(--ink); color: var(--paper); }
.one-team-section .section-eyebrow { color: var(--yellow); }
.one-team-section .section-title { color: var(--paper); }
.one-team-section .section-title em { color: var(--yellow); }
.one-team-section .section-subtitle { color: rgba(250,246,238,0.75); }
.team-table {
    max-width: var(--max-w); margin: 32px auto 28px;
    width: 100%; border-collapse: collapse;
    background: rgba(250,246,238,0.04);
    border: 1px solid rgba(250,246,238,0.15);
}
.team-table th, .team-table td {
    padding: 16px 22px; text-align: left;
    border-bottom: 1px solid rgba(250,246,238,0.12);
    color: var(--paper); font-size: 14.5px;
}
.team-table th {
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--yellow); background: rgba(250,246,238,0.04);
}
.team-table td:first-child { font-weight: 500; }
.team-resolution {
    max-width: var(--max-w); margin: 0 auto;
    padding: 24px; background: rgba(245,197,24,0.08);
    border-left: 3px solid var(--yellow);
    font-size: 15px; line-height: 1.75;
    color: rgba(250,246,238,0.92);
}
.team-resolution p { margin-bottom: 12px; }
.team-resolution p:last-child { margin-bottom: 0; }

/* HOW WE BILL */
.bill-section { background: var(--paper-warm); }
.bill-content { max-width: 920px; margin: 0 auto; text-align: center; }
.bill-body {
    font-size: 16.5px; line-height: 1.75; color: var(--ink-soft);
    margin-bottom: 48px; max-width: 720px;
    margin-left: auto; margin-right: auto;
}
.bill-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 700px) { .bill-icons { grid-template-columns: 1fr; gap: 20px; } }
.bill-icon-block {
    background: var(--white); border: 1px solid var(--line);
    padding: 28px 22px; border-radius: 2px; text-align: center;
}
.bill-icon-block .icon-emoji { font-size: 28px; margin-bottom: 12px; }
.bill-icon-block h4 {
    font-family: 'Fraunces', serif; font-size: 17px;
    font-weight: 500; margin-bottom: 8px; color: var(--ink);
}
.bill-icon-block p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }

/* ABOUT TEASER */
.about-section { background: var(--paper); }
.about-content { max-width: 760px; margin: 0 auto; text-align: center; }
.about-body { font-size: 16.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 28px; }
.about-body p { margin-bottom: 18px; }

/* JOURNAL */
.journal-section { background: var(--paper-warm); }
.journal-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 32px;
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; gap: 18px; } }
.journal-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: 2px; overflow: hidden;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(24,20,16,0.08);
    border-color: var(--red);
}
.journal-thumb { aspect-ratio: 16/10; background: var(--paper-warm) center/cover no-repeat; }
.journal-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.journal-cat {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--red); font-weight: 500; margin-bottom: 10px;
}
.journal-card h3 {
    font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500;
    line-height: 1.3; color: var(--ink);
    margin-bottom: 10px; flex-grow: 1;
}
.journal-card p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; margin-bottom: 14px; }
.journal-meta { font-size: 12px; color: var(--ink-mute); }
.journal-loading { text-align: center; color: var(--ink-mute); padding: 40px 20px; font-style: italic; }

/* FAQ */
.faq-section { background: var(--paper); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-size: 18px; font-weight: 500; color: var(--ink);
    padding: 8px 0; list-style: none; position: relative;
    padding-right: 40px; transition: color 0.2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: '+'; position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%); font-size: 24px;
    color: var(--red); font-weight: 300;
    transition: transform 0.25s;
}
.faq-item[open] .faq-q::after { content: '–'; }
.faq-item:hover .faq-q { color: var(--red); }
.faq-a { padding: 12px 40px 12px 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }

/* FINAL CTA */
.final-cta {
    background: linear-gradient(135deg, rgba(24,20,16,0.92), rgba(24,20,16,0.85)), var(--ink);
    color: var(--paper); text-align: center;
}
.final-cta .container { max-width: 720px; }
.final-cta h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400; line-height: 1.15;
    letter-spacing: -0.015em; margin-bottom: 18px;
    color: var(--paper);
}
.final-cta h2 em { font-style: italic; color: var(--yellow); }
.final-cta .cta-sub { font-size: 17px; color: rgba(250,246,238,0.78); margin-bottom: 36px; }
.final-cta .btn { padding: 18px 38px; font-size: 16px; }
.final-cta .cta-fineprint {
    margin-top: 18px; font-size: 12px;
    letter-spacing: 1px; color: rgba(250,246,238,0.55);
    text-transform: uppercase;
}

/* FOOTER */
.site-footer {
    background: var(--ink);
    color: rgba(250,246,238,0.7);
    padding: 60px clamp(20px, 4vw, 40px) 30px;
    border-top: 3px solid var(--red);
}
.footer-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 36px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.footer-brand-name {
    font-family: 'Fraunces', serif; font-size: 24px;
    color: var(--paper); font-weight: 500;
}
.footer-brand-name em { font-style: italic; color: var(--red); }
.footer-brand p { font-size: 13px; line-height: 1.65; color: rgba(250,246,238,0.6); margin-bottom: 14px; }
.footer-meta { font-size: 11px; letter-spacing: 1px; color: rgba(250,246,238,0.4); text-transform: uppercase; }
.footer-col h4 {
    font-family: 'Fraunces', serif;
    color: var(--yellow); font-size: 13px; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 14px;
    color: rgba(250,246,238,0.7);
    padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
    max-width: var(--max-w); margin: 0 auto;
    padding-top: 24px; border-top: 1px solid rgba(250,246,238,0.12);
    font-size: 12px; color: rgba(250,246,238,0.5); line-height: 1.7;
}
.footer-bottom .sister-line { margin-top: 8px; font-style: italic; }
.footer-bottom .sister-line a { color: var(--yellow); border-bottom: 1px dotted rgba(245,197,24,0.4); }

/* FLOATING WHATSAPP */
.wa-float {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--green); color: white;
    padding: 14px 22px; border-radius: 60px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.35);
    font-size: 14px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px;
    z-index: 99; transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 600px) {
    .wa-float { padding: 12px; }
    .wa-float span { display: none; }
}

/* MISC */
::selection { background: var(--red); color: var(--paper); }
*:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
