/*
Theme Name: Hilton Family Office Clean
Theme URI: https://www.hiltonwealth.com
Author: Hilton Web Team
Description: Professional family office theme with refined layouts for legacy, leadership, network, events, and contact.
Version: 1.4.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hfo-clean
*/

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #08111f;
  --bg-soft: #0e1a2d;
  --panel: rgba(13, 24, 43, 0.92);
  --panel-strong: rgba(8, 17, 31, 0.92);
  --border: rgba(148, 163, 184, 0.20);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e5edf7;
  --text-soft: #b8c6d8;
  --muted: #90a0b5;
  --accent: #c6a96b;
  --accent-soft: rgba(198, 169, 107, 0.15);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(30, 41, 59, 0.55), transparent 30%),
    linear-gradient(180deg, #0a1322 0%, #07101d 48%, #050b14 100%);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: #d8e6ff;
  transition: color 180ms ease, opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

a:hover { color: var(--white); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(6, 13, 24, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.site-header-inner-nav-only {
  position: relative;
}

.site-branding,
.brand-link,
.brand-mark,
.brand-meta {
  display: none;
}

.menu-toggle { display: none; }

.menu-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 10px;
}

.menu-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.site-nav { display: block; }

.site-nav .primary-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.site-nav .primary-menu li { margin: 0; }

.site-nav .primary-menu li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav .primary-menu li a:hover,
.site-nav .primary-menu .current-menu-item > a,
.site-nav .primary-menu .current_page_item > a,
.site-nav .primary-menu .current-menu-ancestor > a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 981px) {
  .site-header-inner-nav-only {
    justify-content: center;
  }

  .site-nav {
    margin: 0 auto;
  }

  .site-nav .primary-menu {
    justify-content: center;
  }

  .site-nav .primary-menu .menu-item-contact {
    margin-left: 0;
  }

  .site-nav .primary-menu .menu-item-contact a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-weight: 500;
  }

  .site-nav .primary-menu .menu-item-contact a:hover,
  .site-nav .primary-menu .menu-item-contact.current-menu-item > a,
  .site-nav .primary-menu .menu-item-contact.current_page_item > a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Main */
.site-main {
  min-height: calc(100vh - 81px - 180px);
}

.page-shell,
.default-page .container,
.section-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.default-page .container,
.page-shell {
  padding-top: 42px;
  padding-bottom: 76px;
}

.home-section {
  padding: 0 0 34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading.left-aligned {
  margin-bottom: 20px;
}

.section-heading h2,
.special-page-header h1,
.page-title,
.home-overview h2,
.spotlight-card h2 {
  margin: 0;
  color: var(--white);
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p,
.special-page-header p,
.page-content,
.page-content p,
.home-overview p,
.spotlight-card p,
.info-card p,
.detail-card p,
.feature-card p,
.timeline-card p,
.contact-note,
.network-note,
.footer-description,
.footer-bottom p {
  color: var(--text-soft);
}

.section-eyebrow,
.footer-eyebrow,
.hero-eyebrow,
.feature-kicker,
.timeline-year,
.legacy-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.surface-card,
.info-card,
.detail-card,
.timeline-card,
.surface-subsection {
  background: linear-gradient(180deg, rgba(13, 24, 43, 0.96), rgba(9, 18, 31, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.surface-card {
  overflow: hidden;
}

.surface-subsection {
  padding: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #101827;
  font-weight: 600;
}

.button-primary:hover {
  color: #101827;
  opacity: 0.92;
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.page-back-link:hover { color: var(--white); }

.image-placeholder,
.portrait-placeholder {
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  border: 1px dashed rgba(198, 169, 107, 0.32);
  background: linear-gradient(135deg, rgba(198, 169, 107, 0.10), rgba(15, 23, 42, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f2dfbb;
  padding: 24px;
}

.portrait-placeholder { min-height: 240px; }

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.detail-card,
.info-card,
.timeline-card {
  padding: 24px;
}

.feature-card h3,
.detail-card h3,
.info-card h3,
.timeline-card h3,
.contact-info h3,
.team-card h3,
.event-card h3,
.legacy-detail-card h2,
.footer-eyebrow {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--white);
}

.feature-card a {
  display: inline-flex;
  margin-top: 10px;
  text-decoration: none;
  color: #f6ddb0;
}

.feature-card a:hover { color: var(--white); }

/* Home */
.hfo-front-page {
  min-height: calc(100vh - 81px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 81px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-home-simple {
  min-height: calc(100vh - 81px);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
}

.hero-video-bg .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.86) 0%, rgba(5, 11, 20, 0.52) 42%, rgba(5, 11, 20, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.12), rgba(8, 17, 31, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content-home {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 24px 92px;
}

.hero-title-main {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.3rem);
  line-height: 0.98;
  color: var(--white);
}

.hero-lead {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.1rem;
  color: #dce6f2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Generic/default pages */
.generic-page-card {
  padding: 30px;
}

.page-content { font-size: 1rem; }
.page-content p { margin-top: 0; margin-bottom: 16px; }
.page-content ul { margin: 0 0 18px 0; padding-left: 1.1rem; }
.page-content li { margin-bottom: 0.72rem; }

/* Contact */
.contact-hero {
  padding: 34px;
  margin-bottom: 22px;
}

.contact-hero h1 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.contact-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.contact-layout-side {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-info,
.contact-map-wrapper {
  padding: 28px;
}

.contact-map-wrapper {
  overflow: hidden;
}

.contact-map {
  display: block;
  width: 100%;
  min-height: 430px;
  border-radius: 18px;
}

.contact-note {
  margin-bottom: 0;
}

/* Legacy */
.legacy-story-card {
  padding: 30px;
}

.legacy-subtitle {
  max-width: 760px;
}

.legacy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 30px;
  align-items: start;
}

.legacy-media img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.legacy-quote {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(198, 169, 107, 0.08);
  border-radius: 0 16px 16px 0;
}

.legacy-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
  font-size: 1.08rem;
}

.legacy-timeline-section,
.legacy-principles-section,
.network-pillars-section,
.network-opportunities-section {
  margin-top: 34px;
}

.legacy-timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.timeline-card {
  min-height: 100%;
}

.timeline-year {
  display: inline-flex;
  margin-bottom: 12px;
}

/* Leadership */
.leadership-layout {
  padding: 30px;
}

.leadership-summary-grid,
.events-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

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

.team-card {
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.96), rgba(7, 13, 24, 0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.team-card-body {
  padding: 22px;
}

.team-role {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.leadership-note-card {
  margin-top: 24px;
}

/* Network */
.network-layout-wrap {
  padding: 30px;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: stretch;
}

.network-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.network-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(198, 169, 107, 0.08);
  border: 1px solid rgba(198, 169, 107, 0.14);
}

/* Events */
.events-layout {
  padding: 30px;
}

.events-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 24px;
}

.event-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.96), rgba(7, 13, 24, 0.96));
  border: 1px solid var(--border);
}

.event-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(198, 169, 107, 0.16);
  color: #f3e0bb;
  padding: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(5, 11, 20, 0.96);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-description {
  max-width: 640px;
  margin: 0;
}

.footer-nav-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-nav-group a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-nav-group a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 18px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .card-grid-four,
  .legacy-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-layout,
  .network-layout,
  .contact-layout-side,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav-group {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .site-header-inner-nav-only {
    justify-content: flex-end;
  }

  .menu-toggle-label { display: flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    left: 18px;
  }

  .site-nav .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(8, 17, 31, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
  }

  .site-nav .primary-menu li a {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    color: var(--white);
  }

  .site-nav .primary-menu .menu-item-contact {
    margin-left: 0;
  }

  .menu-toggle:not(:checked) ~ .site-nav { display: none; }
  .menu-toggle:checked ~ .site-nav { display: block; }
}

@media (min-width: 981px) {
  .menu-toggle-label { display: none; }
  .site-nav { position: static; }
}

@media (max-width: 820px) {
  .card-grid-three,
  .leadership-summary-grid,
  .events-insight-grid,
  .team-grid,
  .contact-purpose-grid,
  .event-card {
    grid-template-columns: 1fr;
  }

  .card-grid-four,
  .legacy-timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-main {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }

  .contact-map {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .section-shell,
  .page-shell,
  .default-page .container,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .surface-card,
  .contact-hero,
  .generic-page-card,
  .legacy-story-card,
  .leadership-layout,
  .network-layout-wrap,
  .events-layout {
    border-radius: 20px;
  }

  .hero-content-home {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 78px;
    padding-bottom: 64px;
  }

  .button {
    width: 100%;
  }
}
