/* =========================================================
   Nature Law Firm - Professional One Page Style
   แยก CSS เรียบร้อย / รองรับภาษาไทย / Responsive
   ========================================================= */

:root {
    --font-thai: "Noto Sans Thai", "Sarabun", "Tahoma", sans-serif;
    --font-display: "Playfair Display", "Noto Sans Thai", serif;

    --navy-950: #06172d;
    --navy-900: #09203d;
    --navy-800: #0d2d52;
    --navy-700: #123d68;
    --gold-700: #a77b32;
    --gold-600: #bd9348;
    --gold-500: #d6b46d;
    --cream: #f7f2e9;
    --paper: #ffffff;
    --ink: #111d31;
    --muted: #667085;
    --line: rgba(9, 32, 61, .12);
    --shadow-soft: 0 20px 60px rgba(6, 23, 45, .10);
    --shadow-strong: 0 28px 80px rgba(6, 23, 45, .18);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 94px;
}

body {
    margin: 0;
    font-family: var(--font-thai);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(214, 180, 109, .22), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, #f9fafc 48%, #f2f5f8 100%);
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
a,
input,
textarea {
    font-family: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand-text strong,
.btn,
.header-call,
.main-nav a {
    line-height: 1.35;
    overflow: visible;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 26px rgba(6, 23, 45, .04);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-right: auto;
}

.brand-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 54px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
    box-shadow: 0 14px 34px rgba(6, 23, 45, .24);
    border: 1px solid rgba(214, 180, 109, .55);
}

.brand-logo span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .02em;
}

.brand-logo i {
    position: absolute;
    right: -9px;
    top: -8px;
    color: var(--gold-500);
    font-size: 1.05rem;
    filter: drop-shadow(0 8px 12px rgba(6, 23, 45, .18));
}

.brand-text {
    display: block;
    min-width: 0;
}

.brand-text strong {
    display: block;
    color: var(--navy-950);
    font-weight: 900;
    font-size: 1.02rem;
    padding-block: .06em;
    white-space: nowrap;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 800;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.main-nav a:hover {
    color: var(--navy-950);
    background: rgba(189, 147, 72, .12);
    transform: translateY(-1px);
}

.header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(189, 147, 72, .25);
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--navy-950);
    background: #fff;
    font-size: 1.15rem;
}

/* Hero */
.hero-section {
    position: relative;
    padding: 76px 0 58px;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    inset: 120px -200px auto auto;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(189, 147, 72, .18), transparent 64%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .82fr);
    gap: 46px;
    align-items: center;
}

.eyebrow-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px 16px;
    color: var(--gold-700);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(189, 147, 72, .24);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(6, 23, 45, .06);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .94rem;
}

.hero-title {
    margin: 0;
    color: var(--navy-950);
    font-weight: 900;
    font-size: clamp(3rem, 5.45vw, 5.45rem);
    letter-spacing: 0;
    line-height: 1.12;
    padding-block: .04em .12em;
}

.hero-title span {
    display: block;
    padding-block: .015em;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-700) 48%, var(--gold-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: #4b5565;
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
    box-shadow: 0 18px 38px rgba(6, 23, 45, .24);
}

.btn-gold {
    color: #fff;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
    box-shadow: 0 18px 38px rgba(189, 147, 72, .22);
}

.btn-soft {
    color: var(--navy-950);
    background: rgba(255, 255, 255, .78);
    border-color: var(--line);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #344054;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
}

.trust-row i {
    color: var(--gold-700);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.stat-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(6, 23, 45, .07);
}

.stat-card strong {
    display: block;
    color: var(--navy-950);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 900;
}

.stat-card span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 640px;
}

.image-frame {
    height: 640px;
    border-radius: 34px;
    overflow: hidden;
    background: var(--navy-950);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, .75);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.95) contrast(1.04);
}

.floating-card {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .78);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 46px rgba(6, 23, 45, .18);
}

.floating-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
    box-shadow: 0 14px 26px rgba(6, 23, 45, .18);
}

.floating-card h2 {
    margin: 0 0 6px;
    color: var(--navy-950);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.42;
}

.floating-card p {
    margin: 0;
    color: var(--muted);
}

.mini-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.mini-contact a {
    padding: 12px;
    border-radius: 16px;
    color: var(--navy-950);
    background: #f7f9fc;
    border: 1px solid var(--line);
    font-weight: 900;
    line-height: 1.45;
    word-break: break-word;
}

.mini-contact small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-light {
    background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.84));
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 34px;
}

.section-head.centered {
    display: grid;
    justify-items: center;
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.section-head h2,
.debt-panel h2,
.contact-card h2,
.hours-head h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2rem, 3.3vw, 3.3rem);
    font-weight: 900;
    line-height: 1.28;
    padding-block: .03em .06em;
}

.section-head p,
.debt-panel p,
.contact-card > p,
.section-head.centered p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--gold-700);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .9rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(6, 23, 45, .06);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -34px -48px auto;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(189, 147, 72, .10);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 147, 72, .38);
    box-shadow: 0 24px 56px rgba(6, 23, 45, .11);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 17px;
    color: var(--gold-700);
    background: linear-gradient(135deg, rgba(189, 147, 72, .14), rgba(214, 180, 109, .24));
    font-size: 1.22rem;
}

.service-card h3 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.5;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.7;
}

/* Debt */
.debt-section {
    background:
        radial-gradient(circle at top right, rgba(214, 180, 109, .18), transparent 30rem),
        linear-gradient(135deg, var(--navy-950), #07111f);
    color: #fff;
}

.debt-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
    align-items: center;
}

.debt-panel {
    padding: 38px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.debt-panel h2 {
    color: #fff;
}

.debt-panel p {
    color: rgba(255, 255, 255, .74);
    margin-bottom: 24px;
}

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

.debt-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 900;
}

.debt-item i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 15px;
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--gold-500), #f0dcaa);
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.process-card {
    position: relative;
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(6, 23, 45, .06);
}

.process-card span {
    position: absolute;
    top: 22px;
    right: 24px;
    color: rgba(9, 32, 61, .10);
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 900;
}

.process-card i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
    box-shadow: 0 14px 30px rgba(6, 23, 45, .18);
    font-size: 1.28rem;
}

.process-card h3 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-weight: 900;
    line-height: 1.48;
}

.process-card p {
    margin: 0;
    color: var(--muted);
}

/* Contact */
.contact-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .65), #fff);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: 24px;
    align-items: stretch;
}

.contact-card,
.hours-card {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid var(--line);
    transition: transform .2s ease, border-color .2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(189, 147, 72, .34);
}

.contact-item > i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
}

.contact-item small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.contact-item strong {
    display: block;
    color: var(--navy-950);
    font-size: 1.08rem;
    line-height: 1.5;
    word-break: break-word;
}

.hours-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)),
        radial-gradient(circle at top right, rgba(214, 180, 109, .24), transparent 18rem);
}

.hours-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hours-head i {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--gold-700);
    background: rgba(189, 147, 72, .12);
    font-size: 1.25rem;
}

.hours-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy-950);
}

.hours-row span,
.hours-row strong {
    font-weight: 900;
}

.hours-row strong {
    color: var(--gold-700);
    text-align: right;
}

.qr-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px dashed rgba(189, 147, 72, .42);
}

.qr-card img {
    width: 128px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    border: 1px solid var(--line);
}

.qr-card strong {
    display: block;
    color: var(--navy-950);
    font-weight: 900;
}

.qr-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .95rem;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    color: rgba(255, 255, 255, .78);
    background: var(--navy-950);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.site-footer strong {
    display: block;
    color: #fff;
    font-weight: 900;
}

.site-footer small {
    display: block;
    margin-top: 4px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: grid;
    gap: 10px;
}

.floating-actions a {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(6, 23, 45, .24);
}

.floating-actions a:first-child {
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
}

.floating-actions a:last-child {
    background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .reveal,
    .btn,
    .service-card,
    .contact-item,
    .main-nav a {
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .hero-grid,
    .debt-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .image-frame {
        height: 560px;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-wrap {
        min-height: 72px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand-text strong {
        max-width: 230px;
        white-space: normal;
        font-size: .95rem;
    }

    .brand-text small {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: fixed;
        inset: 72px 14px auto 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-strong);
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 14px 16px;
    }

    .header-call span {
        display: none;
    }

    .header-call {
        width: 46px;
        height: 46px;
        padding: 0;
    }

    .hero-section {
        padding-top: 44px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-title {
        font-size: clamp(2.7rem, 12vw, 4.4rem);
    }

    .stats-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

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

    .section-head {
        display: grid;
        gap: 12px;
    }
}

@media (max-width: 620px) {
    .hero-title {
        font-size: clamp(2.35rem, 13vw, 3.55rem);
        line-height: 1.16;
    }

    .eyebrow-pill {
        font-size: .78rem;
    }

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

    .trust-row span {
        width: 100%;
    }

    .image-frame {
        height: 430px;
        border-radius: 26px;
    }

    .floating-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: -74px;
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .mini-contact,
    .service-grid,
    .debt-list,
    .qr-card {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .contact-card,
    .hours-card,
    .debt-panel,
    .process-card {
        padding: 24px;
        border-radius: 24px;
    }

    .qr-card img {
        width: 112px;
    }

    .footer-grid {
        display: grid;
    }

    .floating-actions {
        right: 14px;
        bottom: 14px;
    }
}
