/* ============================================
   ALTIUS Corporate Finance — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #0B1D33;
  --navy-deep: #060F1A;
  --navy-light: #132B4A;
  --gold: #B8965A;
  --gold-light: #D4B87A;
  --gold-dark: #9A7A42;
  --white: #FFFFFF;
  --off-white: #F7F6F3;
  --gray-100: #F0EFEC;
  --gray-200: #E0DDD7;
  --gray-300: #C4C0B8;
  --gray-500: #8A8680;
  --gray-700: #4A4742;
  --text-dark: #1A1A1A;
  --text-body: #3D3D3D;
  --text-light: #6B6B6B;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --header-height: 90px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.transparent {
  background: transparent; box-shadow: none;
}

.site-header.transparent .logo-text {
  color: var(--white);
}

.site-header.transparent .nav-links a {
  color: var(--white);
}

.site-header.transparent .nav-links a:hover,
.site-header.transparent .nav-links a.active {
  color: var(--gold-light);
}

.site-header.transparent .menu-toggle span {
  background: var(--white);
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  width: 100%;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 15, 26, 0.82) 0%,
    rgba(11, 29, 51, 0.65) 50%,
    rgba(11, 29, 51, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* Sub-page hero */
.hero-sub {
  min-height: 50vh;
  padding-top: var(--header-height);
}

.hero-sub .hero-content {
  padding: 4rem 0 3rem;
}

.hero-sub h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 150, 90, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section-lg {
  padding: 8rem 0;
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-offwhite {
  background: var(--off-white);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
}

.section-header.center p {
  margin: 0 auto;
}

.section-navy .section-header p {
  color: rgba(255,255,255,0.65);
}

/* Decorative line */
.gold-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem 0;
}

.center .gold-line {
  margin: 1.2rem auto;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card .card-link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.service-card:hover .card-link::after {
  transform: translateX(4px);
}

/* --- Service Detail (Services page) --- */
.service-detail {
  padding: 5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  background: var(--off-white);
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.service-detail-label {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-detail h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.service-detail-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.service-detail-body h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.service-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- Insight Cards --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  overflow: hidden;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--gray-300);
}

.insight-card-img {
  height: 220px;
  overflow: hidden;
}

.insight-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insight-card:hover .insight-card-img img {
  transform: scale(1.05);
}

.insight-card-body {
  padding: 2rem;
}

.insight-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.insight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.insight-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.insight-card .card-link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.insight-card:hover .card-link::after {
  transform: translateX(4px);
}

/* --- Article Page --- */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-meta span {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
}

.article-cta p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 15, 26, 0.88) 0%,
    rgba(11, 29, 51, 0.75) 100%
  );
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.8;
}

.contact-detail {
  margin-top: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-detail-text a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--off-white);
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

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

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Mission / Feature Boxes --- */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-box {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.feature-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.section-navy .feature-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}

/* --- About page specifics --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  height: 500px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .service-detail-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-img {
    height: 350px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .features-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    gap: 1.5rem;
    transition: right var(--transition);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .hero-sub {
    min-height: 40vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-lg {
    padding: 5rem 0;
  }
  
  .services-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cta-banner {
    padding: 4rem 0;
  }
}

/* --- Footer Disclaimer --- */
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-disclaimer p {
  margin-bottom: 0.5rem;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}
