/* ============================================
   Apex Business Solutions LLC — Main Stylesheet
   ============================================ */

:root {
  --color-primary: #1a2a6c;
  --color-secondary: #2980b9;
  --color-accent: #21d4c8;
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1140px;
  --header-height: 110px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

/* === Container === */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === Header === */
.site-header {
  background: var(--color-bg);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  overflow: visible;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo {
  position: relative;
  z-index: 101;
}

.logo img {
  height: 200px;
  width: auto;
  padding: 15px 0 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-primary);
}

.nav-links .btn-portal {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-links .btn-portal::after {
  display: none;
}

.nav-links .btn-portal:hover {
  background: var(--color-secondary);
  color: #fff;
}

.nav-links .btn-portal.active {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: #1abfb4;
  color: var(--color-primary);
}

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero > .container > p {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-hero-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.hero-phone {
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-phone i {
  margin-right: 0.4rem;
}

.hero-phone a {
  color: #fff;
  font-weight: 700;
}

.hero-phone a:hover {
  color: var(--color-accent);
}

/* === Section Defaults === */
section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* === Service Cards (Home) === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(26, 42, 108, 0.14);
  transform: translateY(-6px);
}

.card-icon-box {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 16px;
  font-size: 1.8rem;
  color: #fff;
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* === Trust Section === */
.trust {
  background: var(--color-bg-alt);
}

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

.trust-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e8ecf1;
  transition: box-shadow 0.3s, transform 0.3s;
}

.trust-card:hover {
  box-shadow: 0 8px 24px rgba(26, 42, 108, 0.1);
  transform: translateY(-3px);
}

.trust-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.trust-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.trust-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
  background: var(--color-bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.step h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.step p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-divider {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-top: 1.25rem;
  flex-shrink: 0;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-banner .btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner .phone-number {
  font-size: 1.4rem;
  font-weight: 700;
}

.cta-banner .phone-number i {
  margin-right: 0.4rem;
}

.cta-banner .phone-number a {
  color: #fff;
}

.cta-banner .phone-number a:hover {
  color: var(--color-accent);
}

/* === Services Page === */
.services-detail {
  padding: 4rem 0;
}

.service-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(26, 42, 108, 0.06);
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(26, 42, 108, 0.12);
}

.service-card-icon {
  font-size: 3rem;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 16px;
  color: #fff;
}

.service-card-content h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.service-card-content > p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  max-width: 650px;
}

.service-card-content h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-radius: 8px;
  transition: background 0.2s;
}

.service-item:hover {
  background: #e8f0fe;
}

.service-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.service-item span {
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
}

.placeholder-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem;
  border-radius: 4px;
  color: #555;
  font-style: italic;
  margin-bottom: 2rem;
}

.placeholder-notice i {
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .service-card {
    flex-direction: column;
    gap: 1.5rem;
  }

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

/* === Page Header (inner pages) === */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* === Contact Form === */
.contact-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(26, 42, 108, 0.08);
}

.contact-form h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e8ecf1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-bg-alt);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(33, 212, 200, 0.12);
  background: #fff;
}

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

.form-group .error-msg {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.contact-info-sidebar {
  padding-top: 1rem;
}

.contact-info-sidebar h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-accent);
}

.contact-detail strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail p,
.contact-detail a {
  color: #555;
  font-size: 1.05rem;
}

.contact-detail a {
  color: var(--color-secondary);
  font-weight: 600;
}

.contact-detail a:hover {
  color: var(--color-primary);
}

/* === About Page === */
.about-content {
  max-width: 980px;
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.about-photo {
  margin: 0;
  max-width: 100%;
  text-align: center;
  position: relative;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  z-index: 0;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(26, 42, 108, 0.22);
  border: 4px solid #fff;
  position: relative;
  z-index: 1;
}

.about-photo figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.about-intro h2 {
  text-align: left;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.about-intro h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.about-intro .about-tagline {
  text-align: left;
  margin: 1.25rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-photo::before {
    inset: 10px -10px -10px 10px;
  }

  .about-intro h2 {
    text-align: center;
  }

  .about-intro h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-intro .about-tagline {
    text-align: center;
    padding-left: 0;
    border-left: none;
  }
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
  text-align: center;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.about-content p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-content .about-tagline {
  font-size: 1.2rem;
  color: var(--color-primary);
  text-align: center;
  margin: 1.5rem 0;
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.about-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-content ul li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.about-content .btn {
  display: inline-block;
  text-align: center;
}

.about-content > :last-child {
  text-align: center;
}

/* === Portal Page === */
.portal-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.portal-content p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.portal-content .btn {
  margin-top: 1rem;
}

.sharefile-upload {
  margin: 2rem auto;
  max-width: 500px;
}

.sharefile-upload iframe {
  border: none;
  display: block;
  width: 100%;
}

/* === Footer === */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  display: block;
}

.footer-col p strong {
  color: var(--color-accent);
  margin-top: 0.75rem;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* === Thank You Page === */
.thank-you-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.thank-you-content h1 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.thank-you-content p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.thank-you-note {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* === 404 Page === */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.error-page h2 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.error-page p {
  color: #555;
  margin-bottom: 2rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--color-bg-alt);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-divider {
    transform: rotate(90deg);
    margin: 0;
  }

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

  .page-header h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .thank-you-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

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

  .btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}
