/* ============================================
   Prabesh Upreti & Associates — Chartered Accountants
   Shared stylesheet
   Edit the colors below to change the whole site
   ============================================ */
:root {
  --primary: #0f3d5c;        /* deep corporate blue */
  --primary-dark: #0a2b42;
  --accent: #c9a227;         /* gold accent */
  --accent-light: #e6c65c;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --text: #24313c;
  --text-muted: #5c6b78;
  --border: #e2e8ee;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 61, 92, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 61, 92, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cfdce6;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--accent-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-image {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.2;
}
.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.2s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.main-nav a.active { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--primary-dark);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,43,66,0.88) 25%, rgba(10,43,66,0.45) 65%, rgba(10,43,66,0.2));
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* Slider photos (free Unsplash images — replace the URLs with your own photos any time) */
.slide .slide-bg { background-color: #0a2b42; }
.slide:nth-child(1) .slide-bg { background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=70'); }
.slide:nth-child(2) .slide-bg { background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=70'); }
.slide:nth-child(3) .slide-bg { background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=1600&q=70'); }

.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: min(1140px, 92%);
  margin: 0 auto;
}
.slide-content .kicker {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.slide-content h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 620px;
}
.slide-content p {
  max-width: 520px;
  color: #d8e4ec;
  margin-bottom: 26px;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-light); color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 10px; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dots button.active { background: var(--accent); width: 28px; border-radius: 999px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-hero p { color: #cfdce6; max-width: 640px; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: 42px;
}
.section-head .kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-size: 0.8rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--primary);
  margin: 6px 0 10px;
}
.section-head p { color: var(--text-muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--accent-light);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.12rem; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

/* ---------- Welcome / two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.welcome-visual {
  border-radius: var(--radius);
  min-height: 340px;
  background-color: var(--primary-dark);
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=70');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.welcome-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,61,92,0.35), rgba(10,43,66,0.05));
}
.map-frame {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.stat {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 10px;
}
.stat strong { display: block; font-size: 1.6rem; color: var(--primary); }
.stat span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Useful links ---------- */
.link-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.link-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.link-list a::before { content: "→"; color: var(--accent); font-weight: 800; }

/* ---------- News ---------- */
.news-item {
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.news-item .date {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-item h3 { color: var(--primary); font-size: 1.05rem; margin: 4px 0 6px; }
.news-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { color: #cfdce6; margin-bottom: 26px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.leadership-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #16537e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
}
.team-card .role { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }

/* ---------- Contact info ---------- */
.info-line { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-line .icon-sm {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem;
}
.info-line strong { display: block; color: var(--primary); font-size: 0.95rem; }
.info-line span { color: var(--text-muted); font-size: 0.92rem; }

.map-placeholder {
  border-radius: var(--radius);
  min-height: 260px;
  background: repeating-linear-gradient(45deg, #e8eef3, #e8eef3 12px, #f2f6f9 12px, #f2f6f9 24px);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #b9c9d5;
  padding: 56px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c9d5; }
.site-footer a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header .container { padding: 10px 0; }
  .logo { gap: 8px; }
  .logo-image { width: 46px; height: 46px; }
  .logo-text strong { font-size: 0.88rem; }
  .logo-text span { font-size: 0.6rem; letter-spacing: 1px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .link-list, .leadership-grid { grid-template-columns: 1fr; }
  .hero { height: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}
