/* =============================================
   BALANCE PARTNERS CONSULTING — STYLESHEET
   Mobile-first, responsive, Hostinger-ready
   ============================================= */

/* ── CSS VARIABLES ── */
:root {
  --navy:        #1b2d45;
  --navy-dark:   #121f30;
  --navy-light:  #243d5c;
  --teal:        #2a9d8f;
  --teal-dark:   #1f7a6e;
  --teal-light:  #40bfb0;
  --gray-50:     #f8f9fb;
  --gray-100:    #eef0f4;
  --gray-200:    #dde1e9;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.15);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.18);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s ease;
  --max-width:   1180px;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --font-head:   'Merriweather', Georgia, serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--teal-dark); }

ul { list-style: none; }

address { font-style: normal; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── NAVIGATION ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar { padding: 0.75rem 0; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 56px;
  width: auto;
  min-width: 80px;
  max-width: 180px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--teal);
  background: var(--gray-50);
}
.nav-link.active { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-light { background: var(--white); }
.section-dark  { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-dark .section-label { color: var(--teal-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.3;
}
.section-dark .section-title { color: var(--white); }

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.divider-light { background: var(--teal-light); }

.section-intro {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-intro.light { color: rgba(255,255,255,0.75); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 45, 69, 0.88) 0%,
    rgba(18, 31, 48, 0.82) 50%,
    rgba(42, 157, 143, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
  max-width: 780px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 1.75rem;
  filter: brightness(0) invert(1);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-btn {
  font-size: 1rem;
  padding: 0.9rem 2.25rem;
  box-shadow: 0 4px 20px rgba(42,157,143,0.45);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-lead {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--gray-50);
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-icon {
  color: var(--teal);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.stat-text {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
}

.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.service-card--featured {
  background: rgba(42,157,143,0.15);
  border-color: var(--teal);
  position: relative;
}

.service-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(42,157,143,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.service-list li i {
  color: var(--teal-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.services-image-strip {
  margin-top: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 300px;
}

.services-image-strip img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 30%;
}

/* ── AFFILIATES ── */
.affiliates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .affiliates-grid { grid-template-columns: repeat(2, 1fr); }
}

.affiliate-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.affiliate-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 auto 1.25rem;
}

.affiliate-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.affiliate-desc {
  font-size: 0.93rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.affiliate-btn { font-size: 0.88rem; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 340px 1fr;
    gap: 4rem;
  }
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(42,157,143,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.contact-details address,
.contact-details a {
  color: rgba(255,255,255,0.72);
  font-size: 0.93rem;
  line-height: 1.6;
}

.contact-details a:hover { color: var(--teal-light); }

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

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

@media (min-width: 500px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  appearance: none;
}

.form-group select option { background: var(--navy-dark); color: var(--white); }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #f87171;
}

.field-error {
  font-size: 0.8rem;
  color: #fca5a5;
  min-height: 1.1rem;
}

.form-checkbox {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  /* Full custom checkbox — removes default browser styling */
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--teal-light);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}

/* Checkmark drawn with CSS */
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 0.9rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  position: relative;
}

.btn-loading { display: none; }
.btn-submit.loading .btn-text { visibility: hidden; }
.btn-submit.loading .btn-loading { display: inline-flex; position: absolute; }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(42,157,143,0.2);
  border: 1px solid var(--teal);
  color: var(--teal-light);
}
.form-status.error {
  display: block;
  background: rgba(248,113,113,0.15);
  border: 1px solid #f87171;
  color: #fca5a5;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-dark);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  height: 60px;
  width: auto;
  min-width: 80px;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal-light); }

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--teal-dark); }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-100);
    gap: 0.25rem;
  }

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

  .nav-link { padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; text-align: center; }

  #site-header { position: sticky; }

  .hero { min-height: 100svh; }
  .hero-logo { width: 100px; height: 100px; }

  .section { padding: 3.5rem 0; }

  .about-image img { height: 240px; }

  .contact-form-wrap { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.55rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}
