/* ===========================================================
   Down to the Decimal — Bookkeeping Services
   Static rebuild of the WordPress (OneTone theme) site.
   =========================================================== */

:root {
  --font-heading: 'Abel', Helvetica, Arial, sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-contact: 'Alegreya', Georgia, serif;

  --color-accent: #37cadd;       /* teal link / hover / focus color */
  --color-band-bg: #aa2931;      /* thin red band under hero */
  --color-hero-fallback: #8e1b39;/* shows for an instant before video loads */

  --overlay-services: rgba(0, 0, 0, 0.62);
  --overlay-team: rgba(0, 0, 0, 0.23);
  --overlay-about: rgba(0, 0, 0, 0.62);
  --overlay-testimonials-heading: rgba(119, 29, 44, 0.75);
  --overlay-contact: rgba(119, 29, 44, 0.75);
  --card-bg-testimonials: rgba(255, 255, 255, 0.87);

  --text-about: #f2f2f2;
  --text-muted: #666666;
  --text-muted-2: #555555;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-body); margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--color-accent); text-decoration: none; }
a:hover, a:active { color: var(--color-accent); }
::selection { background: var(--color-accent); color: #fff; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.clear { clear: both; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Fixed full-page video background ---------- */
#video-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--color-hero-fallback);
}
#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header .main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transition: padding 0.3s ease;
}
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.site-header.scrolled .main-header { padding: 12px 0; }

.logo-box a { display: block; line-height: 1.1; }
.site-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.site-tagline {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
}
.site-header.scrolled .site-name,
.site-header.scrolled .site-tagline { color: #2b2b2b; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.2s ease;
}
.site-header.scrolled .main-nav a { color: #3d3d3d; }
.main-nav a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 26px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.site-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: background 0.3s ease;
}
.site-header.scrolled .site-nav-toggle span { background: #2b2b2b; }

/* ---------- Sections (shared) ---------- */
.section {
  position: relative;
  z-index: 1;
}
.section-inner { position: relative; padding: 70px 0; }
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
  margin: 0 0 40px;
}
.section-title.no-margin { margin-bottom: 0; }

/* ---------- Hero ---------- */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 100px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 9vw, 114px);
  line-height: 0.95;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(22px, 5vw, 42px);
  color: #fff;
  margin-top: 40px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-phone {
  display: block;
  margin-top: 6px;
  color: inherit;
  text-decoration: none;
}
.hero-phone:hover { text-decoration: underline; }
.hero-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 45px;
}
.hero-social a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}
.video-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.video-controls button {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}
.video-controls button:hover { background: rgba(0, 0, 0, 0.55); }

/* ---------- Thin band (Customized to fit) ---------- */
#customized {
  background-color: var(--color-band-bg);
  padding: 46px 0;
}
#customized .section-title {
  color: #fff;
  font-size: clamp(22px, 4vw, 35px);
  margin: 0;
}

/* ---------- Services ---------- */
#services { background-color: var(--overlay-services); }
#services .section-title { color: #fff; font-size: clamp(30px, 5vw, 48px); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-box { text-align: center; color: #fff; }
.service-box .icon-box {
  font-size: 40px;
  margin-bottom: 18px;
  color: #fff;
}
.service-box h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.service-box p {
  font-size: 14px;
  line-height: 1.8;
  color: #f2f2f2;
}
.service-box.has-list ul {
  text-align: left;
  display: inline-block;
  font-size: 14px;
  line-height: 1.9;
  color: #f2f2f2;
}
.service-box.has-list li::before {
  content: "\2022";
  color: var(--color-accent);
  display: inline-block;
  width: 1em;
}

/* ---------- Team ---------- */
#team { background-color: var(--overlay-team); }
#team .section-title { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-grid.single-member {
  grid-template-columns: 1fr;
  justify-items: center;
}
.team-grid.single-member .person-box { max-width: 480px; }
.team-grid.single-member .person-photo {
  width: 200px;
  height: 200px;
}
.person-box { text-align: center; color: #fff; }
.person-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.6);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-box h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 4px;
}
.person-box .person-title {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.person-box p {
  font-size: 14px;
  line-height: 1.8;
  color: #f0f0f0;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- About ----------
   No background image of its own: this section sits directly over the
   fixed looping video, with a dark semi-transparent panel in front of
   it (same treatment as Services) so the text stays readable while the
   video still shows through. */
#about {
  background-color: var(--overlay-about);
}
#about .section-inner { padding: 130px 0; }
#about .section-title { color: #dcdcdc; font-size: clamp(32px, 5vw, 48px); margin-bottom: 55px; }
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 70px;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}
.about-grid h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 20px;
}
.about-grid p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-about);
}
.biz-info-list li {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-about);
  margin-bottom: 14px;
}
.biz-info-list i {
  width: 22px;
  color: var(--text-about);
}
.biz-info-list a {
  color: inherit;
  text-decoration: none;
}
.biz-info-list a:hover { text-decoration: underline; }

/* ---------- Testimonials heading band ---------- */
#testimonials {
  background-color: var(--overlay-testimonials-heading);
  padding: 60px 0;
  text-align: center;
}
#testimonials .section-title { color: #fff; font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
#testimonials .testimonials-subtitle {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin: 0;
}

/* ---------- Testimonials cards ---------- */
#testimonial-cards {
  background-color: var(--card-bg-testimonials);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
@media (max-width: 760px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-box {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
.testimonial-quote {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  position: relative;
  padding-left: 6px;
}
.testimonial-quote::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 42px;
  color: var(--color-accent);
  line-height: 0;
  margin-right: 4px;
  vertical-align: -8px;
}
.testimonial-vcard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b3b3;
  font-size: 24px;
}
.testimonial-author .name {
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  color: #333;
  margin: 0;
}
.testimonial-author .title {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
#contact {
  background-image: url('../images/about-bg.jpg');
  background-color: var(--overlay-contact);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}
#contact .section-title { color: #000000; font-size: clamp(26px, 4vw, 36px); }
#contact .section-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: #000000;
  margin-bottom: 40px;
}
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--font-contact);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  font-family: var(--font-contact);
  font-size: 15px;
  color: var(--text-muted);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-submit {
  display: inline-block;
  padding: 13px 40px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.contact-submit:hover { background: rgba(255, 255, 255, 0.2); }
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}
.site-footer a { color: #fff; }
.footer-admin-link { margin-left: 10px; display: inline-block; }
.footer-admin-link a {
  color: #ffffff;
  text-decoration: none;
  background: #c0392b;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-admin-link a:hover { background: #a5311f; }
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* ---------- Call now button (mobile only) ---------- */
#call-now-button { display: none; }
@media screen and (max-width: 650px) {
  #call-now-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 15px;
    right: 20px;
    z-index: 2147483647;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: rgb(0, 187, 0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 22px;
  }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 920px) {
  .site-nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a {
    color: #3d3d3d;
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .site-header.scrolled .main-nav a,
  .main-nav a { color: #3d3d3d; }
}

/* ---------- Scroll-reveal animation system ---------- */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-anim="fadeInUp"] { transform: translateY(40px); }
.reveal[data-anim="fadeInDown"] { transform: translateY(-40px); }
.reveal[data-anim="fadeInLeft"] { transform: translateX(-50px); }
.reveal[data-anim="fadeInRight"] { transform: translateX(50px); }
.reveal[data-anim="zoomIn"] { transform: scale(0.85); }
.reveal[data-anim="fadeIn"] { transform: none; }
.reveal[data-anim="bounceInDown"] { transform: translateY(-60px); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible[data-anim="bounceInDown"] {
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.34,1.56,.64,1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
