/* 1. Site colors and basic page settings */
:root {
  --navy: #102c52;
  --gold: #c19a45;
  --gold-light: #d7b765;
  --text: #102c52;
  --muted: #647386;
  --page: #fbfaf7;
  --white: #fff;
  --border: #e8e2d4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

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

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

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

/* 2. Announcement and navigation */
.announcement {
  padding: 9px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  text-align: center;
}

.announcement strong {
  color: var(--gold-light);
}

.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
}

.navigation {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.logo img {
  display: block;
  width: 112px;
  height: auto;
}

.logo-name {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.navigation-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  color: #40566a;
  font-size: 0.9rem;
  font-weight: 600;
}

.navigation-links > a:hover,
.pages-menu summary:hover,
.footer-links a:hover {
  color: var(--gold);
}

.pages-menu {
  position: relative;
}

.pages-menu summary {
  cursor: pointer;
  list-style: none;
}

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

.pages-menu summary::after {
  margin-left: 6px;
  content: "⌄";
}

.pages-menu[open] summary::after {
  content: "⌃";
}

.dropdown-links {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 44, 82, 0.12);
}

.dropdown-links a {
  padding: 9px 10px;
  border-radius: 3px;
}

.dropdown-links a:hover {
  background: #f3eedf;
}

.menu-button {
  display: none;
}

/* 3. Buttons and small headings */
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

/* 4. Main banner */
.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 600px;
  align-items: center;
  color: var(--white);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  background: #26394b;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: hero-slide-fade 18s infinite;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 27, 46, 0.82), rgba(10, 27, 46, 0.28));
  content: "";
}

.hero-slide--travel {
  background-image: url("../images/hero-travel.png");
  animation-delay: 0s;
}

.hero-slide--visa {
  background-image: url("../images/hero-visa.png");
  animation-delay: 6s;
}

.hero-slide--passport {
  background-image: url("../images/hero-passport.png");
  animation-delay: 12s;
}

@keyframes hero-slide-fade {
  0%,
  100% {
    opacity: 0;
  }

  8%,
  29% {
    opacity: 1;
  }

  37% {
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 70px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 1;
}

.hero h1 em {
  color: var(--gold-light);
  font-weight: 400;
}

.hero-description {
  max-width: 490px;
  margin-bottom: 28px;
  color: #e4eaf0;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--gold-light);
  background: transparent;
  color: var(--gold-light);
}

.hero-note {
  margin: 40px 0 0;
  color: #e4eaf0;
  font-size: 0.88rem;
}

.hero-note strong {
  color: var(--white);
}

/* 5. Recruitment page */
.recruitment-hero {
  padding: clamp(72px, 10vw, 130px) 0 44px;
  background:
    linear-gradient(90deg, rgba(10, 27, 46, 0.82), rgba(10, 27, 46, 0.12)),
    url("../images/recruitment-hero.png") center 42% / cover;
  color: var(--white);
}

.recruitment-hero-content {
  max-width: 1160px;
}

.recruitment-hero .eyebrow {
  color: var(--gold-light);
}

.recruitment-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.02;
}

.recruitment-hero h1 em {
  color: var(--gold-light);
  font-weight: 400;
}

.recruitment-hero-content > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: #e4eaf0;
  font-size: 1.05rem;
}

.destination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.destination-list span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.opportunity-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.opportunity-card:hover {
  box-shadow: 0 12px 32px rgba(16, 44, 82, 0.1);
  transform: translateY(-3px);
}

.opportunity-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.destination-tag {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.destination-mark {
  display: grid;
  min-width: 48px;
  min-height: 42px;
  padding: 0 8px;
  place-items: center;
  border-radius: 4px;
  background: #f3eedf;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.opportunity-card h3 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.opportunity-card > p {
  min-height: 48px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.opportunity-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 23px;
  padding: 0;
  color: #40566a;
  font-size: 0.9rem;
  list-style: none;
}

.opportunity-card li::before {
  margin-right: 10px;
  color: var(--gold);
  content: "✓";
  font-weight: 800;
}

.opportunity-disclaimer {
  max-width: 850px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.recruitment-cta {
  padding-block: 60px;
  background: #f3eedf;
}

.recruitment-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.recruitment-cta .eyebrow {
  margin-bottom: 12px;
}

.recruitment-cta h2 {
  max-width: 650px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.recruitment-cta-content > div > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

/* Visa information pages */
.visa-hero {
  display: flex;
  min-height: 440px;
  align-items: center;
  padding-block: 72px;
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.visa-hero--job {
  background-image:
    linear-gradient(90deg, rgba(10, 27, 46, 0.88), rgba(10, 27, 46, 0.3)),
    url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=2000&q=85");
}

.visa-hero--business {
  background-image:
    linear-gradient(90deg, rgba(10, 27, 46, 0.88), rgba(10, 27, 46, 0.3)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=85");
}

.visa-hero--student {
  background-image:
    linear-gradient(90deg, rgba(10, 27, 46, 0.88), rgba(10, 27, 46, 0.3)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=2000&q=85");
}

.visa-hero--tourist {
  background-image:
    linear-gradient(90deg, rgba(10, 27, 46, 0.88), rgba(10, 27, 46, 0.3)),
    url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2000&q=85");
}

.visa-hero--residence {
  background-image:
    linear-gradient(90deg, rgba(10, 27, 46, 0.88), rgba(10, 27, 46, 0.3)),
    url("https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=2000&q=85");
}

.visa-hero--freelance {
  background-image:
    linear-gradient(90deg, rgba(10, 27, 46, 0.88), rgba(10, 27, 46, 0.3)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=2000&q=85");
}

.visa-hero-content {
  padding-block: 24px;
}

.visa-hero .eyebrow {
  color: var(--gold-light);
}

.visa-hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.02;
}

.visa-hero-content > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 26px;
  color: #e4eaf0;
  font-size: 1.05rem;
}

.visa-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.visa-info-copy h2 {
  margin-bottom: 16px;
}

.visa-info-copy > p {
  color: var(--muted);
}

.visa-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  color: #40566a;
  list-style: none;
}

.visa-checklist li::before {
  margin-right: 10px;
  color: var(--gold);
  content: "✓";
  font-weight: 800;
}

.visa-note {
  padding: 26px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 44, 82, 0.07);
}

.visa-note h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.visa-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.visa-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 28px;
  border-radius: 6px;
  background: #f3eedf;
}

.visa-cta p {
  margin: 0;
  color: var(--muted);
}

/* 5. Services and about sections */
.section {
  padding-block: 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 570px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 370px;
  margin-bottom: 4px;
  color: var(--muted);
}

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

.service-link {
  min-height: 58px;
  padding-inline: 12px;
  text-align: center;
}

.text-link {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link span {
  color: var(--gold);
}

.about-card {
  display: grid;
  min-height: 480px;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(16, 44, 82, 0.07);
}

.about-image {
  position: relative;
  min-height: 400px;
  background:
    linear-gradient(rgba(16, 44, 82, 0.08), rgba(16, 44, 82, 0.08)),
    url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1300&q=85")
      center / cover;
}

.image-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--navy);
  color: var(--white);
}

.image-caption strong,
.image-caption span {
  display: block;
}

.image-caption strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.image-caption span {
  margin-top: 4px;
  color: #d9e1ea;
  font-size: 0.8rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 65px);
}

.about-content h2 {
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
}

.about-content > p:not(.eyebrow) {
  color: var(--muted);
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 6px 0 24px;
  padding: 0;
  color: #40566a;
  font-size: 0.9rem;
  list-style: none;
}

.benefits li::before {
  margin-right: 10px;
  color: var(--gold);
  content: "✓";
  font-weight: 800;
}

/* 6. Contact form and footer */
.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
}

.contact-intro .eyebrow {
  color: var(--gold-light);
}

.contact-intro h2 {
  margin-bottom: 15px;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 390px;
  color: #d5e0e8;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.9rem;
}

.contact-details a:hover {
  color: var(--gold-light);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: #e5edf1;
  font-size: 0.8rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #c3d0da;
}

.form-field select option {
  color: var(--text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(215, 183, 101, 0.2);
}

.form-field textarea {
  min-height: 85px;
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.form-button {
  justify-self: start;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--gold-light);
  font-size: 0.85rem;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-logo img {
  width: 68px;
}

.footer-logo .logo-name {
  font-size: 0.82rem;
}

.footer-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.84rem;
}

/* 7. Small-screen layout */
@media (max-width: 850px) {
  .navigation {
    min-height: 108px;
  }

  .logo img {
    width: 92px;
  }

  .logo-name {
    font-size: 0.82rem;
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    font-size: 1.2rem;
  }

  .navigation-links {
    position: absolute;
    top: 108px;
    right: 24px;
    left: 24px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(16, 44, 82, 0.12);
  }

  .navigation-links.is-open {
    display: flex;
    flex-direction: column;
  }

  .navigation-links > a,
  .pages-menu summary {
    padding: 11px 0;
  }

  .navigation-links > a + a,
  .pages-menu,
  .pages-menu + a {
    border-top: 1px solid var(--border);
  }

  .dropdown-links {
    position: static;
    min-width: 0;
    margin: 0 0 8px 10px;
    padding: 4px 0 4px 10px;
    border: 0;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown-links a {
    padding: 8px;
  }

  .header-button {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .visa-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .recruitment-cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .visa-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 36px, 440px);
  }

  .announcement {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 620px;
    align-items: flex-end;
  }

  .hero-slide {
    background-position: center 38%;
  }

  .hero-slide::after {
    background: linear-gradient(
      0deg,
      rgba(10, 27, 46, 0.86) 0%,
      rgba(10, 27, 46, 0.38) 43%,
      rgba(10, 27, 46, 0.06) 100%
    );
  }

  .hero-content {
    padding-block: 24px 28px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 0.65rem;
  }

  .hero h1 {
    max-width: 540px;
    margin-bottom: 12px;
    font-size: clamp(2.45rem, 10vw, 3.35rem);
    line-height: 1.02;
  }

  .hero-description {
    max-width: 440px;
    margin-bottom: 18px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    gap: 9px;
  }

  .hero-buttons .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .hero-note {
    margin-top: 18px;
    font-size: 0.78rem;
  }

  .recruitment-hero {
    padding: 58px 0 32px;
    background-position: 58% center;
  }

  .visa-hero {
    min-height: 390px;
    padding-block: 50px;
  }

  .visa-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }

  .recruitment-hero .eyebrow {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    line-height: 1.5;
  }

  .recruitment-hero h1 {
    max-width: 14ch;
    margin-bottom: 16px;
    font-size: clamp(2.3rem, 10.2vw, 3rem);
    line-height: 1.05;
  }

  .recruitment-hero-content > p:not(.eyebrow) {
    margin-bottom: 22px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .destination-list {
    gap: 8px;
    margin-top: 28px;
  }

  .destination-list span {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .section {
    padding-block: 64px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-card > p {
    min-height: 0;
  }

  .about-image {
    min-height: 270px;
  }

  .about-content {
    padding: 30px 24px;
  }

  .image-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 12px 14px;
  }

  .contact-card {
    width: calc(100% + 36px);
    margin-left: -18px;
    padding: 34px 22px;
    border-radius: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero-slide {
    animation: none;
  }

  .hero-slide--travel {
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
