/* ============================================================
   PASANG SHERPA — PORTFOLIO
   Theme: Deep navy + amber accent + Playfair Display headings
   ============================================================ */

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

:root {
  --navy:       #0a2f5e;
  --navy-dark:  #061d3e;
  --navy-mid:   #1e3a5f;
  --amber:      #c9882a;
  --amber-light:#e8a94a;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --grey-light: #e8edf3;
  --grey-text:  #6b7a8d;
  --text:       #1a2533;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius: 6px;
  --shadow: 0 4px 20px rgba(10,47,94,0.10);
  --shadow-hover: 0 8px 32px rgba(10,47,94,0.18);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; }
a  { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-light); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.80);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 100px 5% 0;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 60px;
}

.hero-text { flex: 1; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.hero-title { color: var(--white); margin-bottom: 16px; }
.hero-title span { color: var(--amber); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-photo {
  width: 240px;
  height: 300px;
  flex-shrink: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 3px solid var(--amber);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.30);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Mountain SVG divider */
.mountain-divider {
  width: 100%;
  display: block;
  line-height: 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
}

.btn-amber:hover { background: var(--amber-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,136,42,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* ---- SECTION LAYOUT ---- */
.section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  color: var(--navy);
  margin-bottom: 48px;
}

.section-title span { color: var(--amber); }

.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--navy); }

/* ---- PROJECT CARDS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-card-body { padding: 24px; }

.project-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.project-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.project-card p  { color: var(--grey-text); font-size: 0.92rem; line-height: 1.65; }

/* ---- STATS ROW ---- */
.stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--amber);
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-4px); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p  { color: var(--grey-text); font-size: 0.92rem; }

/* ---- TOOLS ---- */
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-tag {
  background: var(--grey-light);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { color: var(--navy); margin-bottom: 20px; }
.contact-info p  { color: var(--grey-text); margin-bottom: 28px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--amber);
}

.form-group textarea { height: 140px; resize: vertical; }

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form-message.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-message.error   { background: #ffebee; color: #c62828; display: block; }

/* ---- ABOUT PAGE ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 3px solid var(--amber);
}

.about-photo img { width: 100%; display: block; object-fit: cover; }

.timeline { list-style: none; margin-top: 16px; }
.timeline li {
  position: relative;
  padding: 0 0 24px 32px;
  border-left: 2px solid var(--grey-light);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.timeline-text { font-size: 0.95rem; color: var(--text); }

/* ---- PORTFOLIO FILTER ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--grey-light);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ---- GALLERY GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-thumb:hover { opacity: 0.85; transform: scale(1.02); }

/* Horizontal scrolling row of gallery thumbnails (used in project cards) */
.gallery-grid-horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-grid-horizontal .gallery-thumb {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 1;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 32px 5%;
  font-size: 0.88rem;
}

.footer span { color: var(--amber); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-content { flex-direction: column-reverse; align-items: center; gap: 32px; padding-bottom: 40px; }
  .hero-photo { width: 160px; height: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  .stats-row { justify-content: center; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero { padding: 60px 5% 0; }
}