/* ============================================================
   AVYAN FM — SHARED STYLESHEET
   assets/css/style.css
   Included by includes/header.php on every page
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --navy:       #1A365D;
  --royal:      #273b7c;
  --mid-blue:   #2B5299;
  --sky:        #4A90D9;
  --light-blue: #7BB3E0;
  --off-white:  #f8fafc;
  --text-dark:  #1a202c;
  --text-mid:   #4A5568;
  --text-light: #718096;
  --gold:       #C9A84C;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: #0d1a2e;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--royal);
  padding: 9px 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  letter-spacing: .02em;
  position: relative;
  z-index: 1001;
}
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-sep { opacity: .35; }

/* ── MAIN NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(13,26,46,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74,144,217,.15);
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 500;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--light-blue); }
.nav-cta {
  background: var(--sky) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--mid-blue) !important; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13,26,46,.98);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.77,0,.18,1);
  padding: 80px 40px 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: .04em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mobile-menu a:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu a:hover { color: var(--light-blue); }
.mob-cta {
  margin-top: 28px !important;
  background: var(--sky) !important;
  color: #fff !important;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
  border: none !important;
  padding: 16px 0 !important;
}
.mob-contact { margin-top: 20px; text-align: center; width: 100%; }
.mob-contact a {
  display: block;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.45) !important;
  padding: 5px 0 !important;
  border: none !important;
}

/* ── SHARED LABELS ── */
.lbl {
  font-size: 11px; letter-spacing: .22em; color: var(--sky);
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.lbl::before { content: ''; width: 32px; height: 1px; background: var(--sky); }

.lbl-c {
  font-size: 11px; letter-spacing: .22em; color: var(--sky);
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.lbl-c::before, .lbl-c::after { content: ''; width: 32px; height: 1px; background: var(--sky); }

.lbl-w {
  font-size: 11px; letter-spacing: .22em; color: var(--light-blue);
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.lbl-w::before, .lbl-w::after { content: ''; width: 32px; height: 1px; background: var(--light-blue); }

/* ── SHARED TYPOGRAPHY ── */
h2.serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

/* ── SHARED BUTTONS ── */
.btn-p {
  background: var(--sky); color: #fff; padding: 15px 36px;
  border-radius: 2px; text-decoration: none; font-weight: 600;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn-p:hover { background: var(--mid-blue); transform: translateY(-2px); }

.btn-o {
  border: 1px solid rgba(255,255,255,.45); color: #fff; padding: 15px 36px;
  border-radius: 2px; text-decoration: none; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.btn-o:hover { border-color: var(--light-blue); background: rgba(74,144,217,.12); }

/* ── DIVIDER ── */
.divider { height: 4px; background: linear-gradient(to right, var(--navy), var(--sky), var(--navy)); }

/* ── FOOTER ── */
footer { background: #0d1a2e; color: rgba(255,255,255,.65); padding: 72px 80px 40px; }
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.f-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .85; }
.f-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.5); max-width: 320px; }
.f-brand .trading { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 12px; font-style: italic; }
.f-col h4 {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.85); font-weight: 600; margin-bottom: 20px;
}
.f-col a {
  display: block; color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color .2s;
}
.f-col a:hover { color: var(--light-blue); }
.f-col address { font-style: normal; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.5); }
.contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.contact-item i { margin-top: 2px; color: var(--sky); font-size: 15px; }
.f-bot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.f-bot p { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── SCROLL REVEAL ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }

/* ── RESPONSIVE — SHARED ── */
@media (max-width: 900px) {
  .topbar       { padding: 8px 20px; }
  nav           { padding: 0 20px; }
  .nav-links    { display: none; }
  .hamburger    { display: flex; }
  footer        { padding: 60px 24px 32px; }
  .f-top        { grid-template-columns: 1fr; gap: 36px; }
}
