/* ============================================
   Neha Kapoor, PMP — Portfolio Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg:         #FAF9F7;
  --stone:      #E8E4DE;
  --stone-dark: #D4CEC6;
  --charcoal:   #2C2C2C;
  --mid:        #6B6B6B;
  --accent:     #7A9E87;
  --accent-dk:  #5E8470;
  --white:      #FFFFFF;
  --ff-head:    'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(44,44,44,0.07);
  --shadow-lg:  0 8px 32px rgba(44,44,44,0.11);
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--mid); font-weight: 300; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

.section-label {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3.5rem;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--charcoal);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active { color: var(--charcoal); font-weight: 600; }

.nav__cta {
  background: var(--charcoal) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.83rem !important;
  transition: background var(--transition) !important;
}

.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--accent) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn--outline:hover { background: var(--charcoal); color: var(--white); transform: translateY(-1px); }

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--ff-head);
  font-size: 1rem;
  color: var(--white);
}

.footer__logo span { color: var(--accent); }

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

.footer__copy { font-size: 0.78rem; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--stone);
}

.page-hero__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero__title { margin-bottom: 1rem; }

.page-hero__sub {
  font-size: 1.05rem;
  max-width: 520px;
}

/* ---- Tag / Badge ---- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--stone);
  color: var(--charcoal);
}

.tag--accent {
  background: rgba(122,158,135,0.15);
  color: var(--accent-dk);
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem 0 2rem;
}

/* ---- Responsive Nav Toggle ---- */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--stone);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .nav__links.open { display: flex; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
