
/* =========================================
   RIGHT ON FINANCE
   COMPLETE WEBSITE STYLESHEET
   ========================================= */

/* COLORS */

:root {
  --red: #A61E2D;
  --dark-red: #851725;
  --charcoal: #30343B;
  --gray: #59616C;
  --light-gray: #F5F6F8;
  --white: #FFFFFF;
}

/* BASIC SETTINGS */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--light-gray);
  color: var(--charcoal);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* =========================================
   HEADER AND NAVIGATION
   ========================================= */

.site-header {
  width: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 25px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navigation a {
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.navigation a:hover {
  color: var(--red);
}

/* =========================================
   MAIN FATHER AND SON BANNER
   ========================================= */


.hero {
  min-height: 470px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 70px 8%;
  color: white;

  background-image:
    linear-gradient(
      90deg,
      rgba(35, 29, 29, 0.72) 0%,
      rgba(35, 29, 29, 0.25) 55%,
      rgba(35, 29, 29, 0.05) 100%
    ),
    url("images/hero-father-son.jpg");

  background-color: #B58B79;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero-content {
  max-width: 580px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.13;
  margin: 0 0 24px;
  letter-spacing: -1px;
  color: var(--white);
}

.hero p {
  color: var(--white);
  font-size: 18px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 30px;
}

.main-button {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.main-button:hover {
  background-color: var(--dark-red);
}

/* =========================================
   FINANCIAL SERVICES SECTION
   ========================================= */

.services {
  max-width: 1250px;
  margin: 0 auto;
  padding: 65px 25px 75px;
}

.services h2 {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--charcoal);
}

.section-description {
  text-align: center;
  font-size: 16px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 42px;
  line-height: 1.7;
}

/* =========================================
   SIX FINANCIAL CATEGORY CARDS
   ========================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid #E1E4E8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =========================================
   CATEGORY PHOTOGRAPHS
   ========================================= */

.card-image {
  width: 100%;
  height: 205px;
  flex-shrink: 0;
  background-color: #E7E9ED;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CREDIT CARDS - COFFEE SHOP */

.credit-image {
  background-image: url("images/credit-cards-cafe.jpg");
}

/* HOME LOANS - HOUSE */

.home-image {
  background-image: url("images/home-loans-house.jpg");
}

/* AUTO LOANS - PICKUP TRUCK */

.auto-image {
  background-image: url("images/auto-loans-truck.jpg");
}

/* CHECKING AND SAVINGS - SAVINGS JAR */

.savings-image {
  background-image: url("images/checking-savings-jar.jpg");
}

/* FIND MY FINANCIAL FIT - WORKSPACE */

.fit-image {
  background-image: url("images/financial-fit-workspace.jpg");
}

/* LEARN ABOUT MONEY - BOOKS */

.learn-image {
  background-image: url("images/learn-money-books.jpg");
}

/* =========================================
   CARD TEXT AND BUTTONS
   ========================================= */

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0 0 12px;
}

.card-content p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
  flex-grow: 1;
}

.card-button {
  display: inline-block;
  align-self: flex-start;
  background: var(--red);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.card-button:hover {
  background: var(--dark-red);
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.about {
  background: var(--white);
  text-align: center;
  padding: 70px 25px;
}

.about h2 {
  color: var(--charcoal);
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 18px;
}

.about p {
  color: var(--gray);
  font-size: 17px;
  max-width: 650px;
  margin: 0 auto;
}
.about p + p {
  margin-top: 18px;
}

/* =========================================
   COMING SOON SECTION
   ========================================= */

.coming-soon {
  background: #E9EBEF;
  padding: 50px 25px;
  text-align: center;
}

.coming-soon h2 {
  color: var(--red);
  font-size: 28px;
  margin: 0 0 12px;
}

.coming-soon p {
  color: var(--gray);
  margin: 0;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 32px 20px;
  font-size: 14px;
}

footer p {
  margin: 6px 0;
}

/* =========================================
   TABLET RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 950px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 420px;
  }

  .services {
    padding: 55px 22px;
  }
}

/* =========================================
   MOBILE RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 600px) {
  .site-header {
    padding: 16px 20px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 21px;
  }

  .navigation {
    gap: 18px;
  }

  .navigation a {
    font-size: 14px;
  }

  .hero {
    min-height: 420px;
    padding: 60px 24px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .services {
    padding: 45px 18px 55px;
  }

  .services h2 {
    font-size: 28px;
  }

  .section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card-image {
    height: 210px;
  }

  .card-content {
    padding: 22px;
  }

  .card-content h3 {
    font-size: 21px;
  }

  .about {
    padding: 55px 22px;
  }

  .about h2 {
    font-size: 27px;
  }

  .coming-soon h2 {
    font-size: 25px;
  }
}

/* =========================================
   RIGHT ON FINANCE - PREMIUM HEADER
   ========================================= */

   .site-header {
    background: #FFFFFF;
    padding: 16px 6%;
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 2px solid #A61E2D;
  }
  
  /* LOGO */
  
  .site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
  }
  
  /* FINANCIAL GROWTH BARS */
  
  .brand-icon {
    width: 46px;
    height: 44px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
  }
  
  .brand-icon .bar {
    display: block;
    width: 13px;
    background: #A61E2D;
    border-radius: 3px 3px 0 0;
  }
  
  .bar-one {
    height: 20px;
  }
  
  .bar-two {
    height: 32px;
  }
  
  .bar-three {
    height: 44px;
  }
  
  /* BRAND NAME AND TAGLINE */
  
  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .brand-name {
    display: flex;
    gap: 6px;
    align-items: baseline;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    white-space: nowrap;
  }
  
  .brand-dark {
    color: #30343B;
  }
  
  .brand-red {
    color: #A61E2D;
  }
  
  .brand-tagline {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #777E89;
    white-space: nowrap;
  }
  
  /* NAVIGATION */
  
  .site-header .navigation {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .site-header .navigation a {
    color: #30343B;
    font-size: 15px;
    font-weight: 700;
  }
  
  .site-header .navigation a:hover {
    color: #A61E2D;
  }
  
  /* HEADER GET STARTED BUTTON */
  
  .site-header .navigation .nav-button {
    background: #A61E2D;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 7px;
    transition: background 0.2s;
  }
  
  .site-header .navigation .nav-button:hover {
    background: #851725;
    color: #FFFFFF;
  }
  
  /* MOBILE AND TABLET */
  
  @media (max-width: 750px) {
    .site-header {
      padding: 16px 20px;
      flex-wrap: wrap;
      gap: 15px;
    }
  
    .brand-name {
      font-size: 23px;
    }
  
    .brand-icon {
      transform: scale(0.85);
      transform-origin: left center;
      width: 40px;
    }
  
    .brand-tagline {
      font-size: 8px;
      letter-spacing: 1.2px;
    }
  
    .site-header .navigation {
      width: 100%;
      justify-content: space-between;
      gap: 12px;
    }
  
    .site-header .navigation a {
      font-size: 13px;
    }
  
    .site-header .navigation .nav-button {
      padding: 10px 15px;
    }
  }
  
  @media (max-width: 380px) {
    .brand-name {
      font-size: 20px;
    }
  
    .brand-tagline {
      font-size: 7px;
      letter-spacing: 0.8px;
    }
  }
  .service-card .card-button {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
  }  
  
/* Footer links */
footer a,
footer a:visited {
  color: #E64B59;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer a:hover,
footer a:focus-visible {
  color: #FF7983;
}

/* MOBILE HAMBURGER MENU */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #A61E2D;
  margin: 5px 0;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .navigation {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 15px 0;
  }

  .navigation.active {
    display: flex;
  }

  .navigation a {
    display: block;
    text-align: center;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .site-header .navigation {
    display: none;
  }

  .site-header .navigation.active {
    display: flex;
  }
}
