/* ============================================
   CORE AVIATION GROUP
   Institutional / Private-Bank Aesthetic
   ============================================ */

:root {
  /* Brand — pulled from logo */
  --navy:         #152035;
  --navy-deep:    #0c1423;
  --navy-light:   #1c2a45;
  --gold:         #c9a84c;
  --gold-dim:     #a6893f;
  --silver:       #b0b8c4;
  --silver-light: #d0d6de;

  /* Neutral surface */
  --bg:           #fafaf8;
  --bg-warm:      #f4f3ef;
  --bg-cream:     #edecea;
  --white:        #ffffff;

  /* Text */
  --text:         #2c2c2c;
  --text-light:   #6b6b6b;
  --text-muted:   #999;

  /* Borders */
  --rule:         #ddd;
  --rule-light:   #e8e8e4;

  /* Type */
  --serif:        'Cormorant Garamond', 'Georgia', serif;
  --sans:         'Outfit', 'Helvetica Neue', Arial, sans-serif;

  /* Misc */
  --nav-h:        80px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 400; }
address { font-style: normal; }
::selection { background: var(--navy); color: var(--white); }

/* --- LAYOUT --- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}
.hide-sm { display: inline; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* --- REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.12s; }
.reveal--d2 { transition-delay: 0.24s; }
.reveal--d3 { transition-delay: 0.36s; }
.reveal--d4 { transition-delay: 0.48s; }

/* --- LABEL --- */
.label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.header.scrolled {
  border-bottom-color: var(--rule-light);
  background: rgba(250,250,248,0.97);
}
.header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: flex; align-items: center; }
.header__logo-img {
  height: 42px;
  width: auto;
}
.header__nav { display: flex; align-items: center; gap: 36px; }
.header__nav-link {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-light);
  transition: color 0.3s;
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.header__nav-link:hover,
.header__nav-link.active { color: var(--navy); }
.header__nav-link:hover::after,
.header__nav-link.active::after { width: 100%; }

.header__nav-link--cta {
  font-weight: 500;
  color: var(--white) !important;
  background: var(--navy);
  padding: 10px 24px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: background 0.3s;
}
.header__nav-link--cta::after { display: none; }
.header__nav-link--cta:hover { background: var(--navy-light); }

/* Burger */
.header__burger {
  display: none;
  width: 26px; height: 20px;
  position: relative;
  background: none; border: none; cursor: pointer; padding: 0;
}
.header__burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.header__burger span:first-child { top: 2px; }
.header__burger span:last-child  { bottom: 2px; }
.header__burger.open span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.header__burger.open span:last-child  { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 860px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
}

/* MOBILE OVERLAY */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-overlay__nav { text-align: center; }
.mobile-overlay__link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 36px);
  color: var(--navy);
  padding: 10px 0;
  transition: color 0.3s;
}
.mobile-overlay__link:hover { color: var(--gold); }
.mobile-overlay__contact {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.mobile-overlay__contact a {
  display: block;
  margin: 4px 0;
  transition: color 0.3s;
}
.mobile-overlay__contact a:hover { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 100px;
  background: var(--navy-deep);
  overflow: hidden;
}
/* subtle texture overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 70% 45%, rgba(201,168,76,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 25% 60%, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
}
/* grain */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}
.hero__kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__headline {
  font-family: var(--serif);
  font-size: clamp(38px, 6.5vw, 74px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero__headline span {
  color: var(--gold);
}
.hero__rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 32px 0;
}
.hero__sub {
  font-family: var(--sans);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  right: clamp(24px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.hero__scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.5;
}
.hero__scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
  animation: scrollPulse 2.4s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 15px 34px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--primary:hover {
  background: #d4b45a;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn--outline {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--full { width: 100%; }
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-light); }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: clamp(80px, 11vw, 140px) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about__heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}
.about__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   PILLARS
   ============================================ */
.pillars {
  padding: 0 0 clamp(80px, 11vw, 140px);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillars__card {
  padding: 40px 28px 40px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.pillars__card + .pillars__card {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}
.pillars__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}
.pillars__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillars__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.75;
}
@media (max-width: 960px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillars__card { padding: 32px 24px 32px 0; }
  .pillars__card:nth-child(odd) + .pillars__card { border-left: 1px solid var(--rule); padding-left: 24px; }
  .pillars__card:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 580px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillars__card + .pillars__card { border-left: none; padding-left: 0; }
}

/* ============================================
   APPROACH
   ============================================ */
.approach {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--navy-deep);
  color: var(--white);
}
.approach .label { color: var(--gold); }
.approach__heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 64px;
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.approach__icon {
  width: 36px; height: 36px;
  color: var(--gold);
  margin-bottom: 22px;
}
.approach__icon svg { width: 100%; height: 100%; }
.approach__item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.approach__item p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--silver);
}
@media (max-width: 768px) {
  .approach__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   QUOTE BAND
   ============================================ */
.quote-band {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.quote-band__quote {
  text-align: center;
}
.quote-band__quote p {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  line-height: 1.3;
}

/* ============================================
   OFFICES
   ============================================ */
.offices {
  padding: clamp(80px, 11vw, 140px) 0;
}
.offices__heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 48px;
}
.offices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.offices__card {
  padding: 44px 40px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.offices__card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 24px rgba(0,0,0,0.04);
}
.offices__card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.offices__card-header h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
}
.offices__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 4px 10px;
  border-radius: 3px;
}
.offices__address {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.offices__contact-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.offices__contact-row a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.3s;
}
.offices__contact-row a:hover { color: var(--gold); }
@media (max-width: 640px) {
  .offices__grid { grid-template-columns: 1fr; }
  .offices__card { padding: 32px 28px; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--rule-light);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact__details { display: flex; flex-direction: column; gap: 18px; }
.contact__details h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.contact__details a {
  font-size: 16px;
  color: var(--navy);
  transition: color 0.3s;
}
.contact__details a:hover { color: var(--gold); }

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 6px;
}
.form__group input,
.form__group textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form__group textarea { resize: vertical; min-height: 120px; }
@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: var(--silver);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer__logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.8);
}
.footer__brand p {
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  opacity: 0.7;
  max-width: 260px;
  line-height: 1.7;
}
.footer__col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__col a,
.footer__col p {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 4px;
  transition: opacity 0.3s, color 0.3s;
}
.footer__col a:hover { opacity: 1; color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--silver);
  opacity: 0.5;
}
.footer__tagline { font-style: italic; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* Legal */
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 20px 0;
}
.footer__legal details summary {
  font-size: 11px;
  font-weight: 300;
  color: var(--silver);
  opacity: 0.35;
  cursor: pointer;
  letter-spacing: 0.05em;
  list-style: none;
  transition: opacity 0.3s;
}
.footer__legal details summary::-webkit-details-marker { display: none; }
.footer__legal details summary::before { content: '+ '; }
.footer__legal details[open] summary::before { content: '\2013\00a0'; }
.footer__legal details summary:hover { opacity: 0.6; }
.footer__legal details p {
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--silver);
  opacity: 0.3;
}
