/* EMO Legal Thailand - Exact Screenshot Matching Stylesheet */
:root {
  --bg-dark: #06101c;
  --bg-dark-accent: #0b1a2d;
  --bg-card: #0c1c2e;
  --bg-card-hover: #12263d;
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.75);
  --gold: #c5a059;
  --gold-hover: #d8b26e;
  --gold-light: #f5eedf;
  --burgundy: #8c2a2a;
  --border-gold: rgba(197, 160, 89, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-light: #e2e8f0;
  --font-sans: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography Helpers */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.eyebrow.dark {
  color: #8c6f38;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
}

/* Header & Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  color: var(--text-light);
}

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

/* Diamond Seal */
.brand .seal-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand .seal {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 160, 89, 0.08);
}

.brand .seal span {
  transform: rotate(-45deg);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  line-height: 1;
}

.brand span b {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 1.2px;
  line-height: 1.1;
  color: #ffffff;
  font-weight: 700;
}

.brand span small {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
  font-weight: 600;
}

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

.nav nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 0;
  position: relative;
}

.nav nav a:hover, .nav nav a.active {
  color: #ffffff;
}

.nav nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.nav-call {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-call:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav .menu {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 1.4rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Urgent Strip */
.urgent-strip {
  background-color: var(--burgundy);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  flex-wrap: wrap;
}

.urgent-strip a {
  color: #ffd996;
  font-weight: 600;
  text-decoration: underline;
}

.urgent-strip a:hover {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn.gold {
  background-color: var(--gold);
  color: #06101c;
}

.btn.gold:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
}

.btn.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn.outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn.outline:hover {
  background: #f1f5f9;
}

/* Hero Section (Matching Screenshot) */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(6, 16, 28, 0.98) 0%, 
    rgba(6, 16, 28, 0.93) 38%, 
    rgba(6, 16, 28, 0.65) 60%, 
    rgba(6, 16, 28, 0.15) 85%, 
    rgba(6, 16, 28, 0.35) 100%);
  z-index: 2;
}

.hero-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
}

.hero-copy {
  max-width: 640px;
  text-align: left;
  padding: 80px 0;
}

.hero-copy .eyebrow {
  margin-bottom: 16px;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
}

.hero-copy h1 {
  font-size: 3.4rem;
  margin-bottom: 22px;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: #ffffff;
  font-weight: 700;
}

.hero-copy h1 em {
  font-style: normal;
  color: #f1ebd8;
  font-family: inherit;
  font-weight: 700;
  display: block;
}

.hero-copy .lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
  flex-wrap: wrap;
}

.trust .trust-item {
  display: flex;
  flex-direction: column;
}

.trust .trust-item b {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.trust .trust-item span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Subpage Banner */
.page-banner {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-banner h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-banner p {
  color: var(--text-light-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Intro Section */
.intro {
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro h2 {
  font-size: 2.2rem;
  margin-top: 8px;
  color: var(--text-main);
}

.intro-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.intro-text a {
  color: #8c6f38;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intro-text a:hover {
  color: #06101c;
}

/* Services Grid */
.services {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 90px 0;
}

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

.section-head h2 {
  font-size: 2.2rem;
  color: #ffffff;
}

.section-head p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

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

.service-grid article {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 34px 26px;
  border-radius: var(--radius-md);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.service-grid article:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  border-color: var(--gold);
}

.service-grid article span {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-grid article h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.service-grid article p {
  color: var(--text-light-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Process Section */
.process {
  padding: 90px 28px;
  text-align: center;
}

.process h2 {
  font-size: 2.2rem;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.steps article {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.steps article b {
  width: 36px;
  height: 36px;
  background-color: var(--gold);
  color: #06101c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.steps article h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.steps article p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Assessment Section & Form */
.assessment {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 90px 0;
}

.assess-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 52px;
  align-items: start;
}

.assess-copy h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.assess-copy p {
  color: var(--text-light-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.assess-copy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assess-copy ul li {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.assess-copy ul li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

form#caseForm {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

form#caseForm label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-light-muted);
  font-weight: 500;
}

form#caseForm input,
form#caseForm select,
form#caseForm textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: rgba(6, 16, 28, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

form#caseForm input:focus,
form#caseForm select:focus,
form#caseForm textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(6, 16, 28, 0.95);
}

form#caseForm label.upload small {
  color: var(--text-light-muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

form#caseForm label.consent {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}

form#caseForm label.consent input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

form#caseForm .form-note {
  color: var(--text-light-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Evidence / Checklist */
.evidence {
  background-color: #f8fafc;
  padding: 80px 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.evidence-grid h2 {
  font-size: 2rem;
  margin: 8px 0 16px;
}

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

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.checklist article {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
}

.checklist article b {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.checklist article span strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.checklist article span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq {
  padding: 90px 28px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 44px;
}

.faq h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.faq > div:first-child p {
  color: var(--text-muted);
}

.accordions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordions details {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s;
}

.accordions details[open] {
  border-color: var(--gold);
}

.accordions summary {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 1rem;
}

.accordions summary::-webkit-details-marker {
  display: none;
}

.accordions summary span {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
}

.accordions details[open] summary span {
  transform: rotate(45deg);
}

.accordions details p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 90px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.contact h2 {
  font-size: 2.2rem;
  margin: 6px 0 12px;
}

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

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-actions a {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.contact-actions a:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.contact-actions a span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.contact-actions a b {
  font-size: 1.05rem;
  color: var(--text-main);
  display: block;
}

.contact-actions a i {
  color: var(--gold);
  font-style: normal;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-grid div:last-child {
  display: flex;
  gap: 20px;
}

.footer-grid div:last-child a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-grid div:last-child a:hover {
  color: var(--gold);
}

.fine {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile Action Bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-bar a:first-child {
  background: #ffffff;
  color: var(--bg-dark);
  margin-right: 8px;
}

.mobile-bar a:last-child {
  background: var(--gold);
  color: var(--bg-dark);
}

/* Dialog & Toast */
dialog#reviewDialog {
  margin: auto;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 540px;
  width: 90%;
  background: var(--bg-card);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

dialog#reviewDialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-light-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

#reviewContent {
  margin: 20px 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

#reviewContent .item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 6px;
}

#reviewContent .item span {
  color: var(--text-light-muted);
}

#reviewContent .item b {
  color: #ffffff;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.dialog-actions button {
  padding: 10px 18px;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10b981;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-copy h1 {
    font-size: 2.8rem;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .assess-grid, .intro, .faq, .contact, .evidence-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }
  .nav .menu {
    display: block;
  }
  .nav-call {
    display: none;
  }
  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 16px;
  }
  .nav nav.open {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  .hero-copy {
    padding: 40px 0;
  }
  .hero-copy h1 {
    font-size: 2.4rem;
  }
  .hero-shade {
    background: rgba(6, 16, 28, 0.92);
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .checklist {
    grid-template-columns: 1fr;
  }
  form#caseForm .row {
    grid-template-columns: 1fr;
  }
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 60px;
  }
}
