/* ============================================
   Kapri Financial - Brand Stylesheet
   Colors: Green #3C6842, Gold #E4C575,
   Dark Gray #2C2C2C, White #FFF, Light Gray #F5F5F5
   ============================================ */

:root {
  --green-deep: #23472D;
  --green: #3C6842;
  --green-light: #507C55;
  --gold: #E4C575;
  --gold-dark: #80601E;
  --gold-hover: #D5B35F;
  --white: #FFFFFF;
  --light-gray: #F7F7F2;
  --mid-gray: #E0E0E0;
  --dark-gray: #2C2C2C;
  --text: #333333;
  --text-light: #666666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark-gray);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
}

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

.btn-full { width: 100%; text-align: center; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-deep); transform: translateY(-3px); }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  transition: padding var(--transition);
  padding: 10px 0;
}
.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.header.scrolled .logo-name,
.header.scrolled .logo-tagline { color: var(--dark-gray); }
.header.scrolled .nav-list a { color: var(--dark-gray); }
.header.scrolled .nav-list a:hover { color: var(--green); }
.header.scrolled .nav-btn { color: var(--dark-gray) !important; }
.header.scrolled .logo-icon { color: var(--gold-dark); }
.header.scrolled .menu-toggle span { background: var(--dark-gray); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Original artwork has transparent space above and below the horizontal mark.
   Frame that space with object-fit while preserving the original PNG. */
.header .logo {
  flex-shrink: 0;
  padding: 6px 10px;
  background: var(--white);
  border-radius: 4px;
}
.logo-img {
  width: clamp(230px, 32vw, 400px);
  height: auto;
  aspect-ratio: 5 / 1;
  object-fit: cover;
  object-position: center 46%;
}
.footer-logo-img {
  width: 220px;
  height: auto;
  border-radius: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-list a {
  padding: 8px 16px;
  color: var(--dark-gray);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: all var(--transition);
}
.nav-list a:hover { color: var(--green); background: var(--light-gray); }
.nav-list a.active { color: var(--green); text-decoration: underline; text-underline-offset: 7px; }

.nav-btn {
  background: var(--gold) !important;
  color: var(--dark-gray) !important;
  font-weight: 600 !important;
}
.nav-btn:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-1px);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  padding: 8px 0;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px !important;
  color: var(--dark-gray) !important;
  font-size: 0.85rem !important;
}
.dropdown a:hover { background: var(--light-gray); color: var(--green) !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(780px, 90svh);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(18,42,25,0.78) 0%, rgba(29,57,35,0.65) 50%, rgba(29,57,35,0.5) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,149.3C96,139,192,117,288,128C384,139,480,181,576,186.7C672,192,768,160,864,154.7C960,149,1056,171,1152,176C1248,181,1344,171,1392,165.3L1440,160L1440,320L0,320Z"/></svg>');
  background-size: cover;
  background-position: bottom;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section Shared ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark-gray);
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ---- Services Section ---- */
.services-section {
  padding: 100px 0;
  background: var(--light-gray);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.service-icon {
  width: 56px;
  height: 56px;
  color: var(--green);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  flex: 1;
}
.service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  transition: color var(--transition);
}
.service-card:hover .service-link { color: var(--gold-dark); }

/* ---- Process Section ---- */
.process-section {
  padding: 100px 0;
  background: var(--white);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
}
.process-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 16px;
  line-height: 1;
}
.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark-gray);
  margin-bottom: 12px;
}
.process-step p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---- Advisor Section ---- */
.advisor-section {
  padding: 100px 0;
  background: var(--green-deep);
  color: var(--white);
}
.advisor-section .section-label { color: var(--gold); }
.advisor-section .section-header h2 { color: var(--white); }

.advisor-card {
  display: flex;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 48px;
  backdrop-filter: blur(8px);
  max-width: 900px;
  margin: 0 auto;
}
.advisor-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  border: 4px solid var(--gold);
  flex-shrink: 0;
}
.advisor-photo {
  flex-shrink: 0;
}
.advisor-photo-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  display: block;
}
.advisor-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.advisor-title {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.advisor-info p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.advisor-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.advisor-detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}
.advisor-detail span,
.advisor-detail a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.advisor-detail a:hover { color: var(--gold); }

/* ---- Contact Section ---- */
.contact-section {
  padding: 100px 0;
  background: var(--light-gray);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--dark-gray);
  margin-bottom: 16px;
  line-height: 1.2;
}
.contact-text h2 span { color: var(--green); }
.contact-text > p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-block strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 4px;
}
.contact-info-block a {
  color: var(--dark-gray);
  font-weight: 500;
}
.contact-info-block a:hover { color: var(--green); }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-gray);
  transition: border-color var(--transition);
  background: var(--light-gray);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-disclaimer {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark-gray);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo .logo-name { color: var(--white); font-size: 1.2rem; }
.footer-logo .logo-tagline { color: rgba(255,255,255,0.8); }
.footer-logo .logo-icon { font-size: 1.6rem; }
.footer-about p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-contact a {
  color: rgba(255,255,255,0.82);
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  padding: 32px 0;
}
.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}
.footer-legal p { margin-bottom: 12px; }
.footer-legal a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}
.footer-legal a:hover { color: var(--gold); }
.copyright {
  margin-top: 24px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
}

/* ---- Page Hero (for inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  padding: 170px 0 64px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Content Sections (inner pages) ---- */
.content-section {
  padding: 80px 0;
}
.content-section:nth-child(even) { background: var(--light-gray); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.content-grid.reversed { direction: rtl; }
.content-grid.reversed > * { direction: ltr; }

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark-gray);
  margin-bottom: 16px;
}
.content-block p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}
.content-block ul {
  padding-left: 20px;
  list-style: disc;
  color: var(--text-light);
}
.content-block li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.content-image {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.content-image-icon {
  font-size: 4rem;
  color: var(--gold);
}

/* Service detail cards (services page) */
.service-detail {
  padding: 64px 0;
  border-bottom: 1px solid var(--mid-gray);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.service-detail-icon {
  width: 80px;
  height: 80px;
  color: var(--green);
}
.service-detail h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin-bottom: 12px;
}
.service-detail p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-list { gap: 4px; }
  .nav-list a { padding: 8px 10px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .logo-img { width: min(300px, calc(100vw - 124px)); }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 32px 32px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav.open { right: 0; }
  .nav-list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  .nav-list a {
    color: var(--dark-gray) !important;
    padding: 12px 16px;
    display: block;
  }
  .nav-list a:hover { background: var(--light-gray); color: var(--green) !important; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
  }

  .hero-content { padding: 100px 24px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .advisor-card { flex-direction: column; text-align: center; padding: 32px; }
  .advisor-details { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .service-detail-inner { grid-template-columns: 1fr; }
}

/* Readability and accessible navigation */
[id] { scroll-margin-top: 128px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.footer :focus-visible, .advisor-section :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { text-wrap: balance; }
.content-block h2 { line-height: 1.3; }
.content-block p + h2, .content-block ul + h2 { margin-top: 32px; }
.content-image img { height: auto; }
.service-card { border-color: var(--mid-gray); }
.process-step { background: var(--light-gray); border-radius: var(--radius); }
.footer address { font-style: normal; }
.email-link { overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1100; background: white; color: var(--green); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.contact-info-block strong + br { display: none; }
.form-disclaimer { font-size: 0.85rem; }
.service-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 24px; }
.service-nav a { padding: 10px 18px; border: 1px solid var(--mid-gray); border-radius: 24px; color: var(--green); font-weight: 600; }
.service-nav a:hover { background: var(--light-gray); }
.mobile-contact-bar { display: none; }
.menu-toggle { position: relative; z-index: 101; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.menu-toggle span { background: var(--green-deep); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) and (min-width: 769px) {
  .logo-img { width: 240px; }
  .nav-list a { padding: 8px; font-size: 0.875rem; }
}
@media (max-width: 768px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header, .header.scrolled { padding: 8px 0; }
  .header .logo { padding: 0; }
  .logo-img { width: min(320px, calc(100vw - 104px)); }
  .nav { top: 86px; left: 16px; right: 16px; width: auto; height: auto; max-height: calc(100svh - 180px); overflow-y: auto; padding: 16px; border: 1px solid var(--mid-gray); border-radius: 12px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { right: 16px; visibility: visible; opacity: 1; transform: none; }
  .nav-list a.active { background: var(--light-gray); color: var(--green) !important; }
  .hero { min-height: 640px; min-height: min(720px, 92svh); }
  .hero-content { padding: 130px 24px 64px; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .page-hero { padding: 124px 0 44px; }
  .page-hero h1 { line-height: 1.2; }
  .services-section, .process-section, .advisor-section, .contact-section, .content-section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .content-grid, .contact-wrapper { gap: 32px; }
  .process-grid { gap: 16px; }
  .process-step { padding: 24px; text-align: left; }
  .contact-form { padding: 24px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { text-align: center; }
  .advisor-card { padding: 24px; gap: 24px; }
  .advisor-photo-img { max-width: 100%; height: auto !important; aspect-ratio: 1; }
  .service-nav { justify-content: flex-start; gap: 8px; padding: 20px 24px; }
  .service-nav a { font-size: .875rem; padding: 8px 14px; }
  .mobile-contact-bar { display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--mid-gray); box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
  .mobile-contact-bar a { flex: 1; padding: 10px 8px; font-size: .875rem; text-align: center; }
  .back-to-top { bottom: calc(94px + env(safe-area-inset-bottom)); right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.office-section { padding: 48px 0; }
.office-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.office-card h2 { font-family: var(--font-heading); margin-bottom: 12px; }
.office-card p { color: var(--text-light); margin-bottom: 8px; }
@media (max-width: 768px) {
  .office-card { flex-direction: column; align-items: stretch; }
  .office-card .btn { text-align: center; }
}

/* Shared, locally hosted Lucide icons. */
.lucide { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 1.6; vertical-align: middle; }
.btn:has(.lucide) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.mobile-contact-bar .lucide { width: 18px; height: 18px; }

/* Shared biography layout for the Kapri Financial team. */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 64px; }
.profile-portrait { width: 100%; max-width: 360px; justify-self: center; }
.profile-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; border-radius: 8px 8px 64px 8px; }
.profile-page .content-block h2 { font-weight: 400; }
.profile-story { max-width: 850px; }
.profile-contact { text-align: center; }
.profile-contact .section-header p { color: #e1e7e1; }
.profile-contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.profile-office { margin-top: 24px; color: #e1e7e1; }
.profile-team-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 20px; color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 768px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .profile-portrait { grid-row: 1; max-width: 320px; }
  .profile-contact-actions { flex-direction: column; }
}

/* Header displays the entire original mark, with no object-fit cropping. */
:root { --header-height: 118px; }
[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
.header-inner { max-width: 1400px; }
.header .logo-img { width: clamp(340px, 31vw, 440px); height: auto; aspect-ratio: auto; object-fit: contain; }
.nav-list { gap: 4px; }
.nav-list a { padding: 8px 12px; white-space: nowrap; }
.header .nav-list a.active { color: var(--green); text-decoration: underline; text-underline-offset: 7px; }
.footer-legal a { color: #fff; }
.disclosure-document { margin: 32px 0; padding: 24px; border: 1px solid var(--mid-gray); border-radius: 8px; }
.disclosure-document a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1200px) {
  .header, .header.scrolled { padding: 8px 0; }
  .header .logo { padding: 0; }
  .header .logo-img { width: min(400px, calc(100vw - 104px)); }
  .menu-toggle { display: flex; }
  .nav { position: fixed; top: calc(var(--header-height) + 8px); left: 16px; right: 16px; width: auto; height: auto; max-height: calc(100svh - var(--header-height) - 100px); overflow-y: auto; padding: 16px; background: white; border: 1px solid var(--mid-gray); border-radius: 12px; box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 99; }
  .nav.open { right: 16px; visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { display: block; padding: 10px 16px; color: var(--dark-gray); }
  .nav-list a.active { background: var(--light-gray); }
}
@media (max-width: 768px) {
  .header .logo-img { width: min(340px, calc(100vw - 104px)); }
}
.profile-license { font-size: .9rem; color: var(--green); font-weight: 500; }
.profile-office a { text-decoration: underline; text-underline-offset: 4px; }

.email-link { display: inline-flex; align-items: center; gap: 8px; }
.email-link .lucide { width: 18px; height: 18px; }

.resource-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; width: 100%; border-top: 1px solid var(--mid-gray); color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.resource-link:hover { color: var(--green-deep); }
.tool-card { width: 100%; min-width: 0; max-width: 760px; padding: 36px; box-sizing: border-box; background: white; border: 1px solid var(--mid-gray); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool-card .content-block, .calculator-form, .calculator-form .form-group { min-width: 0; }
.calculator-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; margin-top: 24px; }
.calculator-form .form-group:last-of-type { grid-column: 1 / -1; }
.calculator-form .btn { grid-column: 1 / -1; justify-self: start; }
.calculator-result { display: block; min-height: 1.6em; margin-top: 20px; color: var(--green-deep); font-size: 1.3rem; font-weight: 600; }
.calculator-note { margin-top: 16px; color: var(--text-light); font-size: .85rem; }
@media(max-width:768px){.tool-card{padding:24px}.calculator-form{grid-template-columns:1fr}}
