/* === ProsperLink — Main Stylesheet === */
/* Color Scheme: "Slate & Brass" — unique palette */

:root {
  --clr-dark: #1B1F29;
  --clr-section: #232834;
  --clr-section-light: #F5F1EB;
  --clr-section-alt: #EDE7DD;
  --clr-accent: #C88F45;
  --clr-accent-dark: #A67432;
  --clr-accent-light: #DCAA60;
  --clr-secondary: #4A7A5F;
  --clr-secondary-dark: #396248;
  --clr-light: #F5F1EB;
  --clr-light-alt: #EBE5DB;
  --clr-text: #1B1F29;
  --clr-text-light: #F5F1EB;
  --clr-text-muted: #697082;
  --clr-border: #D3CDC0;
  --clr-white: #FFFFFF;
  --clr-card-bg: #FDFCFA;
  --clr-footer: #151820;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --max-width: 1200px;
  --nav-height: 68px;
}

*,
*::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-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-white);
}

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

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--clr-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--clr-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}

.btn-primary:hover {
  background-color: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  color: var(--clr-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-light);
  border-color: var(--clr-light);
}

.btn-outline:hover {
  background-color: var(--clr-light);
  color: var(--clr-dark);
}

.btn-secondary {
  background-color: var(--clr-secondary);
  color: var(--clr-white);
  border-color: var(--clr-secondary);
}

.btn-secondary:hover {
  background-color: var(--clr-secondary-dark);
  border-color: var(--clr-secondary-dark);
  color: var(--clr-white);
}

/* ========== NAVBAR (class selector only) ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--clr-dark);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

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

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-light);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar-logo span {
  color: var(--clr-accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--clr-text-muted);
  font-size: 0.938rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--clr-accent-light);
  border-bottom-color: var(--clr-accent);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--clr-light);
}

.navbar-toggle-bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--clr-light);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ========== HERO SECTION (class selector) ========== */
.hero-section {
  padding: 160px 0 100px;
  background-color: var(--clr-dark);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200,143,69,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,122,95,0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200,143,69,0.12);
  border: 1px solid var(--clr-accent);
  color: var(--clr-accent-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 3.25rem;
  color: var(--clr-light);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  color: var(--clr-accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: #B0B8C8;
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-accent);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: #8890A0;
  margin-top: 4px;
}

/* ========== ABOUT SECTION (class selector) ========== */
.about-section {
  padding: 100px 0;
  background-color: var(--clr-section-light);
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text h2 span {
  color: var(--clr-accent);
}

.about-text p {
  margin-bottom: 18px;
  color: var(--clr-text-muted);
}

.about-text .about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background-color: var(--clr-secondary);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.about-feature-text span {
  font-size: 0.825rem;
  color: var(--clr-text-muted);
}

.about-visual {
  position: relative;
}

.about-visual-card {
  background-color: var(--clr-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--clr-text-light);
  position: relative;
  z-index: 2;
}

.about-visual-card h3 {
  color: var(--clr-accent-light);
  margin-bottom: 16px;
}

.about-visual-card p {
  color: #B0B8C8;
  margin-bottom: 24px;
}

.about-visual-card .about-stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.about-visual-card .about-stat-row .about-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
}

.about-visual-card .about-stat-row .about-stat-label {
  font-size: 0.8rem;
  color: #8890A0;
}

.about-visual-accent {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--clr-accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* ========== SERVICES SECTION (class selector) ========== */
.services-section {
  padding: 100px 0;
  background-color: var(--clr-white);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header h2 {
  margin-bottom: 12px;
}

.services-header h2 span {
  color: var(--clr-accent);
}

.services-header p {
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background-color: var(--clr-card-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background-color: var(--clr-section);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
}

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

/* ========== FEATURES SECTION (class selector) ========== */
.features-section {
  padding: 100px 0;
  background-color: var(--clr-section);
  color: var(--clr-text-light);
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  color: var(--clr-light);
  margin-bottom: 12px;
}

.features-header h2 span {
  color: var(--clr-accent);
}

.features-header p {
  color: #8890A0;
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease;
}

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

.feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(200,143,69,0.12);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.feature-card h3 {
  color: var(--clr-light);
  margin-bottom: 10px;
}

.feature-card p {
  color: #8890A0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== STATS SECTION (class selector) ========== */
.stats-section {
  padding: 80px 0;
  background-color: var(--clr-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 24px;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--clr-white);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #CDD5DF;
  margin-top: 8px;
  font-weight: 500;
}

/* ========== CTA SECTION (class selector) ========== */
.cta-section {
  padding: 100px 0;
  background-color: var(--clr-section-light);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
  font-size: 2.25rem;
}

.cta-section h2 span {
  color: var(--clr-accent);
}

.cta-section p {
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ========== CONTACT SECTION (class selector) ========== */
.contact-section {
  padding: 100px 0;
  background-color: var(--clr-dark);
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  color: var(--clr-light);
  margin-bottom: 16px;
}

.contact-info h2 span {
  color: var(--clr-accent);
}

.contact-info p {
  color: #B0B8C8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(200,143,69,0.12);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  color: var(--clr-light);
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.contact-detail-text span {
  color: #8890A0;
  font-size: 0.85rem;
}

.contact-form-wrapper {
  background-color: var(--clr-section);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-form-wrapper h3 {
  color: var(--clr-light);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--clr-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--clr-light);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
}

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

.form-submit {
  margin-top: 8px;
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.875rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(74,122,95,0.15);
  color: #6BBF8A;
  border: 1px solid rgba(74,122,95,0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(200,80,60,0.12);
  color: #E08A7A;
  border: 1px solid rgba(200,80,60,0.3);
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: var(--clr-footer);
  padding: 60px 0 36px;
  color: #8890A0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand h3 {
  color: var(--clr-light);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--clr-accent);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #8890A0;
}

.footer-col h4 {
  color: var(--clr-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #8890A0;
  font-size: 0.85rem;
  transition: color 0.25s ease;
}

.footer-col ul li a:hover {
  color: var(--clr-accent-light);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
}

.footer-bottom a {
  color: var(--clr-accent-light);
}

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

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== PAGE HEADER (for legal pages, etc) ========== */
.page-header {
  padding: 140px 0 60px;
  background-color: var(--clr-dark);
  text-align: center;
}

.page-header h1 {
  color: var(--clr-light);
  margin-bottom: 12px;
}

.page-header p {
  color: #8890A0;
  font-size: 0.95rem;
}

/* ========== HOME PAGE SPECIFIC WRAPPER ========== */
.home-page .hero-section { }
.home-page .about-section { }
.home-page .services-section { }
.home-page .features-section { }
.home-page .stats-section { }
.home-page .cta-section { }
.home-page .contact-section { }

/* ========== FORM STYLES ========== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--clr-light);
  -webkit-box-shadow: 0 0 0px 1000px var(--clr-dark) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual-accent {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
    z-index: 1001;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--clr-section);
    flex-direction: column;
    padding: 90px 32px 32px;
    gap: 24px;
    transition: right 0.35s ease;
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .navbar-links.active {
    right: 0;
  }

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }

  .hero-section {
    min-height: auto;
    padding: 130px 0 70px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
