:root {
  --navy-950: #061733;
  --navy-900: #071b3a;
  --navy-850: #102c4c;
  --navy-800: #163858;
  --navy-700: #294865;
  --gold: #d7a846;
  --gold-light: #e5bb5e;
  --white: #f7f9fc;
  --gray-100: #dbe4ee;
  --gray-300: #b5c1d1;
  --gray-500: #8fa0b3;
  --line: rgba(181, 193, 209, 0.2);
  --line-strong: rgba(181, 193, 209, 0.4);
  --shadow: 0 24px 70px rgba(2, 12, 28, 0.28);
  --radius: 18px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--navy-900);
  font-family: Inter, "Noto Sans Khmer", "Khmer Sangam MN", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(215, 168, 70, 0.72);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--gold);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px max(22px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: rgba(6, 23, 51, 0.78);
  border-bottom: 1px solid rgba(181, 193, 209, 0.14);
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(6, 23, 51, 0.96);
  box-shadow: 0 18px 50px rgba(2, 12, 28, 0.32);
}

body.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1rem;
}

.brand img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 0.9rem;
  font-weight: 850;
}

.site-nav a {
  color: rgba(247, 249, 252, 0.78);
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--navy-950) !important;
  background: var(--gold);
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 68px) 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 10%, rgba(215, 168, 70, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(16, 44, 76, 0.78), transparent 48%),
    var(--navy-900);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(181, 193, 209, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 193, 209, 0.11) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 4vw, 5.75rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2.25rem, 2.8vw, 4rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p,
.contact-copy > p,
.featured-package p,
.service-card p,
.why-card p,
.process-list p {
  color: var(--gray-300);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 950;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-accent {
  color: var(--navy-950);
  background: var(--gold);
  box-shadow: 0 16px 40px rgba(215, 168, 70, 0.22);
}

.button-accent:hover {
  background: var(--gold-light);
}

.button-outline {
  color: var(--white);
  border-color: rgba(181, 193, 209, 0.42);
  background: rgba(255, 255, 255, 0.055);
}

.button-outline:hover {
  border-color: var(--gold);
  background: rgba(215, 168, 70, 0.08);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  padding: 0;
  margin: 32px 0 0;
  color: var(--gray-100);
  list-style: none;
  font-weight: 800;
}

.trust-list li {
  position: relative;
  padding-left: 22px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(181, 193, 209, 0.28);
  border-radius: 18px;
  background: var(--navy-850);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 51, 0), rgba(6, 23, 51, 0.12));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.visual-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--gray-100);
  background: rgba(6, 23, 51, 0.72);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section {
  padding: 98px 0;
}

.services-section,
.portfolio-section,
.why-section {
  background: var(--navy-850);
}

.package-section,
.process-section,
.contact-section {
  background: var(--navy-900);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading > p {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.featured-package,
.portfolio-card,
.process-list li,
.why-card,
.contact-panel {
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  background: var(--navy-800);
  box-shadow: 0 18px 50px rgba(2, 12, 28, 0.2);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.portfolio-card:hover,
.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 168, 70, 0.42);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  color: var(--gold);
  border: 1px solid rgba(215, 168, 70, 0.44);
  border-radius: 16px;
  background: rgba(215, 168, 70, 0.06);
}

.service-card p {
  margin: 14px 0 24px;
}

.service-card a,
.text-link {
  margin-top: auto;
  color: var(--gold);
  font-weight: 950;
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.featured-package {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(215, 168, 70, 0.16), transparent 28%),
    var(--navy-800);
}

.featured-package::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--gold);
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--navy-950);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.featured-package p {
  margin: 14px 0 0;
}

.featured-package ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.featured-package li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-100);
  font-weight: 800;
}

.featured-package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--navy-950);
}

.portfolio-card div {
  padding: 22px;
}

.portfolio-card p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portfolio-actions {
  margin-top: 24px;
  text-align: center;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 250px;
  padding: 28px;
}

.process-list span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.process-list p {
  margin: 14px 0 0;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: start;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  min-height: 190px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.why-card p {
  margin: 12px 0 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.contact-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  color: var(--gray-100);
  background: var(--navy-850);
  font-weight: 900;
}

.contact-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.contact-panel {
  padding: clamp(22px, 3vw, 34px);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.field-wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--white);
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 168, 70, 0.16);
}

.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #ff8f7f;
  box-shadow: 0 0 0 4px rgba(255, 143, 127, 0.12);
}

.contact-form ::placeholder {
  color: var(--gray-500);
}

.field-error {
  min-height: 18px;
  color: #ffb4a9;
  font-size: 0.78rem;
  font-weight: 850;
}

.contact-form > .button {
  width: 100%;
}

.contact-form > .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold);
  font-weight: 900;
}

.telegram-fallback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.telegram-fallback[hidden] {
  display: none;
}

.telegram-fallback .button {
  width: 100%;
}

.site-footer {
  padding: 70px 0 25px;
  border-top: 1px solid var(--line);
  background: #03080e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 70px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid > div:first-child p {
  max-width: 380px;
  margin: 0;
  color: var(--gray-300);
}

.footer-grid h2 {
  margin: 0 0 17px;
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-grid a {
  color: var(--gray-300);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--gray-500);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

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

@media (max-width: 1080px) {
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .package-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 22px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 23, 51, 0.98);
    transform: translateY(-130%);
    transition: transform 200ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    border-bottom: 0;
  }

  .portfolio-grid,
  .why-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

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

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: calc(var(--header-height) + 48px) 0 66px;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .package-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .trust-list {
    display: grid;
    gap: 12px;
  }

  .service-grid,
  .process-list,
  .why-grid,
  .form-grid,
  .featured-package ul {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .hero-visual img {
    aspect-ratio: 1 / 1.08;
  }

  .contact-links {
    display: grid;
  }

  .telegram-fallback {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
