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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: #626262;
  font-size: 16px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Questrial', sans-serif;
  color: #1b3a2a;
  line-height: 1.3;
}

h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: #1b3a2a;
  color: #fff;
}

.btn-primary:hover {
  background: rgba(181, 154, 91, 0.85);
}

.btn-gold {
  background: #b59a5b;
  color: #fff;
}

.btn-gold:hover {
  background: #a08845;
}

.btn-purple {
  background: #1b3a2a;
  color: #fff;
}

.btn-purple:hover {
  background: #2a5a3f;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #152e22;
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(181, 154, 91, 0.3);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-left a {
  color: #fff;
  transition: color 0.3s;
}

.top-bar-left a:hover {
  color: #b59a5b;
}

.top-bar-left i {
  margin-right: 5px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-menu .btn-client-login {
  background: #b59a5b;
  color: #fff;
  padding: 5px 16px;
  border-radius: 3px;
  font-size: 13px;
  transition: background 0.3s;
  margin: 10px 0 10px 10px;
  display: inline-block;
}

.btn-client-login:hover {
  background: #a08845;
}

/* ===== HEADER ===== */
.header {
  background: #1b3a2a;
  padding: 30px 0 24px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo-monogram {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #96834a 0%, #c9a84c 30%, #dfc06e 50%, #c9a84c 70%, #96834a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
  padding-bottom: 2px;
  margin-bottom: 4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.logo-tagline {
  font-family: 'Questrial', sans-serif;
  font-size: 11px;
  letter-spacing: 7px;
  color: #b59a5b;
  text-transform: uppercase;
  opacity: 0.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: #152e22;
  position: relative;
  z-index: 1000;
  border-top: 1px solid rgba(181, 154, 91, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 15px;
}

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

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 15px 18px;
  color: #fff;
  font-family: 'Questrial', sans-serif;
  font-size: 15px;
  transition: color 0.3s, background 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: #b59a5b;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(34, 34, 34, 0.95);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown li a:hover {
  background: rgba(181, 154, 91, 0.2);
  color: #b59a5b;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 650px;
  padding: 40px 50px;
  border: 3px solid #b59a5b;
  background: rgba(255, 255, 255, 0.9);
}

.slide-content h2 {
  font-size: 30px;
  color: #1b3a2a;
  margin-bottom: 15px;
}

.slide-content p {
  font-size: 16px;
  color: #626262;
  line-height: 1.5;
}

/* Carousel Controls */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #b59a5b;
  border-color: #b59a5b;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-arrow:hover {
  background: rgba(181, 154, 91, 0.7);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* ===== SECTION STYLES ===== */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-lg {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: #fff;
}

.text-white h2 {
  color: #fff;
}

.bg-white {
  background: #fff;
}

.bg-offwhite {
  background: #F8F8F5;
}

.bg-gold {
  background: #b59a5b;
}

/* ===== INTRO SECTION ===== */
.intro-section {
  padding: 100px 0 50px;
  text-align: center;
}

.intro-section h2 {
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-section p {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

/* ===== FEATURE BOXES ===== */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 50px 0 100px;
}

.box-card {
  text-align: center;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.box-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.box-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e8ede8;
}

.box-card-body {
  padding: 25px 20px;
}

.box-card-body h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.box-card-body p {
  margin-bottom: 20px;
  font-size: 15px;
}

/* ===== QUOTE BANNER ===== */
.quote-banner {
  background: #b59a5b;
  padding: 80px 0;
  text-align: center;
}

.quote-banner h2 {
  color: #fff;
  margin-bottom: 20px;
}

.quote-banner p {
  color: #fff;
  font-size: 20px;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

.founder-quotes {
  position: relative;
  min-height: 120px;
}

.founder-quote {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.founder-quote.active {
  opacity: 1;
  position: relative;
  left: auto;
  transform: none;
}

.quote-author {
  font-style: normal;
  font-size: 16px;
  display: block;
  margin-top: 15px;
  opacity: 0.9;
}

/* ===== SIDE BY SIDE ===== */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.side-by-side.reverse .sbs-image {
  order: 2;
}

.sbs-image {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  background-color: #e8ede8;
}

.sbs-content h2 {
  margin-bottom: 15px;
}

.sbs-content h3 {
  margin-bottom: 10px;
  color: #1b3a2a;
}

.sbs-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===== OVERLAY SECTION ===== */
.overlay-section {
  position: relative;
  padding: 150px 0;
  background-size: cover;
  background-position: center;
  background-color: #1b3a2a;
}

.overlay-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 58, 42, 0.8);
}

.overlay-section .container {
  position: relative;
  z-index: 2;
}

.overlay-section .side-by-side {
  align-items: center;
}

.overlay-section .sbs-image {
  background-color: transparent;
  height: auto;
}

.overlay-section .sbs-image img {
  width: 100%;
  border-radius: 5px;
}

.overlay-section h2 {
  color: #fff;
}

.overlay-section p {
  color: #fff;
}

/* ===== TEAM SECTION ===== */
.team-heading {
  padding: 80px 0 20px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0 60px;
}

.team-card {
  text-align: center;
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 20px;
  background-color: #e8ede8;
  border: 3px solid #b59a5b;
}

.team-card h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

.team-card .title {
  color: #b59a5b;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.team-card .team-info {
  font-size: 14px;
  color: #626262;
}

.team-card .team-info a {
  color: #6a9a7a;
  transition: color 0.3s;
}

.team-card .team-info a:hover {
  color: #b59a5b;
}

.team-social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  color: #1b3a2a;
  font-size: 18px;
  transition: color 0.3s;
}

.team-social a:hover {
  color: #b59a5b;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
  padding: 60px 0 100px;
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #454545;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #454545;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6a9a7a;
}

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

/* ===== CONTACT PAGE ===== */
.page-header {
  background: #1b3a2a;
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 38px;
}

.office-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

.office-card {
  background: #f8f8f5;
  padding: 35px;
  border-radius: 5px;
  border-top: 4px solid #b59a5b;
}

.office-card h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.office-card p {
  margin-bottom: 8px;
  font-size: 16px;
}

.office-card i {
  color: #1b3a2a;
  margin-right: 8px;
  width: 20px;
}

/* ===== SERVICES PAGE ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 0;
}

.service-card {
  background: #f8f8f5;
  padding: 40px;
  border-radius: 5px;
  text-align: center;
  border-top: 4px solid #b59a5b;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-card i {
  font-size: 48px;
  color: #1b3a2a;
  margin-bottom: 20px;
}

.service-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
  padding: 80px 0 40px;
  text-align: center;
}

.about-intro h2 {
  margin-bottom: 20px;
}

.about-intro p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  background: #1b3a2a;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-contact a {
  color: #fff;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #D8D8D6;
}

.footer-contact i {
  margin-right: 8px;
  width: 16px;
}

.footer-links ul {
  columns: 2;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ddd;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #b59a5b;
}

.footer-disclosures {
  font-size: 12px;
  line-height: 1.7;
  color: #d0d0d0;
}

.footer-disclosures p {
  margin-bottom: 10px;
}

.footer-disclosures a {
  color: #6a9a7a;
  transition: color 0.3s;
}

.footer-disclosures a:hover {
  color: #b59a5b;
}

.footer-disclosures .investment-warning {
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #ccc;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #6a9a7a;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #b59a5b;
}

/* ===== BACK TO TOP ===== */
/* ===== FLOATING BROKERCHECK ===== */
.floating-broker-check {
  position: fixed;
  bottom: 0;
  right: 80px;
  width: 205px;
  height: 40px;
  background: rgba(246, 246, 246, 0.85);
  z-index: 9998;
}

.floating-broker-check a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.floating-broker-check img {
  height: 28px;
  width: auto;
}

@media (max-width: 767px) {
  .floating-broker-check {
    display: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #6a9a7a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1b3a2a;
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1400px) {
  .hero-carousel {
    height: 38vw;
    max-height: 750px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .boxes-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-links ul {
    columns: 2;
  }

  .hero-carousel {
    height: 450px;
  }

  .slide-content {
    max-width: 500px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-left {
    flex-direction: column;
    gap: 5px;
  }

  .nav-toggle {
    display: block;
    width: 100%;
    text-align: left;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    background: #1b3a2a;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    z-index: 1000;
  }

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

  .nav-menu > li > a {
    color: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu > li > a:hover {
    color: #b59a5b;
    background: rgba(181, 154, 91, 0.12);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(83, 94, 92, 1);
    display: none;
  }

  .nav-menu > li.dropdown-open .dropdown {
    display: block;
  }

  .side-by-side {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .side-by-side.reverse .sbs-image {
    order: 0;
  }

  .hero-carousel {
    height: 400px;
  }

  .slide-content {
    max-width: 90%;
    padding: 20px;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .office-info {
    grid-template-columns: 1fr;
  }

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

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }

  .overlay-section {
    padding: 80px 0;
  }

  /* ===== Mobile optimization pass (2026-04-07) ===== */

  /* #3 + #16 — Prevent iOS auto-zoom on focused inputs and enlarge tap area */
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 16px 15px;
  }

  /* #4 — Reduce logo block to fit narrow viewports */
  .logo-monogram { width: 90px; }
  .logo-name { font-size: 26px; letter-spacing: 2px; }
  .logo-tagline { font-size: 10px; letter-spacing: 4px; }

  /* #5 — Tighten vertical section spacing on mobile */
  .section { padding: 50px 0; }
  .section-lg { padding: 60px 0; }
  .section-sm { padding: 35px 0; }
  .intro-section { padding: 60px 0 30px; }

  /* #8 — Enlarge carousel arrows and dots to meet 44px touch target */
  .carousel-arrow { padding: 20px; min-width: 44px; min-height: 44px; }
  .carousel-dot { width: 16px; height: 16px; }
  .carousel-dots { gap: 14px; }

  /* #15 — Full-width submit button for easier tapping */
  .contact-form .btn { display: block; width: 100%; }

  /* #12 — Reduce sidebar image height after stack (team.html only) */
  .sbs-image { height: 250px; }

  /* #17 — Hide top bar (phone/email duplicate footer info) */
  .top-bar { display: none; }

  /* #18 — Enlarge footer link tap targets */
  .footer-links a,
  .footer-bottom-links a { padding: 8px 0; display: inline-block; }

  /* #19 — Enlarge team-card phone/email tap targets */
  .team-info a { padding: 6px 0; display: inline-block; }
}

@media (max-width: 480px) {
  .boxes-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: 350px;
  }

  .slide-content h2 {
    font-size: 18px;
  }

  .slide-content p {
    font-size: 14px;
  }

  /* ===== Mobile optimization pass (2026-04-07) ===== */

  /* #4 — Further logo reduction for small phones */
  .logo-monogram { width: 70px; }
  .logo-name { font-size: 22px; letter-spacing: 1px; }
  .logo-tagline { font-size: 9px; letter-spacing: 3px; }

  /* #14 — Reduce h1 to fit small phone widths */
  h1 { font-size: 24px; }
}

/* #13 — Ultra-narrow viewport refinements (320px iPhone SE etc.) */
@media (max-width: 320px) {
  .slide-content { padding: 15px; }
  .slide-content h2 { font-size: 18px; }
  .slide-content p { font-size: 13px; }
}
