/* =====================================================
   Project: WCO Accounting
   Page: QuickBooks Desktop to QuickBooks Online Conversion
   Author: Kelly Wellington
   Build Environment: VS Code (Local Development)
   Description:
   Master landing page styling for QBD → QBO conversion
   services targeting $5M–$20M service-based businesses.
   Includes responsive layout, authority styling,
   and conversion-focused UI elements.
   ===================================================== */
/* Version: 1.0
   Last Updated: 2026-02-17
*/
/* Must be first rule in style.css */

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

:root {
  --ink: #0f1020;
  --primary: #292562; /* deep indigo */
  --accent: #0c70c3; /* blue */
  --white: #ffffff;
  --gray: #e6e6e6;

  --font-head: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: Helvetica, Arial, sans-serif;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 900; /* “Black” feel */
  color: var(--primary);
  line-height: 1.1;
}

h1 {
  font-size: 1.85rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
    line-height: 1.25;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
  }

  h2 {
    font-size: 2.3rem;
  }

  h3 {
    font-size: 1.85rem;
  }
}

/* BASE h2 rule — confirm this exists exactly like this */
h2 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  font-size: 1.8rem;
  padding-top: 16px;
  margin-top: 0;
  position: relative;
}

/* Blue accent bar — applies to every h2 with class="border"
   Works on all devices; no media query needed.
   Requires position:relative on the base h2 rule (Step 2).
   --------------------------------------------------------- */
h2.border {
  padding-bottom: 40px; /* creates vertical space for the bar */
}

h2.border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 8px;
  background: var(--accent);
}

h3 {
  font-size: 1.65rem;
}

.hero h1,
.hero h2,
.hero h3 {
  color: #fff;
}
.hero-content h1,
.hero-content p,
.hero-content .btn-primary {
  max-width: 100%;
}

.hero-content p {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
}
.brand-line {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .hero-content p {
    font-size: 1.85rem;
    font-weight: 800;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
  }
  .brand-line {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
  }
}

/* Light blue bullet list with checkmarks */
ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  position: relative;
  margin-bottom: 0.75rem;
  /* checkmark width plus 16px gap */
  padding-left: 36px;
}

ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  line-height: 1;
}

/* Three-column industries section */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.industries-grid h3 {
  margin-top: 0;
}

.section.alt {
  background: var(--gray);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ADD THIS directly below it */
@media (max-width: 767px) {
  .container {
    width: 100%; /* full viewport width */
    padding-left: 20px; /* 20px breathing room on left */
    padding-right: 20px; /* 20px breathing room on right */
  }
}

/* Hero background images
   add 50px gap above hero via margin, remove vertical padding */
@media (max-width: 1000px) {
  .hero {
    background: url("images/qbo-conversion-image-sm.jpg") center bottom / cover
      no-repeat;
    color: white;
    padding: 0;
    position: relative;
    width: 90%;
    height: 700px;
    border-radius: 20px;
    margin: 50px auto 10px; /* keep top margin 50px; reduce bottom to 10px */
    box-shadow: 0px 2px 31px 0px rgba(0, 0, 0, 0.27);
  }

  .hero-content {
    /* keep hero copy readable on mobile:
       positioned toward lower third but not absolute overlaying too tightly */
    position: absolute;
    z-index: 2;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0, 0, 0, 0.5);
    padding: 0px 20px 15px 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 31px 0px rgba(0, 0, 0, 0.27);
  }
}

/* ── XS phones: ≤ 480px ──────────────────────────────
   Overrides the max-width: 1000px rule above.
   Swaps in xs image and repositions content overlay
   to occupy the bottom 2/3 of the hero.
   ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    background: url("images/qb-globe-cloud-computing-xs.jpg") center top / cover
      no-repeat;
    height: 600px; /* explicit height — overrides 700px from 1000px rule */
  }

  .hero-content {
    top: 33%; /* image visible in top 1/3               */
    bottom: 5%; /* small gap at hero floor                 */
    left: 50%; /* restore centering from 1000px rule      */
    right: auto; /* reset the right: 5% from previous block */
    width: 90%; /* restore from 1000px rule                */
    transform: translateX(-50%); /* restore from 1000px rule                */
    /* overflow-y removed — content fits in ~363px zone at 600px height    */
  }

  /* Scale h1 down so all content fits without overflow */
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.15;
  }
}

@media (min-width: 1001px) {
  .hero {
    background: url("images/quickbooks-desktop-to-quickbooks-online-graphic.jpg")
      center / cover no-repeat;
    color: white;
    padding: 20px 0 20px 0;
    position: relative;
    width: 1100px;
    border-radius: 20px;
    margin: 50px auto 10px; /* keep top margin 50px; reduce bottom to 10px */
  }

  .hero-content {
    width: 90%;
    position: relative;
    z-index: 1;
  }
  /* Replaces existing .brand-line rule */
  .hero-content p.brand-line {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
  }
}
/* reduce vertical spacing for sections so CTA sits closer */

/* =================== 
   -- Structure --
   =================== */

.section {
  padding: 40px 0;
}

/* Utility: add extra bottom spacing to specific sections when needed */
.section--extra-bottom {
  padding-bottom: 80px; /* use this class to increase bottom spacing */
}

.section.alt {
  background: #f4f4f4;
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

/* =====================================================
   Responsive Breakpoints
   ===================================================== */

/* ── Tablet: 768px – 1000px ── */
@media (min-width: 768px) and (max-width: 1000px) {
  /* Service cards: 3-col is too cramped at tablet — stack */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* About + Map: map needs full width at tablet */
  .one-third-two-thirds {
    grid-template-columns: 1fr;
  }

  /* Badge row: stays 3-col, badges are small */
  .badge-row {
    width: 70%; /* slightly wider than desktop 50% to compensate */
  }
}

/* ── Mobile: below 768px ── */
@media (max-width: 767px) {
  /* All multi-column grids collapse */
  .grid-3,
  .industries-grid,
  .two-column,
  .one-third-two-thirds {
    grid-template-columns: 1fr;
  }

  /* Badge row goes full width on mobile */
  .badge-row {
    width: 100%;
  }

  /* Map embed: reduce height on mobile */
  .map-embed iframe {
    height: 280px;
  }

  /* CTA banner: stack text and button */
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-banner h3 {
    font-size: 1.2rem;
  }
}

.btn-primary {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  margin-top: 15px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary::after {
  content: "›";
  font-size: 1.3rem;
  color: #fff;
}

/* CTA banner: total width 1100px, content constrained to 1040px */
.cta-banner {
  background: #292562;
  border-radius: 4px;
  padding: 30px;
  margin: 20px auto;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  gap: 40px;
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cta-banner h3 {
    font-size: 1.2rem;
  }
}

.cta-banner-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 3px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-banner-btn:hover {
  opacity: 0.9;
}

/* Industry images */
.industry-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
  box-shadow: 0px 2px 31px 0px rgba(0, 0, 0, 0.27);
  border-radius: 4px;
}

/* two-column and badges */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.badge-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.badge-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge-col a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge-img {
  height: 100px;
  width: auto;
  display: block;
}
.qb-logo {
  padding-top: 22px;
  width: 100%;
  height: auto;
  box-shadow: 0px 2px 31px 0px rgba(0, 0, 0, 0.27);
  border-radius: 4px;
}
/* 1/3 + 2/3 layout for locations map */
.one-third-two-thirds {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.city-list h3 {
  margin: 0 0 8px 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.map-embed {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}

/* =====================================================
   ADDITIONS — append to bottom of style.css
   ===================================================== */

/* ── Global box-sizing reset ─────────────────────────
   Prevents padding/border from causing overflow on any
   element. Add this ABOVE :root{} in your file.
   (Shown here for reference — move to top of file)
   ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Replace h2:first-of-type::after with class ──────
   DELETE h2:first-of-type::after from existing CSS.
   Use class="accent-underline border" on h2 elements
   where you want the blue underline accent bar.
   ─────────────────────────────────────────────────── */
h2.accent-underline {
  position: relative;
  padding-bottom: 40px; /* space for the accent bar */
}

h2.accent-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 8px;
  background: var(--accent);
}

/* ── CTA Banner: text wrapper + white text ───────────
   .cta-banner-text wraps h3 + ul + p inside the banner.
   Update existing .cta-banner h3 block: remove flex:1
   (the wrapper div handles flex stretch now).
   ─────────────────────────────────────────────────── */
.cta-banner-text {
  flex: 1;
}

.cta-banner h3 {
  /* UPDATED: removed flex:1 — now on .cta-banner-text */
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 12px 0;
}

.cta-banner p,
.cta-banner li {
  color: #fff;
}

/* ── Footer ──────────────────────────────────────────
   ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--white);
  padding: 24px 0;
}

footer p {
  color: var(--white);
  margin: 0;
  font-size: 0.875rem;
}

/* ── Responsive Breakpoints ──────────────────────────

   Tablet  768px–1000px
   Mobile  below 768px
   ─────────────────────────────────────────────────── */

/* Tablet */
@media (min-width: 768px) and (max-width: 1000px) {
  /* Service cards: 3-col too cramped at tablet — stack */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* About section map: needs full width at tablet */
  .one-third-two-thirds {
    grid-template-columns: 1fr;
  }

  /* Badge row: slightly wider on tablet */
  .badge-row {
    width: 70%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* All multi-column grids collapse to single column */
  .grid-3,
  .industries-grid,
  .two-column,
  .one-third-two-thirds {
    grid-template-columns: 1fr;
  }

  /* Badge row: full width on mobile */
  .badge-row {
    width: 100%;
  }

  /* Map: reduce height on small screens */
  .map-embed iframe {
    height: 260px;
  }

  /* CTA banner: stack text block and button vertically */
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-banner h3 {
    font-size: 1.2rem;
  }

  /* Hero: let content determine height on very small screens */
  .hero {
    min-height: 480px;
    height: auto;
  }
}

/* =====================================================
   Contact Form (WCO)
   ===================================================== */

.contact-section {
  background: var(--gray);
}

.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-logo {
  display: inline-block;
  height: auto;
  max-width: 240px;
  margin: 0 auto 18px;
}

.contact-title {
  margin: 0;
  padding-top: 0;
  /* REQUIRED: 65px space below heading */
  margin-bottom: 65px;
}

.contact-subtitle {
  margin: -45px auto 0; /* pulls subtitle back up since title has big bottom spacing */
  max-width: 70ch;
  color: rgba(15, 16, 32, 0.82);
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid rgba(41, 37, 98, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(41, 37, 98, 0.18);
  border-radius: 6px;
  padding: 12px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(12, 112, 195, 0.7);
  box-shadow: 0 0 0 4px rgba(12, 112, 195, 0.12);
}

.field--full {
  grid-column: 1 / -1;
}

.form-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-submit {
  justify-self: start;
  /* Light blue button using your accent */
  background: var(--accent);
}

.contact-meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(15, 16, 32, 0.82);
}

.contact-meta a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .contact-form {
    padding: 18px;
  }

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

  .contact-title {
    margin-bottom: 65px; /* keep your requirement on mobile too */
  }

  .contact-subtitle {
    margin-top: -45px;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================
   Footer
   ========================================= */

.site-footer {
  background: #292562; /* WCO dark blue */
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo img {
  max-height: 42px;
  width: auto;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}
