/* ============================================================
   Dr Sudhir Tapase — GMC Appraisal Services
   Design system: white ground, deep navy + sky blue accents.
   Modern card-based layout: soft elevation, rounded corners,
   pill badges/nav, asymmetric hero with accent panel.
   ============================================================ */

:root {
  /* Color */
  --ink:        #0B2C40;
  --paper:      #FFFFFF;
  --paper-dim:  #EAF4FB;
  --pine:       #2E86C1;
  --pine-deep:  #1B5E84;
  --bronze:     #4A6B80;
  --sage:       #4A6B80;
  --gold:       #2E86C1;
  --line:       #E1ECF4;
  --line-soft:  #EDF4FA;
  --white:      #FFFFFF;
  --navy-panel: #0B3D5C;
  --navy-panel-text: #9FC8E0;

  /* Type scale */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "Courier New", monospace;

  --measure: 68ch;
  --container: 1120px;

  /* Radius + elevation */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11,44,64,0.06), 0 1px 1px rgba(11,44,64,0.04);
  --shadow-md: 0 4px 16px rgba(11,44,64,0.08), 0 1px 3px rgba(11,44,64,0.06);
  --shadow-lg: 0 12px 32px rgba(11,44,64,0.12), 0 2px 6px rgba(11,44,64,0.06);
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a {
  color: var(--pine);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
a:hover { color: var(--pine-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-deep);
  background: var(--paper-dim);
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 1em;
}

/* ---------- Header / credential strip (signature element) ---------- */

.cred-strip {
  background: var(--navy-panel);
  color: var(--paper-dim);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
}
.cred-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: space-between;
}
.cred-strip span { white-space: nowrap; }
.cred-strip .dim { color: rgba(159,200,224,0.85); }

.crest-banner {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.crest-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  text-align: left;
}
.crest-banner img {
  width: 84px;
  height: auto;
  flex-shrink: 0;
}
.crest-banner .brand-text .name {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.crest-banner .brand-text .role {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--sage);
  display: block;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .crest-banner .container { text-align: center; justify-content: center; }
}

header.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.brand .name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.brand .role {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--sage);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
nav.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
}
.nav-portal-btn {
  font-size: 0.82rem;
  font-weight: 600;
  background: #2E86C1;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-portal-btn:hover { background: #1a6fa8; }
nav.main-nav a:hover { color: var(--pine); }
nav.main-nav a[aria-current="page"] { color: var(--pine); }

.nav-cta {
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--pine);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--pine-deep); box-shadow: var(--shadow-md); }

/* ---------- Hero ---------- */

.hero {
  padding: 60px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}
.hero-lede {
  font-size: 1.12rem;
  color: var(--sage);
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Hero accent panel (signature element) */
.hero-panel {
  background: var(--navy-panel);
  border-radius: var(--r-lg);
  padding: 26px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.hero-panel-head span {
  color: var(--navy-panel-text);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-panel-time {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 16px;
}
.hero-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.14);
  margin: 14px 0;
}
.hero-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.hero-panel-row span:first-child { color: var(--navy-panel-text); }
.hero-panel-row span:last-child { font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--pine);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--pine-deep); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--pine); color: var(--pine-deep); box-shadow: var(--shadow-sm); }

/* ---------- Feature tiles (replaces ledger rows) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
}
.tile {
  background: var(--paper-dim);
  border-radius: var(--r-md);
  padding: 22px;
}
.tile-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: var(--pine-deep);
  box-shadow: var(--shadow-sm);
}
.tile h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.tile p {
  font-size: 0.9rem;
  color: var(--sage);
  margin-bottom: 0;
}

/* ---------- Content cards (replaces ledger rows on inner pages) ---------- */

.card-section {
  padding: 20px 0;
}
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.content-card:last-child { margin-bottom: 0; }
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pine-deep);
  background: var(--paper-dim);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.card-body { max-width: 68ch; }
.card-body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .content-card { padding: 26px 22px; }
}

/* ---------- Credential callouts (stat cards) ---------- */

.callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.callout {
  background: var(--paper-dim);
  border-radius: var(--r-md);
  padding: 24px;
}
.callout .figure {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--pine-deep);
  display: block;
  margin-bottom: 4px;
}
.callout .caption {
  font-size: 0.88rem;
  color: var(--sage);
}
@media (max-width: 700px) {
  .callouts { grid-template-columns: 1fr; }
}

/* ---------- Fee schedule ---------- */

.fee-cards {
  display: grid;
  gap: 16px;
  margin: 28px 0 8px;
}
.fee-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.fee-card.addon { background: var(--paper-dim); border-color: var(--paper-dim); box-shadow: none; }
.fee-card .svc-name { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.fee-card .svc-note { color: var(--sage); font-size: 0.9rem; max-width: 48ch; }
.fee-card .amount {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pine-deep);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .fee-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .fee-card .amount { font-size: 1.3rem; }
}

.fee-note {
  font-size: 0.92rem;
  color: var(--sage);
  background: var(--paper-dim);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 28px 0;
}

/* ---------- Payment placeholder notice (dev-facing, removable) ---------- */

.payment-block {
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 24px 0;
}
.payment-block h3 { margin-bottom: 10px; }

.booking-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 28px 0 8px;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}
.booking-status {
  font-size: 0.9rem;
  margin: -6px 0 18px;
  min-height: 1.2em;
}
.booking-status:empty { display: none; }
.booking-status-error {
  color: #B3261E;
}
#book-pay-btn {
  width: 100%;
  justify-content: center;
}
#book-pay-btn:disabled {
  background: var(--line-soft);
  color: var(--sage);
  cursor: not-allowed;
  box-shadow: none;
}
.placeholder-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #FBEFD9;
  color: #6B4E1A;
  border: 1px solid #E8CE94;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.btn-disabled {
  background: var(--line-soft);
  color: var(--sage);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-disabled:hover { background: var(--line-soft); color: var(--sage); box-shadow: none; }

/* ---------- FAQ ---------- */

.faq-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}
.faq-jumpnav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--pine-deep);
  background: var(--paper-dim);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
}
.faq-jumpnav a:hover { background: var(--line-soft); color: var(--pine-deep); }

.faq-section {
  margin-top: 48px;
}
.faq-section:first-of-type { margin-top: 0; }
.faq-section-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--paper-dim);
  scroll-margin-top: 90px;
}
.faq-section-head h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.faq-section-intro {
  color: var(--sage);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  font-family: var(--body);
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-a { color: var(--sage); margin-bottom: 0; }
.faq-a a { color: var(--pine); }
.faq-a ul { margin: 10px 0 0; padding-left: 1.2em; }
.faq-a li { margin-bottom: 6px; }

/* ---------- Forms ---------- */

form.enquiry {
  max-width: 620px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
.required-mark { color: var(--pine); }
.form-note {
  font-size: 0.88rem;
  color: var(--sage);
  margin-top: -6px;
  margin-bottom: 24px;
}

/* ---------- Section helpers ---------- */

.section {
  padding: 64px 0;
}
.section-tight { padding: 40px 0; }
.section-bordered { border-bottom: 1px solid var(--line); }
.section-alt { background: var(--paper-dim); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Page intro (non-home pages) ---------- */

.page-intro {
  padding: 52px 0 44px;
  background: var(--paper-dim);
}
.page-intro h1 { margin-bottom: 14px; }
.page-intro .lede { color: var(--sage); font-size: 1.08rem; }

.page-intro-with-crest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .page-intro-with-crest { grid-template-columns: 1fr; text-align: center; }
  .page-intro-with-crest .crest-figure { justify-self: center; }
}
.crest-figure {
  margin: 0;
  text-align: center;
}
.crest-figure img {
  width: 190px;
  height: auto;
  margin: 0 auto;
}
.crest-figure figcaption {
  font-size: 0.78rem;
  color: var(--sage);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-panel);
  color: var(--paper-dim);
  padding: 48px 0 28px;
  margin-top: 64px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
footer.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-panel-text);
  margin-bottom: 14px;
}
footer.site-footer p,
footer.site-footer a {
  color: rgba(234,244,251,0.82);
  font-size: 0.92rem;
}
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--white); text-decoration: underline; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid rgba(234,244,251,0.15);
  font-size: 0.82rem;
  color: rgba(234,244,251,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  footer.site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Misc utility ---------- */

.mt-0 { margin-top: 0; }
.text-sage { color: var(--sage); }
.small { font-size: 0.88rem; }
