/* Liberty Advisors LLC — Global Styles */

:root {
  --navy: #1a2744;
  --navy-light: #243556;
  --navy-dark: #111b30;
  --gold: #c9a84c;
  --gold-light: #d4ba6e;
  --gold-dark: #b0923d;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #8895a4;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif Pro', 'Georgia', serif;
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;
  --transition: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

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

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1.25em;
  color: var(--text-secondary);
}

ul, ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-primary);
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 45px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--gold);
  background: var(--gray-50);
}

.header__nav .dropdown {
  position: relative;
}

.header__nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 100;
}

.header__nav .dropdown:hover .dropdown-content {
  display: block;
}

.header__nav .dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 0;
}

.header__cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.header__cta:hover {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Mobile Nav */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav__sub {
  padding-left: 1.5rem;
}

.mobile-nav__sub a {
  font-size: 0.95rem;
  font-weight: 400;
}

.mobile-nav .header__cta {
  display: inline-block;
  margin-top: 1.5rem;
  text-align: center;
  border-bottom: none;
}

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

/* Main content offset for fixed header */
main {
  padding-top: var(--header-height);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero--large {
  padding: 7rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/hero-bg.png') center/cover no-repeat;
  opacity: 0.08;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero__breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
}

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

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 700px;
}

.hero__subtitle {
  color: var(--gold) !important;
  font-family: var(--font-serif);
  font-size: 1.1rem !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
}

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

.btn--primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

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

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

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

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  height: 200px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.card__body {
  padding: 1.75rem;
}

.card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card__body h3 a {
  color: var(--navy);
}

.card__body h3 a:hover {
  color: var(--gold);
}

.card__body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card__link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card__link:hover {
  color: var(--gold-dark);
}

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

.card__link:hover::after {
  transform: translateX(4px);
}

/* Service Card */
.service-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  font-family: var(--font-serif);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.3;
}

.testimonial__text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial__author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

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

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-banner .btn--primary {
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

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

/* FAQ */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item__question {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

.faq-item__question:hover {
  background: var(--gray-50);
}

.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-item__question::after {
  content: '\2212';
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 2000px;
}

.faq-item__answer-inner {
  padding: 0 1.5rem 1.5rem;
}

.faq-item__answer-inner p {
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__brand img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer__brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer__contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.footer__contact a {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

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

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

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

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card__body {
  padding: 1.75rem;
}

.blog-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.blog-card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card__body h3 a {
  color: var(--navy);
}

.blog-card__body h3 a:hover {
  color: var(--gold);
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Blog Article */
.article-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

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

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

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.article-meta span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Press Item */
.press-item {
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  transition: all var(--transition);
  background: var(--white);
}

.press-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}

.press-item__outlet {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.press-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.press-item h3 a {
  color: var(--navy);
}

.press-item h3 a:hover {
  color: var(--gold);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-4px);
}

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

.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info-card h4 {
  margin-bottom: 0.5rem;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }
  .hero--large { padding: 4rem 0; }
  .hero h1 { font-size: 2.25rem; }

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

  .two-col--reverse {
    direction: ltr;
  }

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

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

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

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

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .hero h1 {
    font-size: 1.75rem;
  }
}

/* Page content */
.page-content {
  padding: 3rem 0 5rem;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content h2 {
  margin-top: 2.5rem;
}

/* Highlight box */
.highlight-box {
  background: var(--gray-50);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-serif);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}
