html {
  overflow-y: scroll;
}

:root {
  --bg: #faf9f7;
  --primary: #111;
  --accent: #7a1f2b;
  --logo: #0097db;
  --muted: #6b6b6b;
  --card: #ffffff;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

.hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero img {
    max-height: none;   
    height: auto;      
  }
}

@media (max-width: 768px) {
  .hero-recruitme img {
    height: 280px;
    object-fit: cover;
  }
}

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

.container {
  padding: 20px;
}

/* Custom CSS for index */
.flex{
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    margin: auto;
    padding: 40px;
  }
}

/* ================= NAV ================= */
header {
  padding: 20px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 76px;
}

@media (max-width: 1024px) {
  .logo img {
    height: 62px;
  }
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Mobile toggle */
.menu-toggle {
  font-size: 22px;
  cursor: pointer;
}

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(250,249,247,.97);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: .4s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 24px;
}

.mobile-close {
  align-self: flex-end;
  font-size: 26px;
  margin-bottom: 40px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero{
  margin-top: 70px;
  display: grid;
  gap: 32px;
}

.hero-recruitme{
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1,
.hero-recruitme h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p,
.hero-recruitme p {
  color: var(--muted);
  max-width: 480px;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 30px;
  background: var(--logo);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .hero h1 {
    font-size: 52px;
  }
}

/* ================= SECTION ================= */
section {
  margin-top: 50px;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}

/* ================= GRID & CARD ================= */
.grid-principles,
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  padding: 24px;
  border-radius: 18px;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.06),
    0 12px 24px rgba(0,0,0,0.04);

  transition:
    transform 0.45s cubic-bezier(.22,1,.36,1),
    box-shadow 0.45s cubic-bezier(.22,1,.36,1);
  
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.08),
    0 22px 44px rgba(0,0,0,0.12);
}

/* CLICK EFFECT CARD */
/* .card:active {
  transform: translateY(-2px) scale(0.99);
} */

.card-img {
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 18px;
  width: 100%;
}

.card-img-custom{
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
  width: 100%;
}

.card-img img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.card-img-custom img {
  height: 380px;
  width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.card:hover img {
  transform: scale(1.08);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card .btn {
  margin-top: auto;
}

/* ================= ANIMATION ================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOOTER ================= */
footer {
  margin-top: 120px;
  padding: 40px 0;
  border-top: 1px solid #ddd;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .card-img-custom img {
    height: 280px;
    object-fit: cover;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}