/* Belani Accounting Services */

/* Fonts, served from this site.
   Inter: Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
   Lora: Copyright 2011 The Lora Project Authors (https://github.com/cyrealtype/Lora-Cyrillic), with Reserved Font Name "Lora".
   Both are licensed under the SIL Open Font License, Version 1.1 (https://scripts.sil.org/OFL).
   The files are the Latin files Google Fonts serves, unchanged. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --navy:        #253D52;
  --navy-light:  #2E4A61;
  --beige:       #F2EDE7;
  --beige-dark:  #E8E1D9;
  --walnut:      #85664C;
  --walnut-dark: #74563E;
  --title: clamp(28px, 3.5vw, 40px);
  --sub:   20px;
  --text:  16px;
  --serif: 'Lora', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --page:    1080px;
  --measure: 640px;
  --gutter:  24px;
  --bar:     72px;
  --radius:  6px;
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--text);
  line-height: 1.65;
  color: var(--navy);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

.hero,
.services,
.cta-band,
.site-footer {
  background: var(--navy);
  color: var(--beige);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

h1, h2 {
  font-size: var(--title);
  margin-bottom: 16px;
}

h3,
.page-section h2,
.footer-heading {
  font-size: var(--sub);
  margin-bottom: 8px;
}

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

a { color: inherit; }

.btn,
.skip-link,
.site-nav a { text-decoration: none; }

.container,
.nav-inner {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nowrap { white-space: nowrap; }

/* Off screen until it has keyboard focus */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--beige);
  font-weight: 500;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--walnut);
  color: var(--beige);
  border-color: var(--walnut);
}
.btn-primary:hover { background: var(--walnut-dark); border-color: var(--walnut-dark); }

.btn-outline {
  background: transparent;
  color: var(--beige);
  border-color: var(--beige);
}
.btn-outline:hover { background: var(--navy-light); }

.nav-monogram,
.footer-monogram,
.step-num,
.service-icon,
.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

.nav-monogram,
.footer-monogram,
.step-num {
  font-family: var(--serif);
  font-size: var(--sub);
  line-height: 1;
}

.nav-monogram,
.step-num {
  background: var(--navy);
  color: var(--beige);
}

.footer-monogram { background: var(--navy-light); }
.service-icon { background: var(--navy); }
.contact-item-icon { background: var(--beige-dark); }

.nav-call svg,
.service-icon svg,
.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The top bar is see-through over the page header and turns beige once the page is scrolled. */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--beige);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: var(--beige);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--beige-dark);
}

/* With scripting off the bar never turns beige, so it is navy from the start */
@media (scripting: none) {
  .site-nav { background: var(--navy); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar);
}

.nav-logo,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-name,
.footer-name {
  font-family: var(--serif);
  font-size: var(--sub);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a,
.nav-mobile a { font-weight: 500; }

.nav-links a:not(.btn):hover { text-decoration: underline; }

/* Phones only (see the 768px block). The menu is a details element, so it opens with scripting off. */
.nav-call,
.nav-menu { display: none; }

.nav-call,
.nav-hamburger {
  justify-content: center;
  width: 44px;
  height: 44px;
}

.nav-call {
  align-items: center;
  margin-left: auto;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  list-style: none;
  cursor: pointer;
}

.nav-hamburger::-webkit-details-marker { display: none; }

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.nav-mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: none;
  flex-direction: column;
  max-height: calc(100vh - var(--bar));
  max-height: calc(100dvh - var(--bar));
  overflow-y: auto;
  padding: 8px var(--gutter) 16px;
  background: var(--beige);
  color: var(--navy);
  border-top: 1px solid var(--beige-dark);
}

.nav-mobile a {
  padding: 16px 0;
  border-bottom: 1px solid var(--beige-dark);
}
.nav-mobile a:last-child { border-bottom: none; }

.hero {
  padding: calc(var(--bar) + 96px) 0 96px;
  background-image: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 50%);
}

.page-hero { padding: calc(var(--bar) + 48px) 0 48px; }

.hero h1,
.hero-sub,
.section-header,
.page-narrow { max-width: var(--measure); }

.hero-sub {
  font-size: var(--sub);
  margin-bottom: 24px;
}

.hero-actions,
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.about,
.services,
.steps,
.contact,
.cta-band,
.page-section { padding: 96px 0; }

.section-header { margin-bottom: 48px; }

.about p:not(:last-child),
.page-section p:not(:last-child) { margin-bottom: 16px; }

.pillar,
.step,
.service-card,
.contact-form {
  padding: 24px;
  border-radius: var(--radius);
}

.pillar,
.step { background: var(--beige-dark); }

.service-card,
.contact-form {
  background: var(--navy-light);
  color: var(--beige);
}

.about-pillars,
.services-grid,
.steps-grid {
  display: grid;
  gap: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.about-photo {
  width: 280px;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-pillars {
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
}

.services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.service-icon,
.step-num { margin-bottom: 16px; }

.service-card {
  display: flex;
  flex-direction: column;
}

.service-price { margin-top: 8px; }

.service-more {
  margin-top: auto;
  padding-top: 8px;
}

.service-price,
.service-more a { font-weight: 500; }

/* Four in a row, or two by two where four do not fit (four 220px columns and three gaps are 952px) */
.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(max(220px, min(50% - 12px, (952px - 100%) * 999)), 1fr));
  list-style: none;
}

.cta-band { text-align: center; }
.cta-band p { margin-bottom: 24px; }
.cta-band-actions { justify-content: center; }

.contact-grid,
.page-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.contact-grid { grid-template-columns: 1fr 1fr; }

.contact-details,
.page-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-label,
.form-group label { font-weight: 500; }

/* Room for a thumb on the text and WhatsApp links */
.contact-msg a {
  display: inline-block;
  padding: 8px 0;
}

.contact-note {
  display: block;
  margin-top: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 16px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--text);
  color: var(--beige);
  background: var(--navy);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input,
.form-group select { min-height: 44px; }

.form-group select option { background: var(--navy); color: var(--beige); }

/* The arrow on the service list, which appearance: none removes */
.form-group select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F2EDE7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

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

.form-group textarea::placeholder {
  color: var(--beige);
  opacity: 0.7;
}

.form-group select:has(option[value=""]:checked) {
  color: color-mix(in srgb, var(--beige) 70%, var(--navy));
}

.form-submit { width: 100%; }

.form-note,
.form-status { margin-top: 16px; }

/* Shown after the button is pressed, and given the focus so a screen reader reads it */
.form-status { outline: none; }

.site-footer { padding: 48px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--navy-light);
  margin-bottom: 24px;
}

.footer-brand { margin-bottom: 8px; }

.footer-col a,
.footer-col p { display: block; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.page-grid { grid-template-columns: 1.2fr 1fr; }

.page-section h2:not(:first-child) { margin-top: 48px; }

.page-list { margin: 0 0 16px 24px; }
.page-list:last-child { margin-bottom: 0; }
.page-list li + li { margin-top: 8px; }

.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--beige-dark);
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

/* Tick boxes on the "What to have ready" lists */
.check-list { list-style: none; margin-left: 0; }

.check-list label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}

.check-list input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background-color: var(--beige);
  cursor: pointer;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.check-list input:checked {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23F2EDE7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* A linked question or box stops below the fixed top bar */
.faq-item[id],
.pillar[id],
.page-section h2[id] { scroll-margin-top: calc(var(--bar) + 24px); }

/* Shows on navy and on beige */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--navy);
}

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

/* The page-not-found page is short, so its header fills the space above the footer. */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; display: flex; flex-direction: column; }
.page-404 .hero { flex: 1; }

@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-call { display: flex; }

  .nav-menu { display: block; }

  .nav-menu[open] .nav-mobile { display: flex; }

  .hero { padding: calc(var(--bar) + 48px) 0 48px; }

  .about,
  .services,
  .steps,
  .contact,
  .cta-band,
  .page-section { padding: 48px 0; }

  /* 48px of padding is less than the top bar, so a linked section stops lower */
  section[id] { scroll-margin-top: calc(var(--bar) - 24px); }

  .about-grid,
  .about-pillars,
  .contact-grid,
  .page-grid,
  .form-row { grid-template-columns: 1fr; }

  .about-grid { gap: 24px; }

  .about-photo {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }

  .footer-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-bottom { gap: 8px; }

  .footer-links { gap: 0 24px; }

  .footer-col a,
  .footer-links a { padding: 8px 0; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }

  .hero-actions,
  .cta-band-actions { flex-direction: column; }
}

/* The narrowest phones: the name drops to the text size so the bar fits on one line */
@media (max-width: 360px) {
  .nav-name { font-size: var(--text); }
}

/* Print: the text and the lists, without the menu, buttons, call band or footer */
@media print {
  .site-nav,
  .skip-link,
  .hero-actions,
  .cta-band,
  .site-footer,
  .contact-form,
  .service-icon,
  .service-more,
  .contact-item-icon { display: none !important; }

  *,
  *::before,
  *::after {
    background-color: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .hero {
    padding: 0 0 12pt !important;
    background-image: none !important;
  }

  .about,
  .services,
  .steps,
  .contact,
  .page-section { padding: 12pt 0 !important; }

  .page-grid,
  .about-grid,
  .contact-grid { display: block; }

  .page-aside { margin-top: 16pt; }

  .pillar,
  .step,
  .service-card {
    border: 1px solid #000 !important;
    break-inside: avoid;
  }

  a { text-decoration: none !important; }

  .check-list input { border-color: #000 !important; }
  .check-list input:checked { background-color: #000 !important; }
}
