/* =====================================================
   DPC Bookkeeper — Global Styles
   Brand: Poppins, #1565C0 blue, clean modern design
   ===================================================== */

:root {
  --blue:        #1565C0;
  --blue-dark:   #0D47A1;
  --blue-light:  #E3F2FD;
  --blue-mid:    #BBDEFB;
  --dark:        #1A1A2E;
  --medium:      #4A4A5A;
  --light-bg:    #F5F7FA;
  --white:       #FFFFFF;
  --border:      #E0E4ED;
  --shadow:      0 2px 16px rgba(21,101,192,0.10);
  --shadow-lg:   0 8px 40px rgba(21,101,192,0.14);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.22s ease;
  --nav-height:  72px;
  --max-width:   1140px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--dark); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; color: var(--dark); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.3; color: var(--dark); }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--medium); font-size: 1rem; line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--blue { background: var(--blue); }
.section--light { background: var(--light-bg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(21,101,192,0.3);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(21,101,192,0.06);
  height: var(--nav-height);
  display: flex; align-items: center;
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.nav__logo-mark {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav__logo-mark svg { width: 22px; height: 22px; }
.nav__logo-text strong {
  display: block;
  font-size: 1rem; font-weight: 800; color: var(--dark); line-height: 1.1;
}
.nav__logo-text span {
  font-size: 0.65rem; color: var(--medium); font-weight: 400; letter-spacing: 0.04em;
}
.nav__links {
  display: flex; align-items: center; gap: 0.2rem;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 0.875rem; font-weight: 500; color: var(--medium);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--blue); background: var(--blue-light); }
.nav__cta { margin-left: 1rem; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border: none; background: none;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: all var(--transition);
}
.nav__mobile {
  display: none;
  position: absolute; top: var(--nav-height); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow);
}
.nav__mobile.open { display: flex; }
.nav__mobile a { padding: 10px 14px; font-weight: 500; color: var(--medium); border-radius: var(--radius); }
.nav__mobile a:hover { color: var(--blue); background: var(--blue-light); }
.nav__mobile .btn { margin-top: 0.5rem; text-align: center; justify-content: center; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a6b 100%);
  padding: 96px 0 80px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, transparent 0%, rgba(21,101,192,0.4) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 660px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero__sub { font-size: 1.15rem; color: rgba(255,255,255,0.82); margin-bottom: 2.25rem; max-width: 540px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem; color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.hero__badge::before { content: '✦'; color: var(--blue-mid); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue-mid); }
.card__icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.93rem; }

/* ---- Service blocks ---- */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block__icon {
  width: 56px; height: 56px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.service-block__icon svg { width: 28px; height: 28px; }
.service-block__header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.service-block__header h3 { margin: 0; }
.service-block ul { padding-left: 0; margin: 1rem 0 1.5rem; }
.service-block ul li {
  padding: 6px 0 6px 1.5rem;
  position: relative; font-size: 0.93rem; color: var(--medium);
}
.service-block ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue); font-weight: 700;
}

/* ---- Checklist ---- */
.checklist { padding: 0; }
.checklist li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 8px 0; font-size: 0.93rem; color: var(--medium);
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ---- Steps ---- */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute; top: 32px; left: 10%; right: 10%;
  height: 2px; background: var(--blue-mid);
}
.step {
  flex: 1; text-align: center; padding: 0 1.5rem; position: relative; z-index: 1;
}
.step__num {
  width: 64px; height: 64px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-mid);
}
.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; }

/* ---- Accordion (FAQ) ---- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item:last-child { border-bottom: none; }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: 'Poppins', sans-serif; font-size: 0.97rem; font-weight: 600; color: var(--dark);
  transition: background var(--transition);
}
.accordion__trigger:hover { background: var(--blue-light); }
.accordion__trigger.open { color: var(--blue); background: var(--blue-light); }
.accordion__icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 0.9rem; color: var(--medium);
}
.accordion__trigger.open .accordion__icon {
  background: var(--blue); color: var(--white); transform: rotate(45deg);
}
.accordion__body { display: none; padding: 0 1.5rem 1.25rem; }
.accordion__body.open { display: block; }
.accordion__body p { font-size: 0.93rem; color: var(--medium); }

/* ---- Table ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th {
  background: var(--blue); color: var(--white);
  padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.85rem;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--medium); }
.data-table tr:nth-child(even) td { background: var(--light-bg); }
.data-table td:first-child { font-weight: 600; color: var(--dark); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--blue);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---- Testimonial ---- */
.testimonial {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  border-left: 4px solid var(--blue);
}
.testimonial__quote { font-size: 1rem; color: var(--dark); font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-weight: 700; font-size: 0.9rem;
}
.testimonial__name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.testimonial__role { font-size: 0.8rem; color: var(--medium); }

/* ---- Trust bar ---- */
.trust-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-bar__items { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-bar__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--medium); }
.trust-bar__item svg { width: 20px; height: 20px; color: var(--blue); }

/* ---- Page header (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a6b 100%);
  padding: 64px 0 56px;
  color: var(--white);
}
.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 580px; }

/* ---- FAQ Group heading ---- */
.faq-group { margin-bottom: 3rem; }
.faq-group__title {
  font-size: 1rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-light);
}

/* ---- Contact form ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-checkboxes { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; cursor: pointer; }
.form-checkbox input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; }

/* ---- Calendar embed wrapper ---- */
.calendly-wrapper {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; min-height: 600px;
}

/* ---- Footer ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand p { font-size: 0.88rem; margin-top: 1rem; max-width: 280px; }
.footer__logo { display: flex; align-items: center; gap: 0.75rem; }
.footer__logo-mark {
  width: 34px; height: 34px; background: var(--blue); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.footer__logo strong { font-size: 0.95rem; font-weight: 800; color: var(--white); }
.footer__logo span { font-size: 0.6rem; color: rgba(255,255,255,0.55); }
.footer__col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer__bottom p { font-size: 0.8rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer__legal a:hover { color: var(--white); }

/* ---- Blog cards ---- */
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card__thumb {
  height: 180px; background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.blog-card__thumb svg { width: 48px; height: 48px; opacity: 0.5; }
.blog-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag { font-size: 0.73rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.blog-card p { font-size: 0.88rem; flex: 1; }
.blog-card__link { margin-top: 1.25rem; font-size: 0.88rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 0.35rem; }
.blog-card__link:hover { gap: 0.6rem; }

/* ---- Inline CTA block ---- */
.inline-cta {
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin: 3rem 0;
}
.inline-cta h3 { margin-bottom: 0.5rem; color: var(--dark); }
.inline-cta p { font-size: 0.93rem; margin-bottom: 1.25rem; }

/* ---- Value prop icon row ---- */
.icon-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.icon-item { display: flex; gap: 1rem; align-items: flex-start; flex: 1; min-width: 220px; }
.icon-item__icon {
  width: 46px; height: 46px; background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue);
}
.icon-item__icon svg { width: 24px; height: 24px; }
.icon-item h4 { font-size: 0.97rem; margin-bottom: 0.3rem; }
.icon-item p { font-size: 0.88rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; gap: 1.5rem; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .trust-bar__items { gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
