@font-face {
    font-family: 'Noto Sans Thai';
    src: url('../fonts/NotoSansThai.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #0a2034;
    --ink: #0c1b2c;
    --gold: #8a621d;
    --bright: #f3ca7d;
    --warm: #f5f1eb;
    --line: #ded9d1;
    --shadow: 0 2px 5px #0a203426;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fcfcfc; font: 400 1rem/1.55 'Noto Sans Thai', Tahoma, sans-serif; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2.25rem); font-weight: 800; }
h3 { font-weight: 800; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #ad791f; outline-offset: 3px; }
.skip-link { position: absolute; inset: .5rem auto auto .5rem; z-index: 3; padding: .55rem .8rem; border-radius: 6px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
em { font-style: normal; color: var(--gold); }
.wrap { width: min(93%, 1320px); margin-inline: auto; }
.site-header, .site-footer { background: linear-gradient(120deg, #102e46, #081b2d 78%); color: white; }
.site-header { position: relative; z-index: 2; }
.site-header.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding-inline: 1.5%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; line-height: 1.12; }
.brand strong { white-space: nowrap; font-size: clamp(1.05rem, 2.05vw, 1.7rem); }
.brand em { color: #e8bb66; }
.light .brand em { color: #9b7338; }
.brand small { border-left: 1px solid currentColor; padding-left: .8rem; margin-left: .25rem; font-size: .75rem; }
.mark { display: inline-block; flex: 0 0 39px; height: 24px; position: relative; }
.mark::before, .mark::after { content: ''; position: absolute; top: 1px; width: 27px; height: 17px; border-bottom: 7px solid #deb669; border-radius: 75%; transform: rotate(-44deg); }
.mark::after { left: 10px; border-color: #b58436; }
.header-inner nav {
    --nav-accent: var(--bright);
    --nav-hover: #ffffff12;
    --nav-active: #f3ca7d20;
    display: flex;
    align-items: center;
    gap: clamp(.2rem, 1vw, .8rem);
    font-weight: 700;
}
.light .header-inner nav { --nav-accent: var(--gold); --nav-hover: #0a20340c; --nav-active: #8a621d16; }
.header-inner nav > a, .nav-services > a, .nav-services summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: .45rem clamp(.55rem, 1.1vw, .95rem);
    border-radius: 10px;
    white-space: nowrap;
}
.header-inner nav > a:hover, .nav-services:hover, .nav-services:has(details[open]) { background: var(--nav-hover); text-decoration: none; }
.header-inner nav > a[aria-current], .nav-services:has(> a[aria-current]) { background: var(--nav-active); color: var(--nav-accent); }
.nav-services { display: flex; align-items: center; position: relative; border-radius: 10px; }
.nav-services > a { padding-inline-end: .55rem; }
.nav-services > a:hover { text-decoration: none; }
.nav-services summary { width: 44px; justify-content: center; padding: 0; cursor: pointer; list-style: none; }
.nav-services summary:hover { background: var(--nav-hover); }
.nav-services summary::before {
    content: '';
    width: .44rem;
    height: .44rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
.nav-services details[open] summary::before { transform: translateY(2px) rotate(225deg); }
.nav-services summary::-webkit-details-marker, .card-detail summary::-webkit-details-marker { display: none; }
.nav-services ul { position: absolute; inset: calc(100% + .55rem) 0 auto auto; min-width: 235px; background: white; color: var(--ink); list-style: none; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #0a20342e; }
.nav-services li a { display: block; padding: .5rem .7rem; border-radius: 7px; }
.nav-services li a:hover { background: var(--warm); color: var(--gold); text-decoration: none; }
.menu-toggle { display: none; }
.hero { min-height: clamp(280px, 26vw, 375px); position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; background: #f3f0ee; }
.hero.dark { color: white; background: radial-gradient(ellipse at 46% 100%, #1c3952, #0a2034 69%); }
.home-hero { min-height: clamp(345px, 34vw, 470px); }
.contact-hero { min-height: clamp(285px, 25vw, 360px); }
.hero-image { position: absolute; inset: 0 0 0 44%; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-position: center; }
.hero:not(.dark) .hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f3f0ee, transparent 29%); }
.dark .hero-image { left: 44%; clip-path: polygon(17% 0,100% 0,100% 100%,0 100%); }
.contact-hero .hero-image { left: 37%; clip-path: ellipse(91% 183% at 90% 101%); }
.contact-hero::before { content: ''; position: absolute; inset: 0 0 0 35.8%; background: linear-gradient(135deg,#ad8144,#ffe0a0 30%,#b38341); clip-path: ellipse(91% 183% at 90% 101%); z-index: -1; }
.hero-content { padding: 1.4rem 1.8%; }
.hero-content > p:not(.eyebrow) { max-width: 45%; }
.hero h1 { font-size: clamp(2.2rem, 4.65vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; max-width: 47%; }
.hero:not(.dark) h1 { font-size: clamp(2.05rem, 4.05vw, 4rem); }
.contact-hero h1::after { content: ''; display: block; width: 4.2rem; height: 4px; margin-block: .65rem; background: var(--bright); }
.home-hero h1 { font-size: clamp(2rem, 4.05vw, 4rem); }
.hero-subtitle { font-size: clamp(1.15rem, 2vw, 1.75rem); line-height: 1.3; margin: .3rem 0; }
.dark em, .dark .eyebrow, .dark b { color: var(--bright); }
.hero-note { font-size: .87rem; margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; padding: .58rem 1.35rem; min-height: 42px; color: white; background: linear-gradient(#173e5a,#071a2d); border: 1px solid transparent; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.button:hover { filter: brightness(1.1); text-decoration: none; }
.button.secondary { color: #62450d; border-color: #aa8543; background: linear-gradient(#fffaf0,#eee1c6); }
.button.outline { background: transparent; border-color: white; }
.button.gold { color: #151914; background: linear-gradient(145deg,#ffe3aa,#bd9455); }
.dark .button, .consultation .button, .message-panel .button { border-radius: 30px; }
.english, .eyebrow { color: var(--gold); font-weight: 700; }
.eyebrow { text-transform: uppercase; font-size: .79rem; letter-spacing: .06em; margin-bottom: .25rem; }
.eyebrow:empty { display: none; }
.section { padding-block: clamp(1.05rem, 2vw, 2rem); }
.section-heading { text-align: center; margin-bottom: 1.15rem; }
.section-heading p:last-child:not(.eyebrow) { max-width: 800px; margin: .38rem auto 0; }
.section-heading .eyebrow::before, .section-heading .eyebrow::after { content: ''; display: inline-block; width: 2rem; vertical-align: middle; border-top: 1px solid #b18b49; margin: 0 .65rem; }
.service-grid, .detail-grid { display: grid; gap: clamp(.55rem, 1.35vw, 1.2rem); align-items: stretch; }
.service-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
.service-grid > * { grid-column: span 3; }
.service-grid > :nth-child(n+5) { grid-column: span 4; }
.detail-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.setup-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.setup-grid > * { grid-column: span 2; }
.setup-grid > :nth-child(n+4) { grid-column: span 3; }
.card { background: linear-gradient(#fff,#f4f1eb); box-shadow: var(--shadow); border-radius: 11px; overflow: hidden; display: flex; flex-direction: column; }
.card > img { height: clamp(82px, 9vw, 125px); }
.card-body { position: relative; padding: 1.15rem .85rem .8rem; flex: 1; display: flex; align-items: flex-start; flex-direction: column; }
.card-icon { position: absolute; top: -22px; left: .75rem; background: #fff9ea; border-radius: 10px; color: var(--gold); width: 35px; height: 32px; display: grid; place-items: center; font-size: 1.25rem; box-shadow: var(--shadow); }
.card h3 { font-size: clamp(1.02rem, 1.57vw, 1.4rem); margin-bottom: .12rem; }
.card p { font-size: .875rem; line-height: 1.43; margin-bottom: .4rem; }
.card .english { font-size: .72rem; text-transform: uppercase; }
.card-link { display: inline-block; color: #62450d; border: 1px solid #bb985a; border-radius: 7px; padding: .16rem .65rem; font-size: .8rem; background: #fffbf0; cursor: pointer; }
.card-body > .card-link, .card-detail { margin-top: auto; }
.card-detail p { margin-top: .45rem; }
.card-detail a { color: var(--gold); text-decoration: underline; font-size: .83rem; }
.warm { background: linear-gradient(120deg,#f8f6f2,#f1ede6); }
.split { display: grid; grid-template-columns: 44% 1fr; align-items: stretch; }
.split > img { height: 100%; max-height: 340px; min-height: 170px; }
.split > div { padding: 1.15rem clamp(1rem, 3vw, 3rem); align-self: center; }
.split h2 { margin-bottom: .4rem; }
.rounded { overflow: hidden; border-radius: 13px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; margin-block: .6rem; font-size: .9rem; }
.checks li::before { content: '✓'; color: var(--gold); font-weight: 800; margin-right: .45rem; }
.points { display: grid; grid-template-columns: repeat(var(--columns, 1),minmax(0,1fr)); gap: .75rem; }
.points-columns-2 { --columns: 2; }
.points-columns-3 { --columns: 3; }
.points-columns-4 { --columns: 4; }
.points-columns-5 { --columns: 5; }
.points-columns-6 { --columns: 6; }
.points article { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .48rem; }
.points article + article { border-left: 1px solid var(--line); }
.points article > span { display: grid; place-items: center; flex: 0 0 1.9rem; height: 1.9rem; color: var(--gold); font-size: 1.55rem; font-weight: 800; }
.points h3 { font-size: .96rem; }
.points p { margin-top: .2rem; font-size: .83rem; line-height: 1.42; }
.points p:empty { display: none; }
.numbered article { position: relative; background: var(--warm); border-radius: 10px; box-shadow: var(--shadow); padding: .7rem; }
.numbered article > span { background: #946a2b; color: white; border-radius: 50%; font-size: .95rem; }
.numbered article + article::before { content: '›'; position: absolute; left: -.64rem; top: 30%; color: var(--gold); font-weight: 800; }
.split .points { grid-template-columns: repeat(2,minmax(0,1fr)); }
.benefit-split { grid-template-columns: 36% 1fr; }
.benefit-split img, .story img { border-radius: 10px; }
.breadcrumb { background: #f4f3f2; font-size: .82rem; padding-block: .4rem; }
.breadcrumb .wrap { display: flex; gap: .65rem; flex-wrap: wrap; }
.system-flow { margin-top: .5rem; font-size: .83rem; color: var(--gold); font-weight: 700; }
.consultation { color: white; background: linear-gradient(90deg,#0a203423 0%,#0a2034 24%,#102e46), url('../images/about/1.webp') left center / 28% auto no-repeat #0a2034; border-bottom: 1px solid #ffffff4a; }
.consultation .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 4% .9rem 16%; }
.consultation h2 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.consultation p { font-size: .88rem; margin-top: .2rem; }
.consultation .button { flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.25fr .66fr 1.05fr; gap: 1.1rem; padding: 1.25rem 1%; }
.footer-grid > div + div { border-left: 1px solid #ffffff38; padding-left: 1rem; }
.footer-grid h2 { color: var(--bright); font-size: .95rem; margin-bottom: .4rem; }
.footer-grid .brand strong { font-size: 1.06rem; }
.footer-grid :is(p, li, address), .copyright { font-size: .82rem; }
.footer-grid p { margin-top: .35rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li::before { content: '›'; color: var(--bright); margin-right: .35rem; }
.footer-services { display: grid; grid-template-columns: 1fr 1fr; }
.footer-grid address { font-style: normal; overflow-wrap: anywhere; }
.copyright { border-top: 1px solid #ffffff38; padding: .55rem 1%; }
.story { display: grid; grid-template-columns: 26% 1fr; gap: .9rem; align-items: stretch; }
.story img { height: 100%; max-height: 165px; }
.story .points article, .vision-grid article { background: var(--warm); border-radius: 10px; box-shadow: var(--shadow); }
.vision-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-block: 1rem; }
.vision-grid article { display: flex; align-items: center; overflow: hidden; }
.vision-grid img { width: 40%; height: 100%; min-height: 130px; }
.vision-grid article div { padding: .75rem; }
.vision-grid .english { font-size: .78rem; text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: 43% 1fr; gap: 4%; padding-inline: 2%; }
.bar-title::before { content: ''; display: inline-block; width: 6px; height: .9em; vertical-align: -.06em; margin-right: .6rem; background: linear-gradient(#ffd789,#aa7824); border-radius: 4px; }
.contact-list { padding: .5rem 0; }
.contact-list > div { display: flex; align-items: flex-start; gap: 1rem; padding: .8rem .2rem; border-bottom: 1px solid #e6e7ea; }
.contact-list > div > span { background: linear-gradient(135deg,#d9b16b,#936a2b); color: white; width: 43px; height: 43px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; }
.contact-list dt { font-weight: 800; }
.contact-list dd { overflow-wrap: anywhere; }
.line-contact { align-items: center; }
.line-qr { margin-left: auto; border-left: 1px solid var(--line); padding-left: .6rem; flex-shrink: 0; }
.line-qr img { width: 74px; height: 74px; }
.message-panel { background: #fff; border-radius: 18px; padding: clamp(1rem, 2.4vw, 2rem); box-shadow: 0 3px 12px #163e6521; }
.message-panel > p { margin: .4rem 0 .75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.form-grid label { display: block; font-weight: 600; font-size: .88rem; min-width: 0; }
.form-grid b { color: #a1391e; }
.form-grid :is(input, select, textarea) { display: block; width: 100%; padding: .53rem .6rem; margin-top: .18rem; border: 1px solid #bfc5cd; border-radius: 8px; color: var(--ink); background: #fcfcfc; font: inherit; }
.form-grid textarea { resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.message-panel .button { display: flex; margin: .8rem auto 0; }
#preview-status { margin-top: .4rem; text-align: center; }
.message-preview { background: var(--warm); border-radius: 8px; margin-top: .65rem; padding: .75rem; }
.message-preview dl { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: .35rem .65rem; margin-top: .45rem; }
.message-preview dt { font-weight: 700; }
.message-preview dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.office > img { max-height: none; }
.map-panel { border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 1rem; }
.map-panel iframe { display: block; width: 100%; height: clamp(250px, 30vw, 420px); border: 0; border-radius: 8px; margin-bottom: .65rem; }
.map-panel .button { margin-top: .6rem; }
@media (max-width: 950px) {
    .brand small { display: none; }
    .detail-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .detail-grid > * { grid-column: span 2; }
    .detail-grid > :nth-child(n+4) { grid-column: span 3; }
    .points { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .points article:nth-child(2n+1) { border-left: 0; }
    .numbered article:nth-child(2n+1)::before { display: none; }
    .footer-services { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .header-inner { min-height: 55px; }
    .menu-toggle { display: block; min-height: 44px; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 6px; padding: .2rem .7rem; }
    .header-inner nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--navy); color: white; padding: .65rem 5% 1rem; align-items: stretch; gap: .25rem; }
    .header-inner nav.open { display: flex; flex-direction: column; }
    .light .header-inner nav { background: white; color: var(--ink); }
    .nav-services { display: block; }
    .nav-services > a { margin-inline-end: 44px; }
    .nav-services summary { position: absolute; inset: 0 0 auto auto; }
    .nav-services ul { position: static; margin: .1rem .35rem .35rem; min-width: 0; box-shadow: none; }
    .hero { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; }
    .hero-content { padding: 1.3rem 1%; }
    .hero h1, .hero-content > p:not(.eyebrow) { max-width: none; }
    .hero-image, .dark .hero-image { position: relative; inset: auto; height: clamp(160px,48vw,350px); clip-path: none; border-top: 3px solid #d7b172; }
    .contact-hero::before { display: none; }
    .hero:not(.dark) .hero-image::after { display: none; }
    .hero-image img { object-position: center right; }
    .service-grid, .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-grid > *, .service-grid > :nth-child(n+5), .detail-grid > *, .detail-grid > :nth-child(n+4) { grid-column: auto; }
    .split, .contact-grid, .story, .vision-grid { grid-template-columns: 1fr; }
    .story img { max-height: 240px; }
    .points, .split .points { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .consultation .wrap { padding: .9rem 1%; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid > div + div { padding-left: 0; border-left: 0; }
    .contact-grid { gap: 1rem; }
    .office > img { max-height: 300px; }
}
@media (max-width: 450px) {
    .service-grid, .detail-grid, .points, .split .points, .form-grid, .checks { grid-template-columns: 1fr; }
    .points article + article { border-left: 0; }
    .numbered article + article::before { display: none; }
    .card > img { height: 120px; }
    .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
}
