/*
  Shared stylesheet — used by index.php, about-us.php, our-services.php
  via includes/header.php. One file, no build step, no preprocessor.
*/
:root {
  --navy: #10203c;
  --teal: #17a6a2;
  --teal-dark: #0f8985;
  --text: #4a5568;
  --heading: #333f4e;
  --bg-soft: #f7f9fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--heading); font-weight: 500; line-height: 1.25; }

/* Top bar */
.top-bar { background: var(--navy); color: #fff; font-size: 14px; }
.top-bar .container { display: flex; justify-content: center; align-items: center; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.top-bar .contact-bits { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.top-bar .phone-btn { background: var(--teal); padding: 8px 16px; border-radius: 4px; }

/* Main nav */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s ease; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; transition: padding .3s ease; }
.site-header.scrolled .container { padding-top: 8px; padding-bottom: 8px; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(16,32,60,0.12); }
.logo img { height: 62px; transition: height .3s ease; }
.site-header.scrolled .logo img { height: 48px; }
.main-nav ul { list-style: none; display: flex; gap: 32px; }
.main-nav a { font-weight: 500; color: var(--heading); }
.main-nav a.active, .main-nav a:hover { color: var(--teal); }

/* Mobile nav toggle (hamburger) — hidden on desktop, shown at the mobile breakpoint below */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — parallax band (pure CSS: dot-grid + gradient, no photo needed) */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
  color: #fff;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.10) 1.5px, transparent 1.5px),
    linear-gradient(135deg, var(--navy) 0%, #1c3a63 55%, var(--teal-dark) 140%);
  background-size: 26px 26px, cover;
  background-position: 0 0, center;
  background-attachment: fixed, fixed;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.badge { display: inline-block; border: 1px solid rgba(255,255,255,0.5); color: #fff; font-size: 12px; letter-spacing: 1px; font-weight: 600; padding: 6px 14px; border-radius: 3px; margin-bottom: 20px; }
.hero h1 { font-size: 52px; color: #fff; }
.hero h1 .accent { color: #7be0dc; }
.hero p { margin-top: 20px; max-width: 440px; color: rgba(255,255,255,0.82); }
.btn { display: inline-block; margin-top: 30px; background: var(--teal); color: #fff; padding: 14px 32px; border-radius: 4px; font-weight: 600; letter-spacing: .5px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; border: none; cursor: pointer; }
.btn:hover { background: var(--teal-dark); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,137,133,0.35); }
.hero-img img { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

/* Parallax CTA band, reused on multiple pages */
.parallax-band {
  position: relative;
  padding: 90px 0;
  text-align: center;
  color: #fff;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.10) 1.5px, transparent 1.5px),
    linear-gradient(135deg, var(--teal-dark) 0%, var(--navy) 130%);
  background-size: 26px 26px, cover;
  background-position: 0 0, center;
  background-attachment: fixed, fixed;
}
.parallax-band h2 { color: #fff; font-size: 32px; }
.parallax-band p { color: rgba(255,255,255,0.82); max-width: 520px; margin: 16px auto 0; }
.parallax-band .btn { background: #fff; color: var(--teal-dark); }
.parallax-band .btn:hover { background: #f0f0f0; color: var(--teal-dark); }

@media (max-width: 768px) {
  .hero, .parallax-band, .page-banner { background-attachment: scroll, scroll; }
}

/* Section shell */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--teal); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head.align-left { text-align: left; margin: 0; max-width: none; }

/* Interior page banner (About Us / Our Services headers) */
.page-banner {
  position: relative;
  padding: 70px 0;
  background-image:
    radial-gradient(circle, rgba(16,32,60,0.06) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #eef2f5 0%, #f7f9fa 100%);
  background-size: 26px 26px, cover;
  background-attachment: fixed, fixed;
}
.page-banner h1 { font-size: 44px; color: var(--navy); }
.page-banner .breadcrumb { margin-top: 14px; font-size: 14px; color: #8a94a6; text-transform: uppercase; letter-spacing: .5px; }
.page-banner .breadcrumb a { color: var(--navy); }
.page-banner .breadcrumb .current { color: var(--teal); }

/* About */
.about { background: var(--bg-soft); }
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-img { position: relative; }
.call-badge { position: absolute; top: 24px; left: 24px; background: var(--teal); color: #fff; padding: 14px 20px; border-radius: 6px; display: flex; align-items: center; gap: 10px; }
.call-badge .num { font-weight: 700; font-size: 18px; }
.about-copy .eyebrow { color: var(--teal); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.about-copy h2 { font-size: 32px; margin: 10px 0 20px; }
.feature-list { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; max-width: 220px; }
.feature-item .icon { width: 44px; height: 44px; border-radius: 8px; background: #fdeef0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--teal-dark); font-weight: 700; }

/* Stats strip */
.stats-strip { background: #fff; border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-card .num { font-size: 40px; font-weight: 700; color: var(--teal-dark); }
.stat-card .label { color: var(--text); font-size: 14px; margin-top: 6px; }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.process-step { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; padding: 30px; position: relative; }
.process-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 16px; }
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { font-size: 14px; }

/* Services (full cards with image, on Our Services page) */
.services-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card-full { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.service-card-full:hover { box-shadow: 0 16px 34px rgba(16,32,60,0.10); transform: translateY(-6px); }
.service-card-full img { height: 200px; width: 100%; object-fit: cover; }
.service-card-full .body { padding: 22px; }
.service-card-full h3 { font-size: 18px; margin-bottom: 10px; }
.service-card-full p { font-size: 14px; color: var(--text); }

/* Homepage concise services overview (links into Our Services page) */
.services-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.services-overview-card { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; padding: 28px; }
.services-overview-card h3 { font-size: 18px; margin-bottom: 4px; }
.services-overview-card .cat-desc { font-size: 13px; color: #8a94a6; margin-bottom: 16px; }
.services-overview-card ul { list-style: none; }
.services-overview-card li { border-top: 1px dashed #e7ebee; }
.services-overview-card li:first-child { border-top: none; }
.services-overview-card li a { display: block; padding: 8px 0; font-size: 14px; color: var(--text); transition: color .2s ease, padding-left .2s ease; }
.services-overview-card li a:hover { color: var(--teal-dark); padding-left: 4px; }
.services-overview-cta { text-align: center; margin-top: 36px; }

/* Why choose us / testimonials / blog placeholders */
.placeholder-section { background: var(--bg-soft); }
.placeholder-note { text-align: center; color: #a0aec0; font-size: 14px; border: 1px dashed #cbd5e0; border-radius: 8px; padding: 30px; max-width: 620px; margin: 0 auto; }
.content-issue-note { color: #b45309; font-size: 14px; border: 1px dashed #f0c988; background: #fffaf0; border-radius: 8px; padding: 16px 20px; margin-bottom: 30px; }

/* Why Choose Us grid */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; padding: 26px; transition: box-shadow .25s ease, transform .25s ease; }
.why-card:hover { box-shadow: 0 16px 34px rgba(16,32,60,0.10); transform: translateY(-6px); }
.why-card .icon { width: 44px; height: 44px; border-radius: 8px; background: #fdeef0; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); font-weight: 700; margin-bottom: 16px; }
.why-card h3 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 14px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; padding: 28px; }
.testimonial-card .stars { color: #f5b301; margin-bottom: 12px; font-size: 14px; letter-spacing: 2px; }
.testimonial-card .quote { font-size: 14px; color: var(--text); margin-bottom: 20px; font-style: italic; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.testimonial-card .name { font-weight: 600; font-size: 14px; color: var(--heading); }
.testimonial-card .role { font-size: 12px; color: #8a94a6; }

/* Services page: category headers + compact icon cards (legal / corporate services) */
.service-category-head { margin: 0 0 30px; }
.service-category-head h3 { font-size: 22px; color: var(--navy); }
.service-category-head p { font-size: 14px; margin-top: 6px; }

/* Category feature image + intro (Legal & Notarial / Corporate & Business banners) */
.category-feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.category-feature.reverse .category-img { order: 2; }
.category-feature .category-img img { border-radius: 12px; box-shadow: 0 16px 40px rgba(16,32,60,0.15); aspect-ratio: 4/3; object-fit: cover; }
.category-feature h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.category-feature p { font-size: 14px; }
.category-feature .photo-credit { display: block; margin-top: 8px; font-size: 11px; color: #a0aec0; }
.services-grid-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card-simple { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; padding: 24px; transition: box-shadow .25s ease, transform .25s ease; }
.service-card-simple:hover { box-shadow: 0 16px 34px rgba(16,32,60,0.10); transform: translateY(-6px); }
.service-card-simple .icon { width: 40px; height: 40px; border-radius: 8px; background: #e6f7f6; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); font-weight: 700; margin-bottom: 14px; }
.service-card-simple h3 { font-size: 16px; margin-bottom: 8px; }
.service-card-simple p { font-size: 14px; }
.services-section + .services-section { padding-top: 0; }
.service-intro { max-width: 760px; margin: 0 auto 50px; text-align: center; font-size: 15px; }
.category-intro { max-width: 820px; font-size: 14px; margin-bottom: 4px; }

/* 24-hour emergency band */
.emergency-band { background: #b3261e; color: #fff; padding: 46px 0; }
.emergency-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.emergency-inner .eyebrow { color: #ffd7d3; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.emergency-inner h2 { color: #fff; font-size: 24px; margin-top: 6px; }
.emergency-inner p { color: rgba(255,255,255,0.9); font-size: 14px; margin-top: 8px; }
.emergency-list { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.emergency-list li { font-size: 13px; color: #fff; background: rgba(255,255,255,0.12); padding: 6px 12px; border-radius: 20px; }
.emergency-btn { background: #fff; color: #b3261e; white-space: nowrap; margin-top: 0; }
.emergency-btn:hover { background: #ffe9e7; color: #b3261e; box-shadow: 0 12px 24px rgba(0,0,0,0.25); }

@media (max-width: 700px) {
  .emergency-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.contact-info-list { list-style: none; margin-bottom: 10px; }
.contact-info-item { display: flex; gap: 16px; padding: 16px 0; border-top: 1px dashed #e7ebee; }
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item .icon { width: 44px; height: 44px; border-radius: 8px; background: #e6f7f6; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); font-weight: 700; flex-shrink: 0; }
.contact-info-item h3 { font-size: 15px; color: var(--heading); margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 14px; color: var(--text); }
.availability-badge { display: inline-flex; align-items: center; gap: 8px; background: #e6f7f6; color: var(--teal-dark); font-weight: 600; font-size: 13px; padding: 10px 16px; border-radius: 30px; margin-top: 6px; }
.availability-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-dark); }

.contact-form-card { background: #fff; border: 1px solid #edf0f2; border-radius: 10px; padding: 36px; box-shadow: 0 10px 30px rgba(16,32,60,0.06); }
.contact-form-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-form-card > p { font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid #dde3e8; border-radius: 6px; padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: var(--text); transition: border-color .2s ease; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-alert { padding: 14px 18px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.form-alert.success { background: #e6f7f0; color: #116644; border: 1px solid #b6e6cf; }
.form-alert.error { background: #fdeef0; color: #a3253c; border: 1px solid #f5c2cc; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.map-embed { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(16,32,60,0.08); margin-top: 10px; }
.map-embed iframe { display: block; width: 100%; }

/* Privacy policy prose */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2 { font-size: 23px; margin: 40px 0 14px; }
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content h3 { font-size: 16px; margin: 22px 0 10px; color: var(--heading); }
.policy-content p { font-size: 14.5px; margin-bottom: 14px; }
.policy-content ul { margin: 0 0 14px 20px; }
.policy-content li { font-size: 14.5px; margin-bottom: 6px; }
.policy-content .updated-date { color: #8a94a6; font-size: 13px; margin-bottom: 30px; }

/* Blog listing */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: #fff; border: 1px solid #edf0f2; border-radius: 8px; overflow: hidden; display: block; transition: box-shadow .25s ease, transform .25s ease; }
.blog-card:hover { box-shadow: 0 16px 34px rgba(16,32,60,0.10); transform: translateY(-6px); }
.blog-card-img { height: 190px; background-size: cover; background-position: center; background-color: var(--bg-soft); }
.blog-card-img-pattern {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 1.5px),
    linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 130%);
  background-size: 20px 20px, cover;
}
.blog-card-body { padding: 22px; }
.blog-card-category { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--teal-dark); background: #e6f7f6; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.blog-card-date { font-size: 12px; color: #8a94a6; }

/* Single blog post */
.blog-post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.blog-post-date, .blog-post-author { font-size: 13px; color: #8a94a6; }
.blog-post-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-bottom: 34px; }
.blog-post-content { max-width: 780px; margin: 0 auto; }
.blog-post-content h2 { font-size: 22px; margin: 32px 0 12px; }
.blog-post-content h2:first-child { margin-top: 0; }
.blog-post-content h3 { font-size: 17px; margin: 22px 0 10px; color: var(--heading); }
.blog-post-content p { font-size: 15px; margin-bottom: 16px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 16px 22px; }
.blog-post-content li { font-size: 15px; margin-bottom: 6px; }
.blog-post-back { text-align: center; margin-top: 50px; }

/* Footer */
footer { background: var(--navy); color: #cbd5e0; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
footer ul { list-style: none; }
footer li { padding: 4px 0; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; text-align: center; color: #8a94a6; }

@media (max-width: 900px) {
  .hero .container, .about .container, .category-feature, .contact-grid { grid-template-columns: 1fr; }
  .category-feature.reverse .category-img { order: 0; }
  .services-grid-full, .services-grid-compact, .why-grid, .testimonial-grid, .services-overview-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Mobile nav: hamburger toggle shows/hides a full-width dropdown panel
     instead of the desktop inline menu */
  .site-header .container { flex-wrap: wrap; }
  .logo { order: 1; }
  .nav-toggle { display: flex; order: 2; }
  .main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0 16px; }
  .main-nav li { width: 100%; border-top: 1px solid #edf0f2; }
  .main-nav a { display: block; padding: 14px 4px; }
}
