/* ==========================================================================
   Harshita D. & Associates — Design System
   Concept: "The Register" — a Company Secretary's work is the art of
   keeping a company's record straight, on time, in order. The visual
   language borrows from statutory registers and ledgers: hairline rules,
   tab-indexed rows, mono filing codes, paper tones, one deep ink-blue,
   one restrained seal-red used only for what truly needs attention.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --paper: #F5F2EC;
  --paper-alt: #ECE6D9;
  --ink: #24231F;
  --ink-soft: #55524A;
  --blue: #0B4A82;
  --blue-dark: #052C52;
  --blue-tint: #E2EAF4;
  --stone: #8C8574;
  --hairline: #D9D2C1;
  --seal: #8B3A2B;
  --gold: #B08D3E;
  --gold-dark: #8A6B2E;
  --gold-tint: #F3EAD3;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --gutter: 24px;
  --radius: 2px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--blue-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--seal);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.hairline { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-arrow::after { content: "→"; font-family: var(--font-mono); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  letter-spacing: 0.01em;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wordmark-text .name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.1;
}
.wordmark-text .tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
}
.site-logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}
.site-footer .site-logo { height: 52px; }
.site-footer .wordmark-text .tagline { color: #9D9788; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] { border-color: var(--gold); color: var(--blue-dark); }

.nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.6em;
  line-height: 1.1;
}
@media (min-width: 880px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

@media (min-width: 880px) { .nav-toggle { display: none; } }

@media (max-width: 879px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--hairline); width: 100%; }
  .nav-links .nav-cta {
    display: inline-flex;
    justify-content: center;
    width: calc(100% - (var(--gutter) * 2));
    margin: 16px var(--gutter) 20px;
    border-bottom: none;
    padding: 0.9em 1.6em;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 22, 41, 0.88) 0%, rgba(5, 22, 41, 0.72) 38%, rgba(5, 22, 41, 0.42) 68%, rgba(5, 22, 41, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 22, 41, 0.35) 0%, transparent 40%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 20px;
  padding-bottom: 116px;
}

.hero-copy { max-width: 640px; }

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  line-height: 0;
}
.hero-divider svg { width: 100%; height: 100%; display: block; }

.hero-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(11, 74, 130, 0.35);
}
.hero-graphic {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
@media (min-width: 960px) {
  .hero-graphic { min-height: 420px; }
}

.hero .eyebrow { color: var(--gold-tint); }
.hero .eyebrow::before { background: var(--gold-tint); }
.hero h1 { margin-bottom: 0.4em; color: #fff; }
.hero .lede { font-size: 1.1rem; max-width: 46ch; color: rgba(245, 242, 236, 0.88); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2em;
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Additional services (compact list, Services page) */
.additional-services {
  margin-top: 24px;
  padding-top: 44px;
}
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-item {
  background: var(--white);
  border: 1px solid var(--hairline);
}
.accordion-item summary {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::before {
  content: "+";
  color: var(--seal);
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease;
}
.accordion-item[open] summary::before { transform: rotate(45deg); }
.accordion-item .accordion-body {
  padding: 0 18px 18px 42px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.accordion-body p { margin: 0 0 0.8em; }
.accordion-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
@media (min-width: 640px) {
  .accordion-body ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
.accordion-body li {
  position: relative;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.accordion-body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--seal);
}

/* ==========================================================================
   Cards (used on Home services snapshot, resources)
   ========================================================================== */

.grid { display: grid; gap: 28px; }
.grid.cols-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.grid.cols-3 .card { flex: 0 1 350px; width: 350px; }
.grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.cols-2 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--blue);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(11, 74, 130, 0.32);
  border-top-color: var(--gold);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Icon badges (used on cards, values, register rows)
   ========================================================================== */

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.card:hover .icon-badge { background: var(--blue); color: var(--white); }
.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value .icon-badge { margin-bottom: 12px; }

/* ==========================================================================
   Team / bio
   ========================================================================== */

.bio-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}
@media (min-width: 800px) {
  .bio-block { grid-template-columns: 280px 1fr; }
}

.seal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-alt);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.seal-frame img { width: 100%; height: 100%; object-fit: cover; }
.credentials {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin: -0.6em 0 1.3em;
}
.seal-frame .placeholder {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   Timeline / process (About)
   ========================================================================== */

.value-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) { .value-row { grid-template-columns: repeat(3, 1fr); } }
.value-row .value {
  border-top: 2px solid var(--blue);
  padding-top: 16px;
}

/* ==========================================================================
   Resources — compliance ledger
   ========================================================================== */

.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th, .calendar-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}
.calendar-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  font-weight: 500;
}
.calendar-table td.code { font-family: var(--font-mono); color: var(--seal); font-size: 0.82rem; }
.calendar-scroll { overflow-x: auto; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.info-list { list-style: none; margin: 28px 0 0; padding: 0; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.info-list li:last-child { border-bottom: 1px solid var(--hairline); }
.info-list .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  width: 90px;
  flex-shrink: 0;
  padding-top: 3px;
}

.map-frame {
  border: 1px solid var(--hairline);
  margin-top: 28px;
  filter: grayscale(0.35) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.8rem; color: var(--stone); margin-top: 16px; }
.form-status { margin-top: 18px; font-size: 0.9rem; }
.form-status.ok { color: var(--blue-dark); }
.form-status.error { color: var(--seal); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--blue);
  color: var(--paper);
}
.cta-band h2, .cta-band .eyebrow { color: var(--paper); }
.cta-band .eyebrow::before { background: var(--paper); }
.cta-band p { color: #D9DED9; }
.cta-band .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--blue-dark); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-inner .copy { max-width: 46ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #C9C4B6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--paper); }
.site-footer .wordmark span { color: #9D9788; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9D9788;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C9C4B6; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid #3A382F;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: #8B8677;
  font-family: var(--font-mono);
}

.footer-disclaimer {
  border-top: 1px solid #3A382F;
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: #8B8677;
  max-width: 90ch;
}
.footer-disclaimer a { color: #C9C4B6; text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--paper); }

/* ==========================================================================
   Disclaimer (Contact page)
   ========================================================================== */

.disclaimer-block {
  max-width: 78ch;
  font-size: 0.92rem;
}
.disclaimer-block p { color: var(--ink-soft); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--hairline); }
.page-hero .lede { max-width: 60ch; font-size: 1.05rem; }
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .page-hero .container { grid-template-columns: 1.1fr 0.9fr; }
}
.page-hero .hero-graphic { min-height: 200px; }
@media (min-width: 960px) {
  .page-hero .hero-graphic { min-height: 280px; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stone { color: var(--stone); }
