/* ========================================
   shantma.com | shared styles
   Deep Autumn palette
   ======================================== */

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

:root {
  --bg:        #FAF4EC;
  --surface:   #F3EAD8;
  --surface2:  #EDE0C8;
  --border:    rgba(100, 40, 10, 0.1);
  --border-mid:rgba(100, 40, 10, 0.2);
  --sienna:    #8B3A1A;
  --sienna-dim:rgba(139, 58, 26, 0.4);
  --amber:     #7A5C0A;
  --amber-dim: rgba(122, 92, 10, 0.4);
  --text:      #1C0F08;
  --text-mid:  rgba(28, 15, 8, 0.6);
  --text-dim:  rgba(28, 15, 8, 0.35);
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  font-weight: 300;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 244, 236, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-name:hover { color: var(--sienna); transition: color 0.2s; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Nav link hover: underline slide-in, no background glow ── */
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--sienna);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--text); background: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--sienna); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-social {
  display: flex;
  gap: 0;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-mid);
  align-items: center;
}
/* .nav-social a styles are in the new block above */

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 3px;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  color: var(--text-mid);
}
.nav-toggle:hover { color: var(--text); border-color: var(--sienna-dim); }

/* ── Main padding for fixed nav ── */
.page-main { padding-top: 56px; }

/* ── Section ── */
section { padding: 6rem 0; }
section + section { border-top: 1px solid var(--border); }

.section-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ── Hero with background image ── */
.hero-section {
  position: relative;
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('machu-picchu.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Warm parchment gradient overlay — heavy at bottom where text sits, lighter at top */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 244, 236, 0.08) 0%,
    rgba(250, 244, 236, 0.30) 35%,
    rgba(250, 244, 236, 0.75) 58%,
    rgba(250, 244, 236, 0.95) 72%,
    rgba(250, 244, 236, 0.99) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
}

@media (max-width: 760px) {
  .hero-bg-img {
    background-position: 70% 30%;
  }
  .hero-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(250, 244, 236, 0.25) 0%,
      rgba(250, 244, 236, 0.6) 40%,
      rgba(250, 244, 236, 0.92) 65%,
      rgba(250, 244, 236, 0.99) 100%
    );
  }
}

/* ── Hero headline — no hanging words ── */
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  text-wrap: balance;
  /* fallback for older browsers */
  word-break: break-word;
}

/* ── Career block classes ── */
.career-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.career-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.career-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.career-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}

.career-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--sienna);
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ── Hero social icons ── */
.hero-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-link:hover { color: var(--sienna); }

.hero-social-icon {
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.hero-social-icon:hover { color: var(--sienna); }

/* ── Nav social icons ── */
.nav-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--sienna); }

/* ── Footer social icons ── */
.footer-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer-social a:hover { color: var(--sienna); }

/* ── Rule ── */
.rule {
  width: 36px;
  height: 1px;
  background: var(--sienna-dim);
  margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 3px;
  transition: all 0.22s ease;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.btn-primary {
  background: var(--sienna);
  color: #FAF4EC;
  border: 1px solid var(--sienna);
}
.btn-primary:hover { background: #C4692E; border-color: #C4692E; }

.btn-outline {
  background: transparent;
  color: var(--sienna);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover { background: rgba(176,90,40,0.08); border-color: var(--sienna-dim); }

/* ── Tags ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  font-size: 0.78rem;
  color: var(--text-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.3rem 0.7rem;
  line-height: 1.4;
  font-weight: 300;
}
.tag.win  { color: var(--amber); border-color: rgba(158,122,24,0.3); }
.tag.loss { color: var(--text-dim); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-left {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-left strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
/* .footer-social a styles defined in new utility block */

/* ── Fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .container { padding: 0 1.2rem; }
  .nav-inner { padding: 0 1.2rem; }
  section { padding: 4rem 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(250, 244, 236, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.2rem 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.5rem; width: 100%; }
  .nav-links a::after { left: 0.5rem; right: 0.5rem; }
  .nav-social {
    flex-direction: row;
    border-left: none;
    margin-left: 0;
    padding-left: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    width: 100%;
  }
  .nav-toggle { display: flex; }

  /* Career grid: 1 col on mobile */
  .career-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  /* Career grid: 2 col on tablet */
  .career-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
