/* File: styles.css */

/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ===== Base / Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-navy: #0a1f35;
  --color-navy-soft: #152b48;
  --color-bg: #fbf5f6;
  --color-white: #f5f7fa;
  --color-accent: #c89b3c;
  --color-muted: #4f5d72;
  --color-border: #e2e8f0;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Softer, more premium shadows */
  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.16);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

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

:focus-visible {
  outline: 2px solid rgba(200, 155, 60, 0.95);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ===== Typography ===== */
* { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #05203d;
  margin: 0;
}

p, li, span, small {
  font-family: var(--font-body);
  font-weight: 400;
}

nav, .nav, header, button, input, textarea, select, label {
  font-family: var(--font-body);
  font-weight: 500;
}

.brand, .brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Keep header/hero/sections aligned to same left edge */
.site-header-inner,
.hero .container,
.section > .container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 35, 64, 0.96);
  backdrop-filter: blur(14px);
  color: var(--color-white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.32);
}

.site-header-inner {
  position: relative; /* anchors mobile dropdown */
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.55rem 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  align-items: flex-start;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
}

.brand-tagline {
  font-size: 1rem;
  opacity: 0.80;
  letter-spacing: 0.085em;
}

/* Desktop nav (default) */
.nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav a {
  position: relative;
  color: rgba(248, 250, 252, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.45rem;
  transition: color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.nav a:hover { color: #ffffff; }
.nav a:hover::after,
.nav a.active::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: #ffffff; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #c89b3c, #f3dc97);
  color: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.34);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(248, 250, 252, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Hero (Home) ===== */
.hero {
  padding: 2.2rem 0 2.4rem;
  background-image: url("images/cropped-family-office-wealth-preservation-strategies.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

/* Controlled, premium overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(10, 31, 53, 0.35), rgba(10, 31, 53, 0.0)),
    linear-gradient(90deg, rgba(10, 31, 53, 0.68) 0%, rgba(10, 31, 53, 0.34) 45%, rgba(10, 31, 53, 0.10) 100%);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 155, 60, 0.95);
  font-weight: 650;
}

.hero-title {
  font-size: clamp(2.25rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  margin: 0.65rem 0 0.95rem;
  color: #ffffff;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  max-width: 42rem;
  margin: 0;
}

.hero-surface {
  margin-top: 1.15rem;
  display: grid;
  gap: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.6rem;
}

.hero-chip {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(248, 250, 252, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
}

.hero-chip-title {
  color: #ffffff;
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.hero-chip-body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  margin: 0;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 1.55rem 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.hero-panel-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(15, 23, 42, 0.62);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.hero-panel-title {
  font-size: 1.05rem;
  font-weight: 720;
  margin: 0 0 0.9rem;
  color: #0a1f35;
}

.hero-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: #35465c;
  display: grid;
  gap: 0.6rem;
}

.hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.hero-dot {
  margin-top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-accent);
  flex: 0 0 auto;
}

/* ===== Generic sections ===== */
.section { padding: 2.6rem 0; }
.section-header { margin-bottom: 1.9rem; }

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 650;
}

.section-title {
  font-size: 1.45rem;
  margin: 0.45rem 0;
}

.section-lead {
  color: var(--color-muted);
  max-width: 44rem;
  font-size: 0.98rem;
  margin: 0;
}

.section-services {
  background: radial-gradient(circle at top left, #f8fafc, #eef2ff);
  padding-bottom: 3rem;
}

.section-services .section-header { margin-bottom: 2.2rem; }

/* ===== Cards / Grids ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 155, 60, 0.45);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: -0.2rem -0.2rem 0.8rem;
  max-height: 190px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.service-card:hover .card-media img { transform: scale(1.06); }

.card-pill {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 35, 64, 0.92);
  color: #f9fafb;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.06rem;
  margin: 0 0 0.4rem;
}

.card-body {
  font-size: 0.93rem;
  color: #3a4b60;
  margin: 0.2rem 0 0.4rem;
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  color: #3f4f63;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 0 1.1rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ===== Investors “feature row” ===== */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.30);
  box-shadow: var(--shadow-sm);
}

.feature-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  font-weight: 650;
}

.feature-title {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-body {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0;
}

/* ===== Contact layout + form ===== */
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.form-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.30);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.60);
  padding: 0.65rem 0.75rem;
  font: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(200, 155, 60, 0.30);
}

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

.form-footnote {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 580px; }

  /* Avoid trapping content on mobile */
  main, .container, .hero {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  /* Show hamburger on phones */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
  }

  /* Turn nav into a dropdown */
  .nav.nav-menu {
    position: fixed;
    top: 3.2rem;
    left: 1.2rem;
    right: 1.2rem;
    z-index: 9999;

    background: rgba(11, 35, 64, 0.99);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    flex-direction: column;
    gap: 0.9rem;

    max-height: calc(100vh - 4.5rem);
    overflow: auto;

   /* hidden state */
   transform: translateY(-140%);
   opacity: 0;
   pointer-events: none;

   transition: transform 0.15s ease, opacity 0.15s ease;
  }

  /* JS toggles .is-open */
  .nav.nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero { padding-top: 3.1rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Services page enhancements ===== */
.services-hero {
  padding-top: 2.2rem;
  padding-bottom: 2.4rem;
}

.services-hero-header { max-width: 52rem; }

.services-hero-title {
  font-size: clamp(2.05rem, 2.8vw, 2.55rem);
  line-height: 1.12;
  margin: 0.55rem 0 0.75rem;
}

.services-hero-lead {
  color: #43566e;
  max-width: 46rem;
  margin: 0;
  font-size: 1rem;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.btn-ghost {
  background: rgba(10, 31, 53, 0.06);
  color: #0a1f35;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(10, 31, 53, 0.09);
}

.trust-strip {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.trust-title {
  font-weight: 720;
  color: #0a1f35;
  margin-bottom: 0.25rem;
}

.trust-body {
  color: #43566e;
  font-size: 0.92rem;
}

.services-grid { margin-top: 1.65rem; }

.service-card--enhanced .card-title {
  font-size: 1.12rem;
  margin: 0;
}

.service-head .card-body { margin-top: 0.35rem; }

.service-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.35rem 0 0.15rem;
}

.service-meta-block {
  background: rgba(10, 31, 53, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
}

.service-meta-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 750;
  margin-bottom: 0.25rem;
}

.service-meta-body {
  margin: 0;
  color: #43566e;
  font-size: 0.92rem;
}

.service-footer {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 650;
  color: rgba(10, 31, 53, 0.92);
}

.service-link::after {
  content: "→";
  font-weight: 700;
  opacity: 0.8;
}

.service-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services-deliverables { padding-top: 2.2rem; }

/* Steps + FAQ + CTA */
.steps--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.30);
  box-shadow: var(--shadow-sm);
}

.step-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  font-weight: 650;
}

.step-title {
  font-weight: 720;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.step-body {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0;
}

.faq {
  margin-top: 1.35rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 0.5rem 0.9rem;
  box-shadow: var(--shadow-sm);
}

.faq details {
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
}

.faq details:last-child { border-bottom: none; }

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: rgba(10, 31, 53, 0.95);
}

.faq p {
  margin: 0.55rem 0 0.15rem;
  color: #43566e;
  font-size: 0.92rem;
}

.cta-band {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(11, 35, 64, 0.06);
}

.cta-band h3 { margin: 0 0 0.25rem; }

.cta-band p {
  margin: 0;
  color: #43566e;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .service-meta { grid-template-columns: minmax(0, 1fr); }
  .steps--grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
