/* ==========================================================================
   JRE Group – Main Stylesheet
   Author : JRE Group
   Date   : 2026
   Notes  : Mobile-first, Bootstrap 5 companion, CSS-variable-driven theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --primary:       #0a0e1b;   /* Very Dark Navy – hero bg, topbar, footer */
  --primary-light: #131929;   /* Dark navy variant                         */
  --primary-nav:   #0a0e1b;   /* Logo badge background                     */
  --accent:        #3563e9;   /* Brand blue  – CTA buttons, highlights     */
  --accent-dark:   #2450cc;   /* Blue hover                                */
  --accent-light:  #ebf0fd;   /* Pale Blue   – tinted backgrounds          */

  /* Neutral palette */
  --light:  #f5f7fa;          /* Section alternate background           */
  --white:  #ffffff;
  --text:   #1a1a2e;          /* Body copy                              */
  --muted:  #6c757d;          /* Secondary text / icons                 */
  --border: #dde3ea;          /* Subtle borders                         */

  /* Spacing & shape */
  --radius:   0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 2px 8px rgba(10, 35, 66, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 35, 66, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 35, 66, 0.18);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* Transitions */
  --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. BASE RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   JRE GROUP – TOP INFO BAR
   -------------------------------------------------------------------------- */
#topbar {
  background-color: var(--primary);
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-contact a {
  color: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  transition: color var(--transition);
}

.topbar-contact a:hover { color: #fff; }

.topbar-location {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

/* Focus ring – accessible keyboards */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.text-accent   { color: var(--accent) !important; }
.bg-primary-brand { background-color: var(--primary) !important; }
.bg-accent     { background-color: var(--accent) !important; }
.bg-light-brand { background-color: var(--light) !important; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

/* Accent rule under section headings */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.divider-accent {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}
.divider-accent.left { margin-left: 0; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background-color: var(--white);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   5. NAVBAR – White background, dark links (JRE GROUP style)
   -------------------------------------------------------------------------- */
#mainNav {
  background-color: var(--white);
  border-bottom: 1px solid #e8edf3;
  transition: padding var(--transition), box-shadow var(--transition);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  position: sticky;
  top: 0;   /* sticks directly to top after topbar scrolls away */
  z-index: 1040;
}

/* Shrink on scroll – added by JS */
#mainNav.shrunk {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  top: 0;
}

/* Logo image / circular badge */
.jre-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  /* fallback when used as plain div */
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
}

.navbar-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
}

.navbar-brand .brand-text-group {
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.navbar-brand .brand-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background-color: transparent;
}

/* Active underline indicator */
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Dropdown menus */
.navbar-nav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.55rem 1.25rem;
  transition: background-color var(--transition), color var(--transition);
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

.navbar-toggler {
  border-color: rgba(0,0,0,0.2);
}

/* Calculator outlined button in nav */
.btn-nav-calc {
  background: transparent;
  color: var(--text);
  border: 1.5px solid #ccc;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color var(--transition), color var(--transition);
}

.btn-nav-calc:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Get Started primary button */
.btn-get-started {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition);
}

.btn-get-started:hover {
  background-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION – JRE GROUP style (dark navy, "Trust. Invest. Grow.")
   -------------------------------------------------------------------------- */
#hero {
  background-color: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0;
}

/* Trusted partner pill badge */
.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* Main headline */
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

/* Explore Mortgages – solid blue */
.btn-hero-primary {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-hero-primary:hover {
  background-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Property Management – outlined white */
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), border-color var(--transition);
}

.btn-hero-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Social proof row */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--white);
  margin-left: -8px;
}

.avatar-stack .av:first-child { margin-left: 0; }

.proof-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.proof-stars { color: #ffc107; font-size: 0.85rem; letter-spacing: 0.05em; }
.proof-label { font-size: 0.8rem; color: rgba(255,255,255,0.72); }

/* ---- Hero right: property image + floating card ---- */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-img-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

.hero-property-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 1.25rem;
}

/* Floating "Serving Since 2018" card */
.hero-badge-card {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 3;
  min-width: 140px;
}

.hero-badge-card .badge-since {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.15rem;
}

.hero-badge-card .badge-year {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: block;
}

/* --------------------------------------------------------------------------
   6b. AD STRIP
   -------------------------------------------------------------------------- */
#ad-strip {
  background: var(--white);
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-placeholder {
  border: 1px dashed #c8d0da;
  background: #f9fafb;
  border-radius: var(--radius);
  width: 728px;
  max-width: 100%;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #aab0ba;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   6c. STATS ROW
   -------------------------------------------------------------------------- */
#stats-row {
  background-color: var(--light);
  padding: 3.5rem 0;
}

.stat-item {
  text-align: left;
  padding: 0.5rem 1rem;
}

.stat-item .stat-number {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.stat-item .stat-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* --------------------------------------------------------------------------
   7. TRUST BAR
   -------------------------------------------------------------------------- */
#trust {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
}

.trust-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 1.5rem;
  color: var(--accent);
}

.trust-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* No nav offset needed for page-hero on inner pages since topbar + navbar together */
.page-hero { padding-top: 9rem; }

/* --------------------------------------------------------------------------
   8. SERVICES SECTION
   -------------------------------------------------------------------------- */
#services {
  padding: 5rem 0;
  background-color: var(--white);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: background-color var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--accent);
  color: var(--white);
}

.service-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.service-card .service-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --------------------------------------------------------------------------
   9. WHY CHOOSE US SECTION
   -------------------------------------------------------------------------- */
#why {
  padding: 5rem 0;
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

#why::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: rgba(255,255,255,0.015);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

#why .section-title { color: var(--white); }
#why .section-subtitle { color: rgba(255,255,255,0.65); }
#why .section-label { color: var(--accent); }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius);
  font-size: 1.3rem;
  color: var(--accent);
}

.why-item h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.why-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Stats row inside why section */
.stat-box {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  height: 100%;
}

.stat-box .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* --------------------------------------------------------------------------
   10. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
#testimonials {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonial-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.reviewer-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. FAQ SECTION
   -------------------------------------------------------------------------- */
#faq {
  padding: 5rem 0;
  background-color: var(--light);
}

/* Override Bootstrap accordion styles */
.accordion-button {
  font-weight: 600;
  color: var(--primary);
  background-color: var(--white);
  font-size: 0.97rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-light);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button::after {
  filter: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35);
}

.accordion-item {
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
}

.accordion-item:last-of-type {
  border-bottom: 1px solid var(--border);
}

.accordion-body {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   12. CTA BANNER
   -------------------------------------------------------------------------- */
#cta-banner {
  padding: 5rem 0;
  background: #4361ee;
  position: relative;
  overflow: hidden;
}

#cta-banner::after {
  content: none;
}

#cta-banner h2 { color: var(--white); }
#cta-banner p  { color: rgba(255,255,255,0.85); }

.btn-cta-outline {
  background: #fff;
  color: #4361ee;
  border: 2px solid #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background .2s, color .2s;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
#footer,
footer[role="contentinfo"] {
  background-color: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--accent); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  transition: background-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--accent); }

/* Footer brand text overrides */
footer[role="contentinfo"] .brand-name,
#footer .brand-name {
  color: #fff;
}
footer[role="contentinfo"] .brand-tagline,
#footer .brand-tagline {
  color: rgba(255,255,255,0.55);
}

/* --------------------------------------------------------------------------
   14. PAGE HEROES (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 9rem 0 4rem;
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 5vw, 3rem); }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav span { color: rgba(255,255,255,0.4); }

/* --------------------------------------------------------------------------
   15. ABOUT PAGE
   -------------------------------------------------------------------------- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

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

.team-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: box-shadow var(--transition);
}

.team-card:hover { box-shadow: var(--shadow-md); }

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   16. SERVICES PAGE
   -------------------------------------------------------------------------- */
.service-detail-section {
  padding: 4rem 0;
}

.service-detail-section:nth-child(even) {
  background-color: var(--light);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.93rem;
  color: var(--text);
}

.feature-list li i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   17. CALCULATOR PAGE
   -------------------------------------------------------------------------- */
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.calc-result {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: var(--white);
  text-align: center;
  display: none; /* shown by JS */
}

.calc-result.visible { display: block; }

.calc-result .monthly-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
}

.calc-result .monthly-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.calc-result .monthly-period {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.calc-result .result-breakdown {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}

.calc-result .breakdown-item .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calc-result .breakdown-item .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.formula-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.formula-box h6 {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   18. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}

.contact-info-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.contact-info-card p  { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-method:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-method-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-method-info strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}

.contact-method-info span,
.contact-method-info a {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.9);
}

.contact-method-info a:hover { color: var(--accent); }

/* Form styles */
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border-color: var(--border);
  border-radius: var(--radius);
  font-size: 0.93rem;
  padding: 0.65rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

#successMessage {
  display: none;
  text-align: center;
  padding: 3rem;
}

#successMessage.visible { display: block; }

/* --------------------------------------------------------------------------
   19. SCROLL-TO-TOP BUTTON
   -------------------------------------------------------------------------- */
#scrollTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   20. RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */

/* --- Tablet / collapsed navbar (≤991px) ---------------------------------- */
@media (max-width: 991.98px) {

  /* Hero image drops below content */
  .hero-visual { margin-top: 2.5rem; }
  .hero-badge-card { left: 0.5rem; bottom: 0.75rem; }

  /* Nav links in mobile drawer */
  #mainNav .navbar-nav {
    padding: 0.75rem 0;
    gap: 0.1rem;
    background: var(--white);
  }

  #mainNav .navbar-nav .nav-link {
    color: #333 !important;
    padding-left: 0.75rem !important;
  }

  #mainNav .navbar-nav .nav-link.active::after { display: none; }

  /* CTA buttons in mobile drawer go full width */
  .btn-nav-calc,
  .btn-get-started {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.4rem;
  }

  .stat-item { padding: 0.5rem 0.5rem; }

  /* Why section stat boxes – 2 per row on tablet */
  .stat-box { margin-bottom: 1rem; }

  /* Service detail – image always on top on tablet */
  .service-detail-section .order-lg-2 { order: 0 !important; }
}

/* --- Mobile landscape / phablet (≤767px) --------------------------------- */
@media (max-width: 767.98px) {

  /* Topbar: stack phone/email and hide location on very small */
  #topbar .container {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .topbar-contact { justify-content: center; }
  .topbar-location { display: none; }

  /* Reduce section padding */
  section { padding: 3.5rem 0; }
  #services,
  #why,
  #testimonials,
  #faq,
  #cta-banner { padding: 3.5rem 0; }

  /* Page hero (inner pages) – reduce top padding */
  .page-hero {
    padding: 5rem 0 2.5rem;
  }

  /* Hero */
  .hero-content { padding: 2.5rem 0 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-badge-card { display: none; }

  /* Hero social proof wraps */
  .hero-social-proof { flex-wrap: wrap; gap: 0.5rem; }

  /* CTA banner buttons stack */
  #cta-banner .d-flex.gap-3,
  #cta-banner .btn + .btn {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  #cta-banner .btn { width: 100%; text-align: center; justify-content: center; }

  /* Calculator */
  .calc-card { padding: 1.5rem 1.25rem; }
  .calc-result { padding: 1.5rem 1.25rem; }
  .calc-result .monthly-amount { font-size: 2.2rem; }
  .calc-result .result-breakdown { grid-template-columns: 1fr; }

  /* Contact */
  .contact-info-card {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  /* Stats row borders reset */
  #stats-row .row > .col-6,
  #stats-row .row > .col-md-3 { border-right: none !important; }

  /* Footer – add breathing room between stacked columns */
  #footer .col-lg-4,
  #footer .col-lg-2,
  #footer .col-md-6 {
    margin-bottom: 2rem;
  }

  /* Accordion touch target */
  .accordion-button { font-size: 0.92rem; }
}

/* --- Small phones (≤575px) ------------------------------------------------ */
@media (max-width: 575.98px) {

  /* Trust bar stacks vertically */
  .trust-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Topbar: show only phone, hide email */
  .topbar-contact a + a { display: none; }

  /* Stat numbers scale down */
  .stat-item .stat-number { font-size: 2rem; }
  .stat-box .stat-num { font-size: 1.8rem; }

  /* hero overline badge wraps nicely */
  .hero-overline { font-size: 0.72rem; }

  /* Page hero tighter */
  .page-hero { padding: 4rem 0 2rem; }
  .page-hero h1 { font-size: 1.7rem; }

  /* Calculator result amount */
  .calc-result .monthly-amount { font-size: 1.9rem; }

  /* Scroll-to-top closer to edge on small screens */
  #scrollTop { bottom: 1rem; right: 1rem; }

  /* Footer bottom smaller text */
  .footer-bottom { font-size: 0.75rem; }

  /* Service detail icon smaller */
  .service-detail-icon { width: 60px; height: 60px; font-size: 1.6rem; }
}

/* --- Accessibility: reduce motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
