/* ============================================
   Good Order Bookkeeping Services
   ============================================ */

:root {
  --navy: #292e72;
  --navy-dark: #1e2255;
  --blue: #3785c6;
  --blue-light: #eaf3fb;
  --blue-lighter: #f4f9fd;
  --cream: #faf6f0;
  --white: #ffffff;
  --text: #333333;
  --text-soft: #5a5a5a;
  --border: #e6ddd0;
  --shadow: 0 10px 30px rgba(41, 46, 114, 0.1);
  --shadow-lg: 0 20px 50px rgba(41, 46, 114, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Karla', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

.top-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 50%, var(--navy) 100%);
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--blue);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
  position: relative;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link img {
  height: 66px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.main-nav a.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 30px;
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(55,133,198,0.3);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.main-nav a.nav-cta:hover {
  background: var(--navy);
  color: var(--white);
  border-bottom: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(41,46,114,0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(30,34,85,0.62), rgba(30,34,85,0.62)),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding: 100px 0 150px;
  text-align: center;
  overflow: hidden;
}

.hero h1,
.hero .tagline {
  color: var(--white);
}

.hero .tagline {
  color: rgba(255,255,255,0.88);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-blob.one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(55,133,198,0.16) 0%, rgba(55,133,198,0) 70%);
  top: -120px;
  right: -100px;
}

.hero-blob.two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(41,46,114,0.12) 0%, rgba(41,46,114,0) 70%);
  bottom: -60px;
  left: -80px;
}

.hero-watermark {
  position: absolute;
  top: 18%;
  right: 4%;
  width: 340px;
  opacity: 0.14;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-icon {
  width: 190px;
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 12px 20px rgba(41,46,114,0.18));
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero .tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 90px;
  fill: var(--white);
  z-index: 1;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 17px 36px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 50px;
}

.title-accent {
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  border-radius: 4px;
  margin: 18px auto 0;
}

.title-accent.left {
  margin: 18px 0 0;
}

/* ---------- Services ---------- */
.services {
  background: var(--white);
}

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

.service-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 42px 32px 36px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue);
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--navy);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-soft);
  margin: 0;
}

/* ---------- About ---------- */
.about {
  overflow: hidden;
}

.about-watermark {
  position: absolute;
  bottom: -8%;
  left: -6%;
  width: 320px;
  opacity: 0.08;
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-photo {
  position: relative;
  text-align: center;
}

.about-photo::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 264px;
  height: 264px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-lighter));
  border-radius: 50%;
  z-index: 0;
}

.about-photo img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  width: 240px;
  height: 240px;
  margin: 0 auto 14px;
  box-shadow: var(--shadow);
}

.about-photo .photo-caption {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 22px;
}

.about-text p {
  margin-bottom: 18px;
}

.pull-quote {
  position: relative;
  padding: 6px 20px 6px 46px;
  margin: 34px 0;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--navy);
  font-size: 1.1rem;
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: -8px;
  font-family: 'Lora', Georgia, serif;
  font-style: normal;
  font-size: 3.4rem;
  color: var(--blue);
  opacity: 0.4;
  line-height: 1;
}

.pattern-divider {
  position: relative;
  height: 60px;
  background: var(--blue-light);
  overflow: hidden;
}

.pattern-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/icon-transparent.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: 76px auto;
  opacity: 0.3;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 14px;
}

.pain-list {
  background: var(--blue-light);
  border-radius: 14px;
  padding: 26px 30px;
  margin: 26px 0;
  list-style: none;
}

.pain-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.pain-list li:last-child {
  margin-bottom: 0;
}

.pain-list li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.signature {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--navy);
  margin-top: 26px;
  font-size: 1.15rem;
}

.about-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 70px;
  fill: var(--navy);
  z-index: 1;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.contact-watermark {
  position: absolute;
  top: -6%;
  right: -4%;
  width: 300px;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact .section-eyebrow {
  color: #9db6e6;
}

.contact .section-title,
.contact h3 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-info p {
  color: #d7ddf3;
}

.contact-info .detail {
  margin-bottom: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--blue);
}

.contact-info .detail strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
  font-family: 'Lora', Georgia, serif;
}

.contact-info a {
  color: #bcd2f5;
}

.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

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

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

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

.contact-form .btn {
  width: 100%;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c1e0;
  padding: 44px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer img {
  height: 44px;
  width: auto;
  margin: 0 auto 18px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-footer a {
  color: #d7ddf3;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-photo {
    text-align: left;
  }
  .about-photo::before {
    left: 120px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-watermark,
  .about-watermark,
  .contact-watermark {
    display: none;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .main-nav li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-icon {
    width: 130px;
  }
  section {
    padding: 60px 0;
  }
}
