/*
Theme Name: Unique Funding Source
Theme URI: https://vrm.kwi.mybluehost.me/website_f90fc576/
Author: Unique Funding Source LLC
Description: Professional specialty funding solutions theme with navy and gold branding.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: unique-funding-source
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy:        #0d1f3c;
  --navy-dark:   #081428;
  --navy-mid:    #162848;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-pale:   #f5edd6;
  --white:       #ffffff;
  --off-white:   #f8f6f1;
  --gray-light:  #e8e4da;
  --gray:        #9a9488;
  --text:        #1a1a1a;
  --text-muted:  #555;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(13,31,60,0.08);
  --shadow-md: 0 6px 24px rgba(13,31,60,0.14);
  --shadow-lg: 0 16px 48px rgba(13,31,60,0.18);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1180px;
}

/* ============================================================
   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);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

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

.section { padding: 6rem 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

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

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.site-logo__tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.primary-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--gold);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
  width: 100%;
}

.header-cta .btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 3rem;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('wp-content/uploads/2026/06/photo-1557324232-b8917d3c3dcb.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  transition: opacity 0.5s ease;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,20,40,0.97) 0%,
    rgba(13,31,60,0.88) 50%,
    rgba(22,40,72,0.75) 100%
  );
}

/* Gold geometric accent */
.hero__accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero__accent::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 50%;
}
.hero__accent::after {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero__eyebrow-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services { padding: 6rem 0; }

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { padding: 6rem 0; background: var(--off-white); }

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
/* Fallback if SVG illustration */
.about__image-wrap svg,
.about__illustration {
  width: 100%;
  height: auto;
  max-height: 480px;
}

.about__badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
}
.about__badge-num { font-family: var(--font-display); font-size: 1.8rem; }
.about__badge-txt { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }

.about__content { padding-left: 1rem; }
.about__content h2 { margin-bottom: 1.25rem; }
.about__content p { color: var(--text-muted); margin-bottom: 1rem; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.about__stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.about__stat-lbl {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   CONTACT / FORM SECTION
   ============================================================ */
.contact-section {
  padding: 6rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

.contact-section h2 { color: var(--white); }
.contact-section .section-label { color: var(--gold); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail__text { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.contact-detail__label { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 2px; }

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.specialty-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.contact-form-wrap h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.contact-form-wrap .form-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.75rem;
}

/* ============================================================
   WPCF7 / GENERIC FORM STYLES
   ============================================================ */
.wpcf7-form .form-row,
.funding-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wpcf7-form .form-row.full,
.funding-form .form-row.full { grid-template-columns: 1fr; }

.wpcf7-form label,
.funding-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea,
.funding-form input,
.funding-form select,
.funding-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder,
.funding-form input::placeholder,
.funding-form textarea::placeholder { color: rgba(255,255,255,0.3); }

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.funding-form input:focus,
.funding-form select:focus,
.funding-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.wpcf7-form select,
.funding-form select { cursor: pointer; color: rgba(255,255,255,0.7); }
.wpcf7-form select option,
.funding-form select option { background: var(--navy-dark); color: var(--white); }

.wpcf7-form textarea,
.funding-form textarea { min-height: 110px; resize: vertical; }

.wpcf7-form .wpcf7-submit,
.funding-form .submit-btn {
  width: 100%;
  padding: 0.95rem;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: var(--transition);
}
.wpcf7-form .wpcf7-submit:hover,
.funding-form .submit-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.wpcf7-not-valid-tip { font-size: 0.78rem; color: #f4806a; margin-top: 4px; }
.wpcf7-response-output { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.85rem; }
.wpcf7-mail-sent-ok { background: rgba(80,200,120,0.15); border: 1px solid rgba(80,200,120,0.3); color: #6fcf97; }
.wpcf7-mail-sent-ng, .wpcf7-aborted { background: rgba(244,128,106,0.15); border: 1px solid rgba(244,128,106,0.3); color: #f4806a; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo { margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Header mobile */
  .menu-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1.5rem 1.25rem 2rem;
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .primary-nav a { display: block; padding: 0.9rem 0; }
  .header-cta { display: none; }

  /* Grids */
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .about__image-wrap img { height: 280px; }
  .about__content { padding-left: 0; }
  .about__badge { right: 1rem; }

  .wpcf7-form .form-row,
  .funding-form .form-row { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }
  .about__stats { grid-template-columns: 1fr; }
}


/* Footer: single centered Request Funding button only */
.site-footer .footer-cta-only {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
    text-align: center;
}

.site-footer .footer-cta-only a {
    text-decoration: none;
}


/* Mobile/tablet header fix: prevent menu or header elements from covering the logo */
@media (max-width: 768px) {
  .site-header {
    z-index: 9999;
    background: var(--navy-dark);
  }

  .header-inner {
    min-height: 96px;
    height: auto;
    padding: 22px 1.25rem 14px;
    position: relative;
  }

  .site-logo {
    position: relative;
    z-index: 10002;
    max-width: calc(100% - 64px);
  }

  .site-logo__name {
    font-size: 1rem;
    line-height: 1.15;
  }

  .site-logo__tag {
    font-size: 0.55rem;
    line-height: 1.25;
  }

  .menu-toggle {
    position: relative;
    z-index: 10003;
    flex-shrink: 0;
  }

  .primary-nav {
    top: 96px;
    z-index: 10001;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 104px;
    padding: 24px 1rem 16px;
  }

  .primary-nav {
    top: 104px;
  }

  .site-logo__name {
    font-size: 0.92rem;
  }

  .site-logo__tag {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
}


/* Increase logo size approximately 2x */
.site-logo__name{
  font-size: 2.3rem !important;
}

.site-logo__tag{
  font-size: 1.05rem !important;
  margin-top: 6px !important;
}

@media (max-width:768px){
  .site-logo__name{
    font-size: 1.8rem !important;
  }
  .site-logo__tag{
    font-size: 0.85rem !important;
  }
}

@media (max-width:480px){
  .site-logo__name{
    font-size: 1.5rem !important;
  }
  .site-logo__tag{
    font-size: 0.72rem !important;
  }
}
