/* Custom styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

.hero {
  background: linear-gradient(to bottom, #ffffff 0%, #cccccc 50%, #000000 100%);
  color: #fff;
  text-align: center;
  padding: 0.5rem 2rem;
}
.hero h1 {
  font-size: 3.5rem;
  color: #111 !important;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.75rem;
  color: #111 !important;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #C99A36;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
  transform: translate(30px, -30px);
}

.hero-photo {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

.cta-button {
  background: #C99A36;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: bold;
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
}

.about, .services{
  padding: 4rem 2rem;
  background: white;
  color: #333;
}

.services .service-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.inline-logo {
  height: 20px;
  vertical-align: middle;
}

.contact {
  padding: 4rem 2rem;
  background: #ffffff;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
}

.contact h2 {
  font-size: 2.5rem;
  color: #222;
  text-align: center;
  margin-bottom: 2rem;
}

.contact form {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #f3f4f6; /* Slight grey background */
  border: 2px solid #d1d5db; /* More prominent outline */
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15), 0 2px 8px rgba(44, 62, 80, 0.1); /* Enhanced shadow */
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem 2rem;
}

.contact .form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1.08rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #f9fafb;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1.5px 6px rgba(44,62,80,0.04);
}

.contact input[list] {
  cursor: pointer;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  border: 1.5px solid #C99A36;
  outline: none;
  box-shadow: 0 0 0 2px #ffe6b8;
  background: #fff;
}

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

.contact button {
  background: linear-gradient(90deg, #C99A36 60%, #e0b354 100%);
  color: white;
  border: none;
  padding: 1.15rem 2.5rem;
  font-weight: bold;
  font-size: 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  letter-spacing: 0.5px;
}

.contact button:hover {
  background: linear-gradient(90deg, #b5862f 60%, #e0b354 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(44,62,80,0.13);
}

.error-message {
  color: #e53e3e;
  font-size: .875rem;
  height: 1em;           /* reserve space even when empty */
  margin-top: .25rem;
}

input:invalid,
textarea:invalid {
  border-color: #e53e3e !important;
}

.contact-info {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
}

.contact-info p {
  margin: 0.25rem 0;
}

.site-footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

.about-modern h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111 !important;
}

.about-modern p {
  font-size: 1.25rem; /* ~20px */
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-modern {
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  padding: 2rem 2rem;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start; /* Align content to the left */
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 0 2rem; /* Keep it off left edge but visually aligned */
}

.about-photo {
  flex: 1 1 300px;
  text-align: center;
}

.about-text {
  flex: 2 1 500px;
  max-width: 700px;
}

.about-photo img {
  width: 100%;
  max-width: 280px;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.badge {
  background-color: #C99A36;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.9rem;
}

.parallax-showcase {
  position: relative;
  overflow: hidden;
  height: 80vh;
  width: 100%;
}

.parallax-image-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.parallax-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

.parallax-text-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3); /* Optional: semi-dark tint behind text */
}

.parallax-text-overlay h2 {
  font-size: 3rem;
  color: #C99A36; /* Gold */
  font-weight: 800;
  margin-bottom: 1rem;
}

.parallax-text-overlay p {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 500;
}

.services-linkout {
  padding: 4rem 2rem;
  background: #f9f9f9;
  color: #222;
}

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.services-text {
  flex: 1 1 60%;
  max-width: 600px;
}

.services-text h2 {
  font-size: 2.25rem;
  color: #222;
  margin-bottom: 1rem;
}

.services-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services-logo {
  flex: 1 1 30%;
  text-align: center;
}

.services-logo img {
  max-width: 220px;
  height: auto;
}

/* Fancy Footer Styles - Tighter Spacing for Black Background */
.fancy-footer {
  background: #000;
  color: #fff;
  padding: 24px 0 0 0; /* reduced top padding */
  font-size: 1rem;
  margin-top: 24px; /* reduced margin */
}
.fancy-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px; /* reduced side padding */
}
.fancy-footer .footer-contact, .fancy-footer .footer-legal {
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 8px; /* less bottom margin */
}
.fancy-footer h3 {
  color: #C99A36;
  margin-bottom: 6px; /* less space below heading */
  font-size: 1.1em;
}
.fancy-footer a {
  color: #C99A36;
  text-decoration: none;
  transition: color 0.2s;
}
.fancy-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.fancy-footer .footer-icon {
  margin-right: 6px;
  font-size: 1.1em;
}
.fancy-footer .footer-social {
  margin-top: 8px; /* less space above social icons */
}
.fancy-footer .footer-social-link {
  font-size: 1.3em;
  margin-right: 8px;
  color: #C99A36;
  transition: color 0.2s;
}
.fancy-footer .footer-social-link:last-child {
  margin-right: 0;
}
.fancy-footer .footer-social-link:hover {
  color: #fff;
}
.fancy-footer .footer-bottom {
  border-top: 1px solid #222;
  margin-top: 10px; /* less space above copyright */
  padding: 8px 0 6px 0; /* less vertical padding */
  text-align: center;
  font-size: 0.95em;
  color: #bbb;
}
@media (max-width: 700px) {
  .fancy-footer .footer-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 4vw;
  }
  .fancy-footer .footer-contact, .fancy-footer .footer-legal {
    min-width: unset;
    width: 100%;
    margin-bottom: 6px;
  }
}
.footer-social-link svg {
  transition: transform 0.2s ease;
}

.footer-social-link:hover svg {
  transform: scale(1.1);
}
.footer-social-link svg path {
  fill: #C99A36;
  transition: fill 0.2s ease;
}
/* ==============
   FLUID VARIABLES
   ============== */
:root {
  /* spacing scale */
  --space-min: 0.5rem;
  --space-max: 3rem;
  --space: clamp(var(--space-min), 2vw, var(--space-max));

  /* typography scale */
  --fs-h1-min: 2rem;
  --fs-h1-max: 4rem;
  --fs-h2-min: 1.25rem;
  --fs-h2-max: 2.5rem;
  --fs-body-min: 1rem;
  --fs-body-max: 1.25rem;

  /* layout breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
  --bp-xxl: 1600px;
}

/* fluid typography */
.hero h1 {
  font-size: clamp(var(--fs-h1-min), 4vw, var(--fs-h1-max));
}
.hero h2 {
  font-size: clamp(var(--fs-h2-min), 2.5vw, var(--fs-h2-max));
}
.hero p,
.about-modern p,
.services-text p {
  font-size: clamp(var(--fs-body-min), 1.5vw, var(--fs-body-max));
}

/* fluid padding/margins */
.hero,
.about-modern,
.services-linkout,
.contact {
  padding: var(--space);
}
.hero-wrapper,
.services-wrapper,
.about-wrapper {
  gap: var(--space);
}

/* grid auto-fit for services */
.services .service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* =========================
   ADDITIONAL BREAKPOINTS
   ========================= */

/* Ultra-wide screens (>1600px) */
@media (min-width: calc(var(--bp-xxl) + 1px)) {
  body { max-width: 1800px; margin: 0 auto; }
  .hero-wrapper { padding: clamp(2rem, 5vw, 6rem); }
  .about-wrapper, .services-wrapper { gap: 3rem; }
}

/* Large desktops (1200–1600px) */
@media (min-width: 1201px) and (max-width: var(--bp-xxl)) {
  .hero h1 { line-height: 1.1; }
  .contact form { padding: clamp(2rem, 3vw, 4rem); }
}

/* Tablets/Large phones (768–992px) */
@media (max-width: var(--bp-lg)) {
  .hero-wrapper { flex-direction: column; }
  .hero-text, .hero-photo { transform: none; text-align: center; }
  .contact form { width: 95%; }
}

/* Phones (≤768px) */
@media (max-width: var(--bp-md)) {
  .hero h1 { font-size: clamp(1.75rem, 8vw, 3rem); }
  .contact h2 { font-size: 1.5rem; }
  .cta-button, .contact button { width: 100%; }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  .hero {
    padding: 1.2rem 0.5rem;
    text-align: center;
  }
  .hero-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 100vw;
    margin: 0 auto;
  }
  .hero-text {
    text-align: center;
    margin: 0 auto 1.2rem auto;
    padding: 0;
    transform: none;
    width: 100%;
  }
  .hero-photo {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }
  .hero-image {
    max-width: 80vw;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .cta-button {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 1.2rem auto 0 auto;
    font-size: 1.05rem;
    padding: 1em 0.5em;
    border-radius: 1em;
    box-sizing: border-box;
  }
  .hero h1, .hero h2, .hero p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 400px) {
  .hero {
    padding: 0.7rem 0.2rem;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 0.8em 0.3em;
    max-width: 98vw;
  }
}

/* Loan CTA Section Styles */
.loan-cta-section {
  width: 100%;
  background: #fff;
  padding: 2.5rem 0 2.5rem 0;
  margin: 2.5rem 0 2.5rem 0;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
}
.loan-application-btn-wrapper {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}
.loan-application-btn {
  display: inline-block;
  background-color: #bfa046;
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 1.1em 2.5em;
  border-radius: 1.5em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transition: background 0.2s, transform 0.2s;
  margin: 0 auto;
}
.loan-application-btn:hover,
.loan-application-btn:focus {
  background-color: #a67a2e;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 1024px) {
  .loan-cta-section {
    padding: 2rem 0 2rem 0;
    margin: 2rem 0 2rem 0;
  }
  .loan-application-btn {
    font-size: 1.1rem;
    padding: 1em 1em;
  }
}
@media (max-width: 768px) {
  .loan-cta-section {
    padding: 1.5rem 0 1.5rem 0;
    margin: 1.5rem 0 1.5rem 0;
  }
  .loan-application-btn {
    width: 95%;
    max-width: 400px;
    font-size: 1rem;
    padding: 0.9em 0.5em;
    border-radius: 1.2em;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
  }
}
@media (max-width: 480px) {
  .loan-cta-section {
    padding: 1rem 0 1rem 0;
    margin: 1rem 0 1rem 0;
  }
  .loan-application-btn {
    width: 98%;
    font-size: 0.95rem;
    padding: 0.8em 0.5em;
    border-radius: 1em;
    max-width: 320px;
  }
}
@media (max-width: 400px) {
  .loan-cta-section {
    padding: 0.7rem 0 0.7rem 0;
    margin: 0.7rem 0 0.7rem 0;
  }
  .loan-application-btn {
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.7em 0.4em;
    white-space: normal;
    word-break: keep-all;
    max-width: 98vw;
  }
}

/* ==== NAME ADJUSTMENT ON MOBILE ==== */

/* Tablets / large phones */
@media (max-width: 768px) {
  .hero-text {
    /* add some breathing room above the name */
    margin-top: clamp(1.5rem, 8vw, 2.5rem);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-text {
    margin-top: clamp(2rem, 10vw, 3rem);
  }
}

/* Extra-small phones */
@media (max-width: 320px) {
  .hero-text {
    margin-top: 2rem;
  }
}

/* Orientation tweaks */
@media (orientation: landscape) and (max-height: 600px) {
  .hero { padding-top: 1rem; padding-bottom: 1rem; }
  .hero-wrapper { gap: 1rem; }
}

/* High-DPI / Retina images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .services-logo img,
  .about-photo img {
    image-rendering: auto;
  }
}

/* Utility helpers */
.text-center { text-align: center !important; }
.mt-auto    { margin-top: auto; }
.mb-auto    { margin-bottom: auto; }
.p-auto     { padding: var(--space) !important; }

@media (max-width: 480px) {
  .services-linkout {
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
  .services-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .services-text {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 1rem auto;
    text-align: center;
  }
  .services-logo {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .services-logo img {
    max-width: 80vw;
    height: auto;
    margin: 0 auto;
  }
  .services-text h2 {
    text-align: center;
  }
}

/* --- ABOUT SECTION MOBILE OPTIMIZATION --- */
@media (max-width: 480px) {
  .about-modern {
    padding: 1.2rem 0.5rem;
    text-align: center;
  }
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 100vw;
    margin: 0 auto;
  }
  .about-photo {
    text-align: center;
    margin: 0 auto 1.2rem auto;
    width: 100%;
  }
  .about-photo img {
    max-width: 80vw;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  }
  .about-text {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100vw;
    padding: 0;
  }
  .about-modern h2,
  .about-modern p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .badges {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .about-modern {
    padding: 0.7rem 0.2rem;
  }
  .about-photo img {
    max-width: 98vw;
  }
}

/* --- FANCY FOOTER MOBILE OPTIMIZATION --- */
@media (max-width: 480px) {
  .fancy-footer {
    padding: 0 0 0 0;
    font-size: 1.05rem;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, #111 80%, #C99A36 100%);
  }
  .fancy-footer .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    gap: 1.2rem;
    width: 100%;
  }
  .fancy-footer .footer-contact, .fancy-footer .footer-legal {
    width: 100%;
    min-width: unset;
    margin-bottom: 0.7rem;
    text-align: center;
    font-size: 1.08rem;
    color: #fff;
    background: none;
    box-shadow: none;
    padding: 0.2rem 0;
  }
  .fancy-footer h3 {
    color: #C99A36;
    font-size: 1.13em;
    margin-bottom: 0.3em;
    letter-spacing: 0.5px;
  }
  .fancy-footer a {
    color: #ffe6b8;
    font-weight: 600;
    font-size: 1.08em;
    padding: 0.2em 0.5em;
    border-radius: 0.5em;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
  }
  .fancy-footer a:hover {
    background: #C99A36;
    color: #fff;
    text-decoration: none;
  }
  .fancy-footer .footer-icon {
    font-size: 1.2em;
    margin-right: 0.4em;
    vertical-align: middle;
  }
  .fancy-footer .footer-social {
    margin: 1.2rem 0 0.7rem 0;
    text-align: center;
  }
  .fancy-footer .footer-social-link {
    font-size: 2.1em;
    margin: 0 0.5em;
    color: #ffe6b8;
    background: #222;
    border-radius: 50%;
    padding: 0.18em 0.22em 0.13em 0.22em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
  }
  .fancy-footer .footer-social-link:hover {
    background: #C99A36;
    color: #fff;
    transform: scale(1.13);
  }
  .fancy-footer .footer-bottom {
    border-top: 2px solid #C99A36;
    margin-top: 1.2rem;
    padding: 1.1rem 0 1.1rem 0;
    background: #C99A36;
    color: #fff;
    font-size: 1.01em;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    text-align: center;
    letter-spacing: 0.2px;
  }
}

@media (max-width: 400px) {
  .fancy-footer .footer-content {
    padding: 0.7rem 0.2rem 0.2rem 0.2rem;
    gap: 0.7rem;
  }
  .fancy-footer .footer-social-link {
    font-size: 1.6em;
    margin: 0 0.3em;
    padding: 0.13em 0.15em 0.1em 0.15em;
  }
  .fancy-footer .footer-bottom {
    padding: 0.7rem 0 0.7rem 0;
    font-size: 0.98em;
  }
}

