/* 
    BRIDGEVIEW BUSINESS PARTNERS - Stylesheet
    Theme: Modern Professional Consulting
    Colors: Midnight Navy, Azure Blue, Soft Slate
*/

/* 1. GOOGLE FONTS & VARIABLES */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --primary: #1565c0; /* Corporate Blue */
  --primary-dark: #0d47a1;
  --navy: #2c3e50; /* Midnight Navy */
  --sky: #5b9bd5; /* Top Bar Blue */
  --bg-light: #f8f9fa;
  --text-main: #444;
  --text-light: #6c757d;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.page-padding {
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  color: var(--primary);
  font-weight: 700;
}

/* 3. HEADER & NAVIGATION */

/* HAMBURGER TOGGLE - base (hidden on desktop, shown via media query below) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  background-color: var(--primary);
  padding: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  flex: 1;
  min-width: 0;
}

.logo-area .site-title,
.logo h1 {
  font-size: 1.4rem;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .logo-area .site-title,
  .logo h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .logo-area .site-title,
  .logo h1 {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-area .site-tagline,
  .logo span {
    font-size: 0.62rem;
  }
}

.logo-area .site-tagline,
.logo span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  margin: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

/* Nav: hamburger active at ≤992px */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: relative;
  }

  .nav-flex {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .main-nav ul.nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    padding: 10px 0;
    z-index: 200;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .main-nav ul.nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    margin: 0 !important;
  }

  .nav-links li a {
    display: block;
    padding: 14px 30px 14px 50px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding: 5px 18px;
}

@media (max-width: 1024px) {
  .main-nav ul li a {
    font-size: 0.8rem;
  }
}

@media (max-width: 868px) {
  .main-nav ul li a {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .main-nav ul li a {
    font-size: 0.95rem;
  }
}

/* Navbar Underline Animation */
.main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.main-nav ul li a:hover::after {
  width: 100%;
}

/* 4. HOME HERO SECTION */
.hero-home {
  position: relative;
  flex: 1;
  min-height: 500px;
  background: url("../img/hr-block.jpg") center right / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(22, 33, 55, 0.82) 0%,
    rgba(22, 33, 55, 0.65) 45%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-flex {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
  padding: 60px 0;
}

.hero-content h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  border-bottom: 4px solid var(--white);
  display: inline-block;
  padding-bottom: 10px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-weight: 600;
}

/* 4b. PAGE HERO BANNER (sub-pages) */
.page-hero {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 71, 161, 0.6);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h2 {
  font-size: 2.5rem;
  color: var(--white);
  border-bottom: 4px solid var(--white);
  display: inline-block;
  padding-bottom: 10px;
  margin: 0;
  font-weight: 700;
}

.page-hero--about {
  background-image: url("../img/about-us-keyboard.jpg");
}
.page-hero--team {
  background-image: url("../img/hr-block.jpg");
}
.page-hero--contact {
  background-image: url("../img/contact-notes.jpg");
}

/* 5. TEAM PAGE */
.team-section {
  position: relative;
  background: url("../img/network.jpg") center / cover no-repeat fixed;
  padding: 80px 0;
}

.team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 245, 255, 0.88);
}

.team-layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Profile Card */
.profile-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(21, 101, 192, 0.15);
  overflow: hidden;
  text-align: center;
  border-top: 5px solid var(--primary);
}

.profile-photo-wrap {
  padding: 30px 30px 0;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 5px solid var(--primary);
  margin: 0 auto;
  display: block;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.profile-card:hover .profile-photo {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(21, 101, 192, 0.3);
}

.profile-info {
  padding: 20px 24px 28px;
}

.profile-info h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.profile-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.profile-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
}

/* Bio Text */
.profile-bio {
  flex: 1;
}

.profile-bio p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-main);
  margin-bottom: 18px;
  text-align: justify;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

/* OLD card/team styles kept for backward compat but unused */
.team-container {
  padding: 80px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.bio-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-main);
}

/* 6. ABOUT PAGE */
.about-section {
  position: relative;
  background: url("../img/network.jpg") center / cover no-repeat fixed;
  padding: 90px 0;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 245, 255, 0.88);
}

.about-layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 70px;
  align-items: center;
}

.about-text-col {
  flex: 1;
}

.about-image-col {
  flex: 0 0 420px;
}

.about-image-col img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(21, 101, 192, 0.18);
}

/* Shared label + heading used on about & contact */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-heading {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.about-text-col p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(21, 101, 192, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-top: 4px;
}

/* 7. CONTACT PAGE */
.contact-section {
  position: relative;
  background: url("../img/network.jpg") center / cover no-repeat fixed;
  padding: 90px 0;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 245, 255, 0.88);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 70px;
  align-items: flex-start;
}

.contact-form-col {
  flex: 1;
}

.contact-image-col {
  flex: 0 0 380px;
  align-self: center;
}

.contact-image-col img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(21, 101, 192, 0.18);
}

.contact-form-col .section-heading {
  margin-bottom: 28px;
}

.contact-form {
  width: 100%;
}

.contact-form .form-row {
  display: flex;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  background-color: var(--primary);
  color: var(--white);
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
}

.contact-info-block {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.contact-info-item i {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* 8. FOOTER BANNER & FOOTER */
.bottom-hero {
  margin-top: 80px;
  height: 400px;
  width: 100%;
}

.bottom-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px 0 20px;
  text-align: center;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  opacity: 0.75;
}

.footer-contact i {
  margin-right: 6px;
}

.footer-divider {
  width: 40px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto 14px;
}

.footer-copy {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.8;
}

/* HAMBURGER TOGGLE */
/* (base styles moved to top of section 3 so media queries can override correctly) */

/* 9. RESPONSIVE DESIGN */
/* Tablet (≤992px) */
@media (max-width: 992px) {
  /* Team */
  .team-layout {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .profile-card {
    width: 260px;
  }

  .profile-bio p {
    text-align: left;
  }

  /* About */
  .about-layout {
    flex-direction: column;
    gap: 40px;
  }

  .about-image-col {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-text-col {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .stat-item {
    align-items: center;
  }

  /* Contact */
  .contact-layout {
    flex-direction: column;
    gap: 40px;
  }

  .contact-image-col {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Misc */
  .hero-content h2 {
    font-size: 2.2rem;
  }

  .page-hero h2 {
    font-size: 2rem;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* Hero */
  .hero-content {
    padding: 40px 0;
    max-width: 100%;
  }

  .hero-content h2 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Page hero banners */
  .page-hero {
    min-height: 180px;
  }

  .page-hero h2 {
    font-size: 1.7rem;
  }

  /* Team section */
  .team-section,
  .about-section,
  .contact-section {
    background-attachment: scroll; /* fixed bg causes flicker on mobile */
    padding: 50px 0;
  }

  .profile-card {
    width: 240px;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .about-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  /* General */
  .page-padding {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }
}
