/* ============================================
   FAWKNER CAPITAL — Global Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0b1a2e;
  --navy-light: #132d4a;
  --navy-mid: #1a3a5c;
  --charcoal: #1e2a3a;
  --gold: #b8964e;
  --gold-light: #d4b06a;
  --gold-pale: #f5eed9;
  --cream: #faf8f4;
  --white: #ffffff;
  --grey-50: #f7f8f9;
  --grey-100: #eef0f2;
  --grey-200: #dde1e6;
  --grey-300: #c1c7cf;
  --grey-400: #8d95a0;
  --grey-500: #6b7280;
  --grey-600: #4b5563;
  --grey-700: #374151;
  --grey-800: #1f2937;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-light: #8892a4;
  --text-on-dark: #e2e8f0;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--grey-200);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo .logo-mark {
  display: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.nav-links .btn-contact {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links .btn-contact::after {
  display: none;
}

.nav-links .btn-contact:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Nav Dropdown --- */
.nav-links li {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 1001;
  list-style: none;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--grey-200);
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--white);
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-dropdown li a:hover {
  color: var(--navy);
  background: var(--grey-50);
}

.nav-dropdown li a::after {
  display: none;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.has-dropdown > a::before {
  content: '';
  order: 2;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 2px;
  transition: transform var(--transition);
}

.has-dropdown > a::after {
  display: none !important;
}

.has-dropdown:hover > a::before {
  transform: rotate(180deg);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: all var(--transition);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184, 150, 78, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

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

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-on-dark);
  line-height: 1.8;
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

/* Page heroes (shorter) */
.page-hero {
  min-height: 40vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(184, 150, 78, 0.06) 0%, transparent 60%);
}

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

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-on-dark);
  font-size: 1.1rem;
  max-width: 600px;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

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

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

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

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

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

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

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

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

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 70px 0;
}

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

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

.section-dark p {
  color: var(--text-on-dark);
}

.section-grey {
  background: var(--grey-50);
}

.section-cream {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  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;
  line-height: 1.8;
}

/* --- Divider Line --- */
.gold-line {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.gold-line-center {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem auto;
}

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

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

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

.service-card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 1.4rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.team-card {
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  border: 3px solid var(--grey-100);
  transition: all var(--transition);
}

.team-card:hover .team-photo {
  border-color: var(--gold);
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

.team-card .team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

.team-card .team-link:hover {
  color: var(--gold-light);
}

/* --- Team Detail Page --- */
.team-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.team-detail-photo {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 600;
  position: sticky;
  top: 120px;
}

.team-detail-info h2 {
  margin-bottom: 0.25rem;
}

.team-detail-info .role {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.team-detail-info .bio {
  font-size: 1rem;
  line-height: 1.85;
}

.team-detail-info .bio p {
  margin-bottom: 1.2rem;
}

.team-detail-info .qualifications {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}

.team-detail-info .qualifications h4 {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-family: var(--font-body);
}

.team-detail-info .contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--grey-50);
  border-radius: 8px;
}

.team-detail-info .contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3.5rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-on-dark);
  letter-spacing: 0.05em;
}

/* --- Assignments / Track Record --- */
.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.assignment-category {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--grey-200);
  padding: 2.5rem;
  transition: all var(--transition);
}

.assignment-category:hover {
  box-shadow: var(--shadow-md);
}

.assignment-category h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.assignment-category .gold-line {
  margin-bottom: 1.5rem;
}

.client-list {
  list-style: none;
}

.client-list li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--grey-100);
  transition: color var(--transition);
}

.client-list li:last-child {
  border-bottom: none;
}

.client-list li:hover {
  color: var(--navy);
}

/* --- CTA / Banner --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184, 150, 78, 0.06) 0%, transparent 70%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

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

.cta-section p {
  color: var(--text-on-dark);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

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

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.contact-info-block p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-info-block a {
  color: var(--gold);
  font-weight: 500;
}

.contact-info-block a:hover {
  color: var(--gold-light);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}

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

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

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: var(--text-on-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--grey-400);
  line-height: 1.7;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--grey-400);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  color: var(--grey-500);
}

.footer-bottom a {
  color: var(--grey-400);
}

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

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .team-detail {
    grid-template-columns: 1fr;
  }

  .team-detail-photo {
    position: static;
    margin: 0 auto 2rem;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .hero {
    min-height: 80vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
