/* ==========================================================================
   Kundu Parivar — shared design system
   Direction: elegant & formal — a family register, not a scrapbook.
   Palette: deep bottle green, oxblood maroon, brass gold, ivory, ink.
   Type: Cormorant Garamond (display) / Crimson Pro (body) / Inter (utility)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root{
  --green:      #1B3A2F;
  --green-2:    #234A3C;
  --green-deep: #142A22;
  --maroon:     #5C1A1B;
  --gold:       #A8823C;
  --gold-light: #C7A968;
  --ivory:      #F3EEE1;
  --ivory-2:    #EBE3CE;
  --ink:        #211C16;
  --line:       rgba(168,130,60,0.35);
  --shadow:     0 2px 10px rgba(27,58,47,0.10), 0 10px 28px rgba(27,58,47,0.08);

  --display: 'Cormorant Garamond', serif;
  --body: 'Crimson Pro', serif;
  --utility: 'Inter', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4{
  font-family: var(--display);
  color: var(--green);
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}
a{ color: inherit; }
img{ max-width: 100%; display: block; }
code{ font-family: 'SFMono-Regular', Consolas, monospace; }

.wrap{ max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.eyebrow{
  font-family: var(--utility);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
}

/* ---------- letterhead header ---------- */
.masthead{
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  color: var(--ivory);
  border-bottom: 4px double var(--gold);
}
.masthead .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.brandline{ display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ivory); }
.crest{
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--gold-light);
  position: relative; flex-shrink: 0;
}
.crest::before{ content:""; position:absolute; inset:5px; border:1px solid rgba(199,169,104,0.5); border-radius:50%; }
.brand-name{ font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-name small{
  display: block; font-family: var(--utility); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-light); margin-top: 2px;
}

nav.site-nav ul{ list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav.site-nav a{
  font-family: var(--utility); font-size: 0.84rem; font-weight: 500;
  text-decoration: none; color: var(--ivory); padding: 8px 14px; border-radius: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.site-nav a:hover{ border-color: var(--gold-light); }
nav.site-nav a.active{ color: var(--gold-light); border-color: var(--gold-light); }
nav.site-nav a:focus-visible, a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold-light); outline-offset: 2px;
}

.nav-toggle{
  display: none;
  font-family: var(--utility); background: none; color: var(--ivory);
  border: 1px solid var(--gold-light); border-radius: 4px;
  padding: 7px 12px; font-size: 0.82rem; cursor: pointer;
}

/* ---------- page hero / title-page treatment ---------- */
.page-hero{
  text-align: center;
  padding: 58px 0 40px;
  background: var(--green);
  color: var(--ivory);
  border-bottom: 4px double var(--gold);
}
.page-hero .eyebrow{ color: var(--gold-light); }
.page-hero h1{
  color: var(--ivory);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: 8px;
}
.page-hero p.lede{
  max-width: 640px; margin: 14px auto 0;
  font-size: 1.08rem; color: var(--ivory-2);
}
.ornament{ margin: 22px auto 0; width: 120px; height: 14px; position: relative; }
.ornament::before, .ornament::after{
  content: ""; position: absolute; top: 50%; width: 44px; height: 1px; background: var(--gold);
}
.ornament::before{ left: 0; }
.ornament::after{ right: 0; }
.ornament span{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--gold);
}

section{ padding: 60px 0; }
section.alt{ background: var(--ivory-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head{ text-align: center; margin-bottom: 42px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head p{ color: #4a3c2c; max-width: 580px; margin: 10px auto 0; }

/* ---------- buttons ---------- */
.btn{
  display: inline-block; font-family: var(--utility); font-weight: 600; font-size: 0.86rem;
  text-decoration: none; padding: 12px 26px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary{ background: var(--maroon); color: var(--ivory); }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline{ border-color: var(--gold); color: var(--green); background: transparent; }
.btn-outline:hover{ background: var(--green); color: var(--ivory); border-color: var(--green); }

/* ---------- certificate-style card ---------- */
.card{
  background: var(--ivory);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ---------- footer ---------- */
footer.site-footer{
  background: var(--green-deep);
  color: var(--ivory-2);
  padding: 32px 0;
  border-top: 4px double var(--gold);
}
footer.site-footer .wrap{
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
footer .foot-note{ font-family: var(--utility); font-size: 0.78rem; color: var(--ivory-2); opacity: 0.8; }
footer code{ color: var(--gold-light); }

@media (max-width: 760px){
  nav.site-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green); border-bottom: 3px double var(--gold);
    display: none; padding: 8px 20px 16px;
  }
  nav.site-nav.open{ display: block; }
  nav.site-nav ul{ flex-direction: column; gap: 2px; }
  .nav-toggle{ display: inline-block; }
  .masthead{ position: sticky; }
  .masthead .wrap{ position: relative; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
