/* ============================================================
   รุ่งแสงเจริญ — สำนักงานกฎหมายและบัญชี
   Design tokens
   ============================================================ */
:root{
  --maroon-900:#4A0E1B;
  --maroon-800:#5C1220;
  --maroon-700:#711827;
  --maroon-600:#8A1F30;
  --gold-500:#B08A45;
  --gold-400:#C6A05C;
  --gold-300:#D9C08A;
  --ink-900:#211C1A;
  --ink-700:#4A4340;
  --paper-0:#FFFFFF;
  --cream-50:#FAF7F2;
  --cream-100:#F3ECE2;
  --line-200:#E6DDD3;
  --navy-800:#12222F;

  --font-display:'Kanit', 'Noto Sans Thai', sans-serif;
  --font-body:'Sarabun', 'Noto Sans Thai', sans-serif;

  --container:1180px;
  --radius:6px;
  --radius-sm:3px;
  --shadow-sm:0 2px 10px -4px rgba(74,14,27,.12);
  --shadow-md:0 18px 40px -20px rgba(74,14,27,.35);
  --shadow-lg:0 30px 60px -24px rgba(18,10,8,.35);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--paper-0);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--maroon-900);
  margin:0 0 .5em;
  line-height:1.24;
  font-weight:600;
  letter-spacing:-.01em;
}
h1{font-size:clamp(2.3rem,4.4vw,3.4rem); font-weight:700; letter-spacing:-.02em;}
h2{font-size:clamp(1.6rem,3.1vw,2.3rem);}
h3{font-size:1.25rem;}
p{margin:0 0 1em; color:var(--ink-700);}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{margin:0; padding:0;}
.container{max-width:var(--container); margin:0 auto; padding:0 24px;}
.section{padding:88px 0;}
.section--tight{padding:56px 0;}
.section--cream{background:var(--cream-50);}
.section--maroon{background:var(--maroon-900); color:#F4EDE6;}
.section--maroon h2, .section--maroon h3{color:#F4EDE6;}
.section--maroon p{color:#D9C6BC;}

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-display);
  font-size:.78rem; letter-spacing:.14em;
  color:var(--gold-500); text-transform:uppercase;
  margin-bottom:14px; font-weight:600;
}
.eyebrow::before{content:""; width:26px; height:2px; background:var(--gold-500); display:inline-block;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:15px 32px; font-family:var(--font-display);
  font-weight:500; font-size:.96rem; border-radius:var(--radius-sm);
  border:1.5px solid transparent; cursor:pointer; transition:.22s ease;
  letter-spacing:.01em;
}
.btn--primary{background:var(--maroon-700); color:#fff; box-shadow:var(--shadow-sm);}
.btn--primary:hover{background:var(--maroon-900); transform:translateY(-1px); box-shadow:var(--shadow-md);}
.btn--gold{background:linear-gradient(180deg,var(--gold-400),var(--gold-500)); color:#2A1A08; box-shadow:0 14px 28px -16px rgba(176,138,69,.6);}
.btn--gold:hover{transform:translateY(-1px); box-shadow:0 18px 34px -16px rgba(176,138,69,.75);}
.btn--outline{border-color:rgba(255,255,255,.5); color:#fff;}
.btn--outline:hover{background:rgba(255,255,255,.12); border-color:#fff;}
.btn--outline-maroon{border-color:var(--maroon-700); color:var(--maroon-700);}
.btn--outline-maroon:hover{background:var(--maroon-700); color:#fff;}
.btn-row{display:flex; flex-wrap:wrap; gap:14px;}

/* ---------- Header ---------- */
.topbar{
  background:var(--navy-800); color:#CBD6DD; font-size:.82rem;
}
.topbar .container{display:flex; justify-content:space-between; align-items:center; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; gap:6px;}
.topbar a{color:#CBD6DD;}
.topbar-links{display:flex; gap:18px; flex-wrap:wrap;}
.topbar-links span{opacity:.6; margin:0 6px;}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--line-200);
  box-shadow:var(--shadow-sm);
  backdrop-filter:blur(6px);
}
.site-header::before{content:""; display:block; height:3px; background:linear-gradient(90deg,var(--maroon-700),var(--gold-500) 50%,var(--maroon-700));}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
}
.brand{display:flex; align-items:center; gap:13px;}
.brand img{width:54px; height:54px; border-radius:50%; box-shadow:0 0 0 3px var(--cream-50), 0 0 0 4px var(--line-200);}
.brand-text{font-family:var(--font-display); line-height:1.25;}
.brand-text .th{font-weight:700; font-size:1.06rem; color:var(--maroon-900);}
.brand-text .en{font-size:.66rem; letter-spacing:.08em; color:var(--gold-500); text-transform:uppercase;}

.main-nav{display:flex; align-items:center; gap:4px;}
.main-nav a{
  font-family:var(--font-display); font-size:.9rem; font-weight:500;
  padding:10px 15px; color:var(--ink-900); border-bottom:2px solid transparent;
  letter-spacing:.01em;
}
.main-nav a:hover, .main-nav a.active{color:var(--maroon-700); border-color:var(--gold-500);}
.nav-cta{margin-left:12px;}
.nav-toggle{display:none; background:none; border:none; font-size:1.6rem; color:var(--maroon-900); cursor:pointer;}

@media (max-width:960px){
  .site-header{overflow:visible;}
  .main-nav{
    position:absolute; top:100%; left:0; right:0; z-index:49;
    background:#fff; flex-direction:column;
    align-items:stretch; padding:6px 24px 22px; gap:0;
    max-height:0; opacity:0; visibility:hidden; overflow:hidden;
    transition:max-height .3s ease, opacity .25s ease;
    box-shadow:var(--shadow-md); border-bottom:1px solid var(--line-200);
  }
  .main-nav.open{max-height:80vh; opacity:1; visibility:visible; overflow-y:auto;}
  .main-nav a{padding:16px 4px; border-bottom:1px solid var(--line-200);}
  .nav-cta{margin:16px 0 4px; display:inline-flex;}
  .nav-toggle{display:block;}
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{background:var(--cream-50); border-bottom:1px solid var(--line-200); font-size:.85rem;}
.breadcrumb .container{padding-top:12px; padding-bottom:12px; color:var(--ink-700);}
.breadcrumb a:hover{color:var(--maroon-700);}
.breadcrumb .sep{margin:0 8px; color:var(--gold-500);}

/* ---------- Hero ---------- */
.hero{
  position:relative; background:
    radial-gradient(1100px 620px at 82% -10%, rgba(198,160,92,.16), transparent 60%),
    linear-gradient(165deg, var(--maroon-900) 0%, #380A15 100%);
  color:#fff; overflow:hidden;
}
.hero-watermark{
  position:absolute; right:-60px; top:50%; transform:translateY(-50%);
  width:520px; height:520px; opacity:.08; color:var(--gold-300); pointer-events:none;
}
.hero .container{position:relative; z-index:1; padding-top:76px; padding-bottom:70px;}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:end; padding-bottom:64px;}
.hero-inner{max-width:620px;}
.hero-inner .eyebrow{color:var(--gold-300);}
.hero-inner .eyebrow::before{background:var(--gold-300);}
.hero h1{color:#fff; margin-bottom:20px;}
.hero .lede{color:#E3D3CA; font-size:1.08rem; max-width:540px;}
.hero .btn-row{margin-top:32px;}

.hero-portrait{position:relative; justify-self:end;}
.hero-portrait .frame{
  width:100%; max-width:330px; aspect-ratio:3/4; overflow:hidden;
  border:1px solid rgba(214,176,110,.4); box-shadow:var(--shadow-lg);
  position:relative;
}
.hero-portrait .frame img{width:100%; height:100%; object-fit:cover;}
.hero-portrait .frame::after{content:""; position:absolute; inset:14px; border:1px solid rgba(214,176,110,.55); pointer-events:none;}
.hero-portrait .tag{
  position:absolute; left:-18px; bottom:26px; background:var(--gold-500); color:#2A1A08;
  font-family:var(--font-display); font-size:.8rem; font-weight:600; padding:12px 18px;
  box-shadow:var(--shadow-md); max-width:230px; line-height:1.4;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; padding-bottom:40px;}
  .hero-portrait{justify-self:start;}
  .hero-portrait .tag{left:16px; bottom:-16px;}
}

.hero-stats{
  position:relative; z-index:2; background:#fff; box-shadow:var(--shadow-lg);
  margin-top:44px; border-radius:var(--radius);
  display:grid; grid-template-columns:repeat(4,1fr);
}
.hero-stat{padding:26px 22px; border-right:1px solid var(--line-200);}
.hero-stat:last-child{border-right:none;}
.hero-stat .num{font-family:var(--font-display); color:var(--gold-500); font-size:1.5rem; font-weight:700; margin-bottom:6px;}
.hero-stat p{margin:0; font-size:.88rem; color:var(--ink-700);}
@media (max-width:760px){.hero-stats{grid-template-columns:1fr 1fr;} .hero-stat{border-bottom:1px solid var(--line-200);}}

.page-hero{padding:64px 0 96px; background:linear-gradient(165deg, var(--maroon-900) 0%, #380A15 100%); color:#fff; position:relative; overflow:hidden;}
.page-hero::after{content:""; position:absolute; right:-80px; top:-80px; width:340px; height:340px; border:1px solid rgba(214,176,110,.25); border-radius:50%;}
.page-hero .container{position:relative; z-index:1;}
.page-hero h1{color:#fff; margin-bottom:10px;}
.page-hero p{color:#E3D3CA; max-width:640px;}

/* ---------- Scale divider (signature motif) ---------- */
.scale-divider{display:flex; align-items:center; gap:16px; margin:0 0 28px;}
.scale-divider svg{width:22px; height:22px; flex-shrink:0; color:var(--gold-500);}
.scale-divider .badge{
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--cream-100); border:1px solid var(--line-200); flex-shrink:0;
}
.scale-divider .rule{height:1px; flex:1; background:var(--line-200);}
.section--maroon .scale-divider .rule{background:rgba(255,255,255,.2);}
.section--maroon .scale-divider .badge{background:rgba(255,255,255,.06); border-color:rgba(214,176,110,.3);}

/* (legacy .highlights rules removed — replaced by .hero-stats) */

/* ---------- Cards ---------- */
.grid{display:grid; gap:28px;}
.grid--3{grid-template-columns:repeat(3,1fr);}
.grid--2{grid-template-columns:repeat(2,1fr);}
.grid--5{grid-template-columns:repeat(5,1fr);}
@media (max-width:900px){.grid--3,.grid--2{grid-template-columns:1fr;}}
@media (max-width:900px){.grid--5{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.grid--5{grid-template-columns:1fr;}}

.card{
  background:#fff; border:1px solid var(--line-200); border-radius:var(--radius); padding:32px 28px;
  transition:.25s ease; height:100%; box-shadow:var(--shadow-sm);
}
.card:hover{border-color:var(--gold-500); box-shadow:var(--shadow-md); transform:translateY(-3px);}
.card .icon{
  width:52px; height:52px; margin-bottom:18px; color:var(--maroon-700);
  background:var(--cream-100); border-radius:50%; display:flex; align-items:center; justify-content:center;
}
.card .icon svg{width:24px; height:24px;}
.card h3{margin-bottom:10px; font-size:1.12rem;}
.card p{font-size:.94rem; margin-bottom:14px;}
.card a.more{font-family:var(--font-display); font-size:.85rem; color:var(--maroon-700); font-weight:600;}

.service-list{list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:10px 30px; margin-top:10px;}
.service-list li{
  display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--line-200); font-size:.96rem;
}
.service-list li svg{flex-shrink:0; width:18px; height:18px; margin-top:4px; color:var(--gold-500);}
@media (max-width:760px){.service-list{grid-template-columns:1fr;}}

/* ---------- About / split ---------- */
.split{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;}
@media (max-width:900px){.split{grid-template-columns:1fr;}}
.split.reverse .media{order:2;}
.media img{width:100%; border:1px solid var(--line-200); border-radius:var(--radius); box-shadow:var(--shadow-md);}
.fact-list{list-style:none; margin-top:18px;}
.fact-list li{display:flex; gap:14px; padding:13px 0; border-bottom:1px solid var(--line-200); font-size:.95rem;}
.fact-list b{min-width:150px; color:var(--maroon-900); font-family:var(--font-display); font-weight:600; font-size:.9rem;}

/* ---------- Team ---------- */
.person-card{background:#fff; border:1px solid var(--line-200); border-radius:var(--radius); text-align:center; padding:26px 20px; box-shadow:var(--shadow-sm); transition:.2s ease;}
.person-card:hover{box-shadow:var(--shadow-md); transform:translateY(-3px);}
.person-card img{width:100%; aspect-ratio:3/4; object-fit:cover; margin-bottom:16px; border-radius:var(--radius-sm);}
.person-card h3{font-size:1.02rem; margin-bottom:2px;}
.person-card .role{color:var(--gold-500); font-family:var(--font-display); font-size:.82rem; font-weight:600; margin-bottom:10px;}
.person-card p{font-size:.86rem;}
.exec-photo{position:relative;}
.exec-photo img{border-radius:var(--radius); box-shadow:var(--shadow-lg);}
.exec-photo::before{content:""; position:absolute; top:-14px; left:-14px; right:14px; bottom:14px; border:1.5px solid var(--gold-500); border-radius:var(--radius); z-index:-1;}

/* ---------- Articles ---------- */
.article-card{background:#fff; border:1px solid var(--line-200); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); transition:.2s ease;}
.article-card:hover{box-shadow:var(--shadow-md); transform:translateY(-3px);}
.article-card .thumb{aspect-ratio:16/10; background:linear-gradient(135deg,var(--maroon-900),var(--maroon-600)); display:flex; align-items:center; justify-content:center; color:var(--gold-300);}
.article-card .thumb svg{width:44px; height:44px;}
.article-card .body{padding:24px;}
.article-card .tag{font-family:var(--font-display); font-size:.74rem; color:var(--maroon-700); text-transform:uppercase; letter-spacing:.06em; font-weight:600;}
.article-card h3{font-size:1.05rem; margin:8px 0 10px;}
.article-card p{font-size:.9rem;}
.article-card a.more{font-size:.85rem; font-family:var(--font-display); color:var(--maroon-700); font-weight:600;}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(165deg, var(--maroon-900) 0%, #380A15 100%); color:#fff; padding:60px 0;
  position:relative; overflow:hidden;
}
.cta-band::after{content:""; position:absolute; left:-60px; bottom:-90px; width:260px; height:260px; border:1px solid rgba(214,176,110,.2); border-radius:50%;}
.cta-band .container{position:relative; z-index:1; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px;}
.cta-band h2{color:#fff; margin-bottom:6px; font-size:1.5rem;}
.cta-band p{color:#D9C6BC; margin:0;}

/* ---------- Contact ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px;}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;}}
.contact-info-card{background:var(--cream-50); border:1px solid var(--line-200); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow-sm);}
.contact-info-card .row{display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line-200);}
.contact-info-card .row svg{width:20px; height:20px; color:var(--maroon-700); flex-shrink:0; margin-top:3px;}
.map-wrap{margin-top:22px; border:1px solid var(--line-200); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm);}
.map-wrap iframe{width:100%; height:280px; border:0; display:block;}

.form-field{margin-bottom:18px;}
.form-field label{display:block; font-size:.88rem; font-weight:600; margin-bottom:6px; font-family:var(--font-display); color:var(--ink-900);}
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:13px 15px; border:1px solid var(--line-200); font-family:var(--font-body);
  font-size:.95rem; border-radius:var(--radius-sm); background:#fff; transition:.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{outline:none; border-color:var(--gold-500); box-shadow:0 0 0 3px rgba(176,138,69,.18);}
.form-field textarea{resize:vertical; min-height:120px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-800); color:#B8C4CC; padding:64px 0 0; position:relative; overflow:hidden;}
.site-footer::before{
  content:""; position:absolute; right:-120px; bottom:-140px; width:420px; height:420px;
  border:1.5px solid rgba(214,176,110,.08); border-radius:50%;
}
.site-footer .container{position:relative; z-index:1;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1);}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
.footer-grid h4{color:#fff; font-family:var(--font-display); font-size:.92rem; margin-bottom:16px; letter-spacing:.03em;}
.footer-brand{display:flex; gap:12px; align-items:flex-start; margin-bottom:14px;}
.footer-brand img{width:46px; height:46px; border-radius:50%; box-shadow:0 0 0 3px rgba(255,255,255,.06);}
.footer-brand .th{color:#fff; font-family:var(--font-display); font-weight:600; font-size:.98rem;}
.footer-brand .en{font-size:.7rem; color:var(--gold-300); text-transform:uppercase;}
.footer-links li{margin-bottom:10px; font-size:.9rem;}
.footer-links a:hover{color:var(--gold-300);}
.footer-bottom{display:flex; justify-content:space-between; padding:22px 0; font-size:.8rem; flex-wrap:wrap; gap:8px; color:#7C8B94;}

/* ---------- Sticky contact ---------- */
.sticky-contact{
  position:fixed; right:20px; bottom:20px; z-index:60;
  display:flex; flex-direction:column; gap:10px; align-items:flex-end;
}
.sticky-contact a{
  display:flex; align-items:center; gap:8px; background:var(--maroon-700); color:#fff;
  padding:12px 18px; border-radius:30px; font-family:var(--font-display); font-size:.85rem;
  font-weight:600; box-shadow:0 10px 24px -10px rgba(0,0,0,.4); white-space:nowrap;
}
.sticky-contact a.line{background:#06C755;}
.sticky-contact a.tel{background:var(--gold-500); color:#241505;}
.sticky-contact a svg{width:18px; height:18px;}
@media (max-width:600px){
  .sticky-contact{right:12px; bottom:12px;}
  .sticky-contact a span{display:none;}
  .sticky-contact a{padding:14px; border-radius:50%;}
}

/* ---------- Breadcrumb / misc utility ---------- */
.center{text-align:center;}
.max-w{max-width:720px; margin:0 auto;}
.mt-lg{margin-top:56px;}
