/* ============================================
   Pennyworth — Wealth Management
   ============================================ */

:root {
  --forest: #2D4A3E;
  --deep-green: #1E342B;
  --green-dark: #162620;
  --gold: #C5A55A;
  --gold-light: #D4B96E;
  --gold-pale: rgba(197, 165, 90, 0.12);
  --off-white: #F8F6F1;
  --cream: #F2EDE4;
  --charcoal: #2C2C2C;
  --text-muted: #6B6B6B;
  --white: #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 80px;
  --container-max: 1200px;
  --section-padding: clamp(80px, 10vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--off-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.hidden {
  display: none !important;
}

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

/* Section */
.section {
  padding: var(--section-padding) 0;
}

.section--dark {
  background-color: var(--deep-green);
}

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

.section__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__label--light {
  color: var(--gold);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.section__title--light {
  color: var(--white);
}

.section__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 60px;
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.65);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn--primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 165, 90, 0.3);
}

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

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

.btn--full {
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.4s ease;
}

.nav--scrolled {
  background-color: var(--deep-green);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  height: 70px;
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  transition: height 0.4s ease;
}

.nav--scrolled .nav__logo-img {
  height: 38px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

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

.nav__link--cta {
  background-color: var(--gold);
  color: var(--deep-green);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
}

.nav__link--cta:hover {
  background-color: var(--gold-light);
  color: var(--deep-green);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
  border-radius: 1px;
}

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

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--deep-green) 0%, var(--forest) 50%, #345649 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__pattern {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero__tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  animation: scrollBounce 2s infinite;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__fade {
  opacity: 0;
  animation: heroFadeIn 0.9s ease forwards;
}

/* ============================================
   About
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.about__lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

.about__stat {
  position: relative;
  background: var(--white);
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.about__stat-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px 4px 0 0;
}

.about__stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 8px;
}

.about__stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================
   Services
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.services__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 44px 36px;
  transition: all 0.4s ease;
}

.services__card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.services__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 28px;
}

.services__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.services__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.services__list {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services__list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.services__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  transform: translateY(-50%);
}

/* ============================================
   Process
   ============================================ */
.process__timeline {
  position: relative;
  margin-top: 20px;
}

.process__line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cream);
}

.process__line-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.5s ease;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process__step {
  text-align: center;
  padding-top: 56px;
  position: relative;
}

.process__dot {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--off-white);
  border: 3px solid var(--cream);
  transition: all 0.5s ease;
  z-index: 1;
}

.process__step.revealed .process__dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-pale);
}

.process__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.process__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.process__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   Team
   ============================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.team__card {
  text-align: center;
  padding: 48px 32px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

.team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.team__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--deep-green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.team__avatar span {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
}

.team__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.team__role {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.team__bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   Insights
   ============================================ */
.insights__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insights__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 40px 32px;
  transition: all 0.4s ease;
}

.insights__card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.insights__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.insights__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 16px;
}

.insights__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.insights__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
  background: var(--off-white);
}

.testimonial__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial__quote-mark {
  width: 48px;
  height: 48px;
  color: var(--gold-pale);
  margin: 0 auto 32px;
  display: block;
  color: var(--cream);
}

.testimonial__text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.testimonial__cite {
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================
   Contact
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact__details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.contact__detail h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.contact__detail p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact__channels p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact__channels strong {
  color: var(--charcoal);
}

.contact__form-wrapper {
  background: var(--white);
  padding: 44px;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form__group {
  position: relative;
  margin-bottom: 24px;
}

.form__input {
  width: 100%;
  padding: 16px 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form__input:focus {
  border-bottom-color: var(--gold);
}

.form__label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: 0;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.form__label--select {
  top: 0;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.form__select {
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 80px;
}

.form__disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--green-dark);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.2);
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.footer__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.footer__bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

.footer__bottom p:last-child {
  max-width: 500px;
  text-align: right;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    flex-direction: row;
    gap: 16px;
  }

  .about__stat {
    flex: 1;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .services__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .process__line {
    display: none;
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .team__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .insights__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--deep-green);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav__link--cta {
    margin-top: 12px;
    font-size: 16px;
    padding: 14px 32px;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero__title br {
    display: none;
  }

  .about__stats {
    flex-direction: column;
  }

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

  .services__card:last-child {
    max-width: 100%;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
  }

  .process__step {
    text-align: left;
    padding-top: 0;
    padding-left: 44px;
  }

  .process__dot {
    top: 4px;
    left: 0;
    transform: none;
  }

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

  .team__card:last-child {
    max-width: 100%;
  }

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

  .contact__details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact__form-wrapper {
    padding: 32px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer__bottom p:last-child {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about__stat-number {
    font-size: 28px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
