/* ===================================================
   Loan Peak Powder, LLC — Corporate Landing Page
   Dark Navy Palette · Refined Financial Aesthetic
   =================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Navy palette */
  --clr-base:       #060e1e;
  --clr-surface:    #0b1730;
  --clr-surface-2:  #101f40;
  --clr-surface-3:  #162a54;
  --clr-border:     rgba(255, 255, 255, .06);
  --clr-border-lit: rgba(255, 255, 255, .12);

  /* Accent – warm gold */
  --clr-accent:     #c8a44e;
  --clr-accent-dim: rgba(200, 164, 78, .15);
  --clr-accent-glow:rgba(200, 164, 78, .30);

  /* Text */
  --clr-text:       #c9d1e0;
  --clr-text-muted: #7b8ba5;
  --clr-text-bright:#eaf0ff;

  /* Fonts */
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;

  /* Sizing */
  --container: 1200px;
  --gap:       clamp(1rem, 3vw, 2.5rem);
  --radius:    12px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(.25, .46, .45, .94);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-base);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 2rem;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--accent {
  background: var(--clr-accent);
  color: var(--clr-base);
}
.btn--accent:hover {
  background: #d4b45e;
  box-shadow: 0 0 28px var(--clr-accent-glow);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--clr-border-lit);
  color: var(--clr-text-bright);
}
.btn--outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
.btn--sm  { padding: .6rem 1.5rem; font-size: .82rem; }
.btn--full{ width: 100%; justify-content: center; }

/* ===================================================
   HEADER
   =================================================== */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(6, 14, 30, .6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--clr-border);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.scrolled {
  background: rgba(6, 14, 30, .92);
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-text-bright);
  letter-spacing: .01em;
}
.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clr-accent), #a88a3a);
  color: var(--clr-base);
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--ff-body);
  letter-spacing: .05em;
}
.logo__thin { font-weight: 400; opacity: .7; }

/* Nav */
.nav__list {
  display: flex;
  gap: 2.25rem;
}
.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  position: relative;
  transition: color .3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
  transition: width .35s var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: var(--clr-text-bright);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--clr-text-bright);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* Background effects */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .4;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: var(--clr-surface-3);
  top: -10%; left: -8%;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: var(--clr-accent-dim);
  bottom: -5%; right: -5%;
  animation: glowPulse 10s ease-in-out 2s infinite alternate;
}
@keyframes glowPulse {
  0%   { opacity: .25; transform: scale(1); }
  100% { opacity: .5;  transform: scale(1.15); }
}

/* Content */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 72px;
}
.hero__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .2s forwards;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--clr-text-bright);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .35s forwards;
}
.hero__title--accent {
  color: var(--clr-accent);
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .5s forwards;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .65s forwards;
}

/* Visual — floating cards */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero__ring {
  position: absolute;
  width: 300px; height: 300px;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  animation: ringRotate 30s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.35rem;
  background: rgba(11, 23, 48, .75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border-lit);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text-bright);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  opacity: 0;
}
.hero__card i {
  color: var(--clr-accent);
  font-size: 1rem;
}
.hero__card--1 {
  top: 12%; left: 5%;
  animation: cardFloat .8s var(--ease) .6s forwards, float 6s ease-in-out infinite 1.4s;
}
.hero__card--2 {
  top: 48%; right: 5%;
  animation: cardFloat .8s var(--ease) .8s forwards, float 7s ease-in-out .5s infinite 1.6s;
}
.hero__card--3 {
  bottom: 10%; left: 15%;
  animation: cardFloat .8s var(--ease) 1s forwards, float 5.5s ease-in-out 1s infinite 1.8s;
}
@keyframes cardFloat {
  from { opacity: 0; transform: translateY(30px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clr-text-muted);
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.2s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

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

/* ===================================================
   SECTIONS — SHARED
   =================================================== */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--clr-accent);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--clr-text-bright);
}
.section-subtitle {
  max-width: 580px;
  margin: 1rem auto 0;
  color: var(--clr-text-muted);
  font-size: 1.02rem;
}

/* ===================================================
   ABOUT
   =================================================== */
.about {
  padding: 7rem 0;
  background: var(--clr-surface);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border-lit) 50%, transparent);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__text p {
  margin-bottom: 1.25rem;
  color: var(--clr-text);
}
.about__text p:first-child::first-letter {
  font-family: var(--ff-display);
  font-size: 3.2rem;
  float: left;
  line-height: 1;
  margin-right: .5rem;
  margin-top: .15rem;
  color: var(--clr-accent);
  font-weight: 600;
}
.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.value-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.value-card:hover {
  border-color: var(--clr-accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.value-card__icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  font-size: .95rem;
  margin-bottom: .85rem;
}
.value-card h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-text-bright);
  margin-bottom: .4rem;
}
.value-card p {
  font-size: .84rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ===================================================
   SERVICES
   =================================================== */
.services {
  padding: 7rem 0;
  position: relative;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 2rem;
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.service-card:hover {
  border-color: rgba(200, 164, 78, .25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.service-card__number {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-border);
  line-height: 1;
  transition: color .35s;
}
.service-card:hover .service-card__number {
  color: var(--clr-accent-dim);
}
.service-card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--clr-text-bright);
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact {
  padding: 7rem 0;
  background: var(--clr-surface);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border-lit) 50%, transparent);
}
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__desc {
  color: var(--clr-text-muted);
  margin: 1.25rem 0 2rem;
  max-width: 440px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .92rem;
}
.contact__details li i {
  color: var(--clr-accent);
  margin-top: .3rem;
  font-size: .9rem;
}
.contact__details li a {
  transition: color .3s;
}
.contact__details li a:hover {
  color: var(--clr-accent);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.15rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-bright);
  font-size: .92rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8ba5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-dim);
}
.form-group label {
  position: absolute;
  left: 1.15rem; top: 1rem;
  font-size: .88rem;
  color: var(--clr-text-muted);
  pointer-events: none;
  transition: all .25s var(--ease);
  background: var(--clr-surface-2);
  padding: 0 .35rem;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -.55rem;
  font-size: .72rem;
  color: var(--clr-accent);
  letter-spacing: .04em;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--clr-border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__copy {
  font-size: .8rem;
  color: var(--clr-text-muted);
  text-align: center;
}

/* ===================================================
   REVEAL ANIMATION
   =================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__desc  { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--clr-surface);
    border-left: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 999;
  }
  .nav.open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav__link { font-size: 1.1rem; }
  .services__grid { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; }
}
