/* ==========================================================================
   Eden Student and Migration Service — site styles
   Mobile-first, no framework. Fonts: Prompt (headings) / Sarabun (body).
   ========================================================================== */

:root {
  --c-primary: #0e5a43;
  --c-primary-dark: #0a4433;
  --c-primary-light: #e6f2ee;
  --c-accent: #f2b705;
  --c-accent-dark: #c79600;
  --c-ink: #1f2937;
  --c-muted: #5b6472;
  --c-bg: #fafaf7;
  --c-card: #ffffff;
  --c-line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(15, 42, 34, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 42, 34, 0.14);
  --font-head: "Prompt", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", "Prompt", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--c-primary-dark);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.3rem); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-primary);
}

a:hover {
  color: var(--c-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--alt {
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section__intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__intro .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 0.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-primary-dark);
  line-height: 1.2;
}

.brand__logo {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--c-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--c-primary-dark);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1.25rem 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--c-ink);
}

.site-nav a:hover {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.site-nav .nav-cta {
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.5rem;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn--primary {
  background: var(--c-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn--accent {
  background: var(--c-accent);
  color: #3a2e00;
}

.btn--accent:hover {
  background: #ffc51a;
  color: #3a2e00;
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--outline {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--outline:hover {
  background: var(--c-primary-light);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(242, 183, 5, 0.28), transparent 60%),
    linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, #14735a 100%);
  color: #fff;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-accent);
}

.hero p {
  max-width: 56ch;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__badges svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--c-accent);
  flex: none;
}

/* --- Cards / grids ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  margin-bottom: 0.35em;
}

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

.card ul {
  color: var(--c-muted);
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.card--highlight {
  border-color: var(--c-accent);
  border-width: 2px;
  position: relative;
}

.card__tag {
  position: absolute;
  top: -0.85rem;
  right: 1rem;
  background: var(--c-accent);
  color: #3a2e00;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
}

.price {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0.25rem 0;
}

.price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--c-muted);
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  font-size: 0.95rem;
  color: var(--c-muted);
  margin: 0;
}

/* --- Destinations ---------------------------------------------------------- */

.dest {
  position: relative;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dest h3 {
  color: #fff;
  font-size: 1.35rem;
}

.dest p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.98rem;
}

.dest--au { background: linear-gradient(150deg, #0a4433, #16775c); }
.dest--nz { background: linear-gradient(150deg, #1e3a5f, #2d6da3); }
.dest--ca { background: linear-gradient(150deg, #7a1f1f, #b03a2e); }

.dest__flag {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* --- CTA band ---------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(140deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin-inline: auto;
}

.cta-band .hero__actions {
  justify-content: center;
}

/* --- Contact ---------------------------------------------------------------- */

.office h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.office address {
  font-style: normal;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.office dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.98rem;
}

.office dt {
  font-weight: 600;
  color: var(--c-ink);
}

.office dd {
  margin: 0;
  color: var(--c-muted);
  overflow-wrap: anywhere;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* --- Page hero (inner pages) ------------------------------------------------ */

.page-hero {
  background: linear-gradient(160deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  padding: clamp(2.5rem, 7vw, 4rem) 0;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.25em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin: 0;
}

/* --- Misc ---------------------------------------------------------------- */

.note {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.text-center {
  text-align: center;
}

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

  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* --- Hero with photo ------------------------------------------------------ */

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__photo {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

/* --- Photo cards (cities, courses) ---------------------------------------- */

.card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card--photo .card__body {
  padding: 1.15rem 1.35rem 1.35rem;
}

.card--photo .card__body h3 {
  margin-bottom: 0.25em;
}

/* --- Split section (team / about) ----------------------------------------- */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.split ul {
  padding-left: 1.25rem;
  color: var(--c-muted);
}

.split li {
  margin-bottom: 0.5rem;
}

/* --- Reviews ---------------------------------------------------------------- */

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card blockquote {
  margin: 0;
  color: var(--c-muted);
  flex: 1;
}

.review-card blockquote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 0;
  color: var(--c-accent);
  margin-right: 0.15em;
  vertical-align: -0.35em;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card footer img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.review-card cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-primary-dark);
  font-size: 0.95rem;
}

.review-card cite small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-muted);
}

/* --- Partner logos ---------------------------------------------------------- */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}

.partners img {
  max-height: 3.5rem;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.partners img:hover {
  filter: none;
  opacity: 1;
}

/* --- Visa table ---------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visa-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.98rem;
}

.visa-table th,
.visa-table td {
  text-align: left;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.visa-table tr:last-child th,
.visa-table tr:last-child td {
  border-bottom: 0;
}

.visa-table th {
  font-family: var(--font-head);
  color: var(--c-primary-dark);
  white-space: nowrap;
}

.visa-table td {
  color: var(--c-muted);
}

/* --- QR codes ---------------------------------------------------------------- */

.qr {
  width: 160px;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  margin-inline: auto;
}

/* --- Brand logo image ------------------------------------------------------- */

.brand__logo--img {
  border-radius: 10px;
  object-fit: cover;
}
