/* Page Specific Styling (About Page)
  Brand Colors: Dark Blue #142e49, Orange #f19e3b, White #ffffff, Gray #a7a8a7
  Controlled Hover Blue: #3b82f6
*/

/* Inherit Root Variables from Homepage/Service for Consistency */
:root {
  --dark-blue: #142e49;
  --dark-blue-hover: #0b1a2a;
  --orange: #f19e3b;
  --orange-bright: #f5b364;
  --orange-dark: #d8872a;
  --hover-blue: #3b82f6;
  --white: #ffffff;
  --gray: #a7a8a7;
  --light-gray: #f8fafc;
  --border-light: #e2e8f0;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-radius: 8px;
  --shadow-subtle: 0 4px 20px rgba(20, 46, 73, 0.03);
  --shadow-hover: 0 12px 30px rgba(20, 46, 73, 0.08);
  --shadow-glow: 0 8px 25px rgba(241, 158, 59, 0.2);
  --shadow-glow-blue: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* Base Utility Classes */
.container { max-width: 1320px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.max-w-content { max-width: 1100px; margin: 0 auto; }
.align-center { align-items: center; }
.text-orange { color: var(--orange) !important; font-weight: 600; }
.text-white { color: var(--white) !important; }

/* Typography */
h1, h2, h3 { font-family: inherit; color: var(--dark-blue); line-height: 1.25; letter-spacing: -0.025em; }
.section-title { font-size: 2.75rem; max-width: 900px; margin: 0 auto 1.5rem auto; font-weight: 700; position: relative; display: block; text-align: center; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; width: 108px; height: 3px; background-color: var(--orange); border-radius: 2px; transform: translateX(-50%); }
.text-center.section-title::after { left: 50%; transform: translateX(-50%); }
.section-dark .section-title::after { background-color: rgba(241, 158, 59, 0.8); }
.section-intro { font-size: 1.25rem; color: var(--text-muted); max-width: 65ch; margin: 0 auto 3.5rem auto; line-height: 1.7; text-align: left; }
p { line-height: 1.75; color: var(--text-main); font-size: 1.1rem; margin-bottom: 1.25rem; max-width: none; }

/* Sections */
section { padding: 110px 0; position: relative; }
.section-light { background: radial-gradient(circle at top right, rgba(47, 128, 237, 0.03) 0%, var(--light-gray) 60%); }
.section-dark { background-color: var(--dark-blue); background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03) 0%, transparent 60%); color: var(--white); }

/* Buttons (Matching Global Styles) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; min-height: 54px; font-size: 1.05rem; line-height: 1.2; white-space: nowrap; font-weight: 600; text-decoration: none !important; border-radius: 6px; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; z-index: 1; }
.btn-primary { background-color: var(--orange); color: var(--white) !important; box-shadow: 0 4px 15px rgba(241, 158, 59, 0.25); text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform: skewX(-20deg); transition: all 0.6s ease; z-index: -1; }
.btn-primary:hover { background-color: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:hover::after { left: 150%; }
.btn-secondary { background-color: transparent; color: var(--dark-blue) !important; border-color: var(--dark-blue); box-shadow: 0 4px 15px rgba(20, 46, 73, 0.05); }
.btn-secondary:hover { background-color: var(--white); color: var(--dark-blue) !important; border-color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.section-dark .btn-secondary { border-color: rgba(255, 255, 255, 0.6); color: var(--white) !important; }
.section-dark .btn-secondary:hover { background-color: var(--white); color: var(--dark-blue) !important; border-color: var(--white); box-shadow: var(--shadow-glow-blue); }

/* 1. About Hero */
.about-page-wrapper .about-hero {
  padding: 110px 0 120px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  background-color: #0f2439;
}

/* Remove oversized white gap between About hero and first content section */
.about-page-wrapper .about-hero + .about-team {
  margin-top: 0;
  padding-top: clamp(56px, 7vw, 88px);
}

.about-page-wrapper .about-hero .hero-container {
  min-height: 820px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-page-wrapper .about-hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.about-page-wrapper .about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 36, 58, 0.62) 0%, rgba(15, 47, 74, 0.54) 100%);
  pointer-events: none;
  z-index: 1;
}
.about-hero .hero-subtitle,
.page-hero .section-intro { text-align: center; }
.hero-container h1 { font-size: 3.8rem; color: var(--white); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; margin-left: auto; margin-right: auto; max-width: 55ch; }
.hero-actions { display: flex; gap: 1rem; }

@media (min-width: 1400px) {
  .about-page-wrapper .about-hero .hero-container {
    min-height: 880px;
  }
}

@media (max-width: 1024px) {
  .about-page-wrapper .about-hero .hero-container {
    min-height: 680px;
  }
}

@media (max-width: 767px) {
  .about-page-wrapper .about-hero {
    padding: 90px 0 80px;
  }

  .about-page-wrapper .about-hero .hero-container {
    min-height: 500px;
  }
}

/* 2. Team Story Section */
.about-team-story .section-intro { margin-bottom: 0; }
.about-story-logo { width: clamp(160px, 20vw, 220px); max-width: 100%; height: auto; margin: 0 auto 1.5rem; display: block; }

/* 3. Team Section */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4rem; }
.team-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--border-radius); box-shadow: var(--shadow-subtle); overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; position: relative; }
.team-image { width: 100%; height: 280px; object-fit: cover; object-position: center top; border-bottom: 1px solid var(--border-light); display: block; }
.team-card-content { padding: 2.5rem 2rem; flex-grow: 1; }
.team-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; transition: color 0.3s ease;}
.team-title { font-size: 0.95rem; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--orange); }
.team-card-content p:last-child { margin-bottom: 0; font-size: 1.05rem; }

/* Hover Effects (Matching Service Page) */
.hover-lift { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover), var(--shadow-glow-blue); border-color: rgba(47, 128, 237, 0.3); }
.hover-lift::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; z-index: 10; }
.hover-lift:hover::before { transform: scaleX(1); }
.team-card.hover-lift:hover h3 { color: var(--hover-blue); }

/* 4. Mission Section */
.about-mission { background-color: var(--white); padding: 100px 0; }
.mission-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.section-title-left { text-align: left; margin: 0 0 1.25rem 0; }
.section-title-left::after { left: 0; transform: none; }
.about-mission .section-intro { max-width: 100%; font-size: 1.3rem; margin: 0; text-align: left; }
.mission-right h3 { font-size: 1.6rem; margin: 0 0 1rem; color: var(--dark-blue); }
.mission-principles { list-style: none; margin: 0; padding: 0; }
.mission-principles li { position: relative; padding-left: 1.5rem; margin-bottom: 0.9rem; font-size: 1.08rem; line-height: 1.6; color: var(--text-main); }
.mission-principles li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; color: var(--orange); font-weight: 700; }
.mission-principles li:last-child { margin-bottom: 0; }

/* 5. Trust Section */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.trust-card { background: var(--white); padding: 2.5rem; border-radius: var(--border-radius); border: 1px solid var(--border-light); box-shadow: var(--shadow-subtle); border-left: 4px solid var(--dark-blue); transition: all 0.4s ease; }
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover), var(--shadow-glow-blue); border-left-color: var(--hover-blue); }
.trust-card h3 { font-size: 1.4rem; margin-bottom: 1rem; transition: color 0.3s ease; }
.trust-card:hover h3 { color: var(--hover-blue); }
.trust-card p { margin: 0; }

/* 6. Local Expertise Section */
.about-local { padding: 100px 0; }

/* 7. Services Preview Section */
.services-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-preview-card { display: block; text-decoration: none; background: var(--white); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border-light); box-shadow: var(--shadow-subtle); text-align: center; position: relative; overflow: hidden; }
.service-preview-card h3 { font-size: 1.25rem; margin: 0; color: var(--dark-blue); transition: color 0.3s ease; }
.service-preview-card:hover h3 { color: var(--hover-blue); }

/* 8. CTA Section */
.about-cta { padding: 120px 0; text-align: center; }
.about-cta h2::after { display: none; } /* Remove underline for final CTA */


@media (max-width: 900px) {
  .mission-layout { grid-template-columns: 1fr; gap: 2rem; }
}
/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hover-lift, .team-card, .trust-card, .btn-primary::after { transform: none !important; }
}


.page-hero-inner,
.page-section .container,
.page-cta .container {
  max-width: 1280px;
}

.about-mission p,
.about-trust p,
.about-services p,
.contact-connect-section p,
.faq-intro-section p,
.faq-decision-section p {
  max-width: none;
}

/* Standard page sections */
.page-hero {
  padding: 145px 0 130px;
}

.page-hero-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.12;
}

.page-hero .section-intro {
  margin-bottom: 2.25rem;
  max-width: 62ch;
}

.page-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-section {
  padding: 95px 0;
}

.page-section-light {
  background: radial-gradient(circle at top right, rgba(47, 128, 237, 0.03) 0%, var(--light-gray) 60%);
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.page-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  padding: 2rem;
  position: relative;
}

.page-card h3,
.page-card h4 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.page-card h4 {
  font-size: 1.2rem;
}

.page-card p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.faq-category {
  margin-top: 2.25rem;
}

.faq-category h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 0.9rem;
}

.faq-category h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
}

.page-checklist {
  margin: 0;
  padding: 2rem 2rem 2rem 3.2rem;
}

.page-checklist li {
  color: var(--text-main);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 1.06rem;
}

.page-checklist li:last-child {
  margin-bottom: 0;
}

.page-cta {
  padding: 110px 0;
}

.page-cta .section-title::after {
  display: none;
}

@media (max-width: 1024px) {
  .page-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-section,
  .page-cta {
    padding: 80px 0;
  }

  .page-hero {
    padding: 115px 0 95px;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions .btn {
    width: 100%;
  }

  .page-grid-4,
  .page-card-grid {
    grid-template-columns: 1fr;
  }

  .page-card,
  .page-checklist {
    padding: 1.5rem;
  }

  .faq-category h3 {
    font-size: 1.35rem;
  }
}


/* Page-specific static hero images; shared sizing and typography live in style.css. */
/* FAQ Accordion Redesign */
.faq-hero {
  background: linear-gradient(135deg, #0f2740 0%, #142e49 55%, #1b3e63 100%);
}

.page-hero.shared-static-hero {
  background-image:
    linear-gradient(180deg, rgba(9, 36, 58, 0.46) 0%, rgba(9, 36, 58, 0.58) 100%),
    url("../images/hero/business-accounting-consultation.webp");
}

.faq-hero.shared-static-hero {
  background-image:
    linear-gradient(180deg, rgba(9, 36, 58, 0.46) 0%, rgba(9, 36, 58, 0.58) 100%),
    url("../images/hero/blog-library-one.webp");
}

.faq-intro-section {
  padding-bottom: 60px;
}


.faq-decision-section {
  padding-top: 20px;
}

.faq-decision-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 46, 73, 0.08);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.faq-decision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.faq-decision-card .section-intro {
  margin-bottom: 2rem;
}

.faq-featured {
  padding-top: 20px;
}

.faq-featured-card {
  border-top: 3px solid rgba(241, 158, 59, 0.75);
}

.faq-accordion-group {
  margin-top: 2.5rem;
}

.faq-accordion-group h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  position: relative;
}

.faq-accordion-group h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
}

.faq-accordion-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.2rem;
  font-weight: 700;
  color: var(--dark-blue);
  position: relative;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.faq-accordion-item summary::-webkit-details-marker {
  display: none;
}


.faq-accordion-item:hover {
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 12px 30px rgba(20, 46, 73, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.18), 0 0 20px var(--ix-blue-glow);
  transform: translateY(-1px);
}

.faq-accordion-item:hover summary {
  color: var(--hover-blue);
}

.faq-accordion-item summary::after {
  content: '+';
  position: static;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 1.25rem;
  flex: 0 0 auto;
  line-height: 1;
}

.faq-accordion-item[open] {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 14px 32px rgba(20, 46, 73, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.24), 0 0 22px var(--ix-blue-glow);
  transform: translateY(0);
}

.faq-accordion-item[open] summary {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.03));
}

.faq-accordion-item[open] summary::after {
  content: '−';
}

.faq-accordion-content {
  padding: 0 1.2rem 1.2rem;
}

.faq-accordion-content p {
  margin-bottom: 0;
  max-width: none;
}

.faq-accordion-section {
  padding-bottom: 48px;
}

@media (min-width: 992px) {
  .faq-accordion-section .container {
    max-width: 1360px;
    margin: 0 auto;
  }

  .faq-accordion-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    gap: 24px 30px;
    align-items: start;
  }

  .faq-accordion-group h3 {
    grid-column: 1 / -1;
    margin-bottom: 0.2rem;
  }

  .faq-accordion-item {
    margin-bottom: 0;
    height: auto;
    align-self: start;
  }
}

/* Contact page enhancements */

.contact-documents-section {
  padding-bottom: 34px;
}

.contact-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.contact-documents-grid p {
  margin: 0;
}

.contact-documents-grid p + p {
  margin-top: 1rem;
}


.contact-connect-section {
  padding: 86px 0;
}

.contact-section-container {
  max-width: 1240px;
  padding-left: clamp(20px, 3.5vw, 44px);
  padding-right: clamp(20px, 3.5vw, 44px);
}

.contact-options-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.contact-two-column-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(2rem, 3vw, 3rem);
}

.contact-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-option-card p {
  margin: 0;
}

.contact-form-card {
  grid-column: span 1;
}

html:has(#contact-form) {
  scroll-behavior: smooth;
}

#contact-form {
  scroll-margin-top: 130px;
}

.contact-details-card {
  align-self: start;
}

.contact-details-card h4 {
  font-size: 1.1rem;
  margin: 0.6rem 0 0;
}

.contact-reasons-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.contact-reasons-list li {
  color: var(--text-main);
  line-height: 1.55;
}

.contact-details-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--dark-blue);
  font-size: 0.96rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(241, 158, 59, 0.85);
  box-shadow: 0 0 0 3px rgba(241, 158, 59, 0.16);
}

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

.contact-form .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


.ghl-form-embed {
  width: 100%;
  min-height: 820px;
  height: 100%;
  overflow: hidden;
}

.ghl-form-embed iframe {
  display: block;
  width: 100%;
  min-height: 820px;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-premium-card {
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(20, 46, 73, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(20, 46, 73, 0.07);
}

.service-premium-card h3 {
  margin-bottom: 0.6rem;
}

.service-premium-card p {
  margin: 0;
  max-width: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-local-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 46, 73, 0.08);
}

.contact-local-card .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-local-card p {
  max-width: 80ch;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .contact-section-container {
    max-width: 100%;
  }

  .contact-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-two-column-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ghl-form-embed,
  .ghl-form-embed iframe {
    min-height: 760px;
  }

  .contact-form-card {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .contact-options-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    grid-column: auto;
  }

  .contact-details-actions .btn {
    width: 100%;
  }
}
