/*
Theme Name: Salt Lake Financial Planning
Author: Dallas Price
Description: Custom theme for SLFP.
Version: 1.1
*/

/* === GOOGLE FONTS === */
/* This is loaded in your header, so these families are available: */
/* font-family: 'Oswald', sans-serif; */
/* font-family: 'Libre Franklin', sans-serif; */
/* font-family: 'Playfair Display', serif; */


/* === RESET & BASE STYLES === */
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  font-size: 18px;
  background: #fff;
  color: #333; /* Slightly softer than pure black */
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}


/* === TYPOGRAPHY & LINKS === */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #283640; /* Slate from Style Guide */
  line-height: 1.3;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: #177FBF; /* Deep Blue from Style Guide */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #BF8D17; /* Gold/Orange from Style Guide */
}


/* === HEADER & NAVIGATION === */
.site-header {
  background: #fff;
}

.site-header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

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

.main-navigation {
  background: #177FBF; /* Deep Blue from Style Guide */
  width: 100%;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  margin: 0;
}

.main-navigation li {
  margin: 0 1.5rem;
}

.main-navigation a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  border-bottom-color: #BF8D17; /* Gold/Orange for hover/active */
}


/* === HERO SECTION (READABILITY FIX) === */
.hero-image {
  width: 100%;
  height: 75vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  background: rgba(40, 54, 64, 0.65); /* Darker Slate overlay */
  color: #fff;
  padding: 2rem;
  text-align: center;
  max-width: 90%;
  border-radius: 8px;
}

.hero-overlay h1, .hero-overlay h2 {
  color: #fff; /* Ensure hero text is white */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-overlay h2 {
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* === BUTTONS (STYLE GUIDE FIX) === */
.cta-button,
.wp-block-button__link,
.wpcf7-form input[type="submit"] {
    background-color: #BF8D17; /* Gold/Orange from Style Guide */
    color: white !important; /* Important to override block styles */
    padding: 0.8rem 1.75rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover,
.wp-block-button__link:hover {
  background-color: #177FBF; /* Deep Blue from Style Guide on hover */
  color: white !important;
  transform: translateY(-2px);
}


/* === MAIN CONTENT AREA === */
.site-main, .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hide the default page title on pages that use a hero */
.page .entry-header {
  display: none;
}


/* === FOOTER === */
.site-footer {
  background: #f4f4f4;
  padding-top: 3rem;
  font-size: 1rem;
  color: #555;
}

.contact-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 300px;
  max-width: 400px;
}

.contact-form {
  flex: 1 1 500px;
  min-width: 300px;
}

/* Footer Bottom Disclosures */
.footer-bottom {
  background: #e9e9e9;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #444;
}

.footer-bottom .container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-bottom p {
  margin-bottom: 0.75rem;
}


/* === CONTACT FORM 7 STYLES === */
.wpcf7-form {
  padding: 0; /* Remove extra padding if it's inside the .contact-form wrapper */
  background: transparent;
  box-shadow: none;
}

.wpcf7-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Libre Franklin', sans-serif;
  background: #fff;
}

.wpcf7-form input[type="submit"] {
  /* Uses the .cta-button styles now for consistency */
}


/* === RESPONSIVE STYLES === */
.menu-toggle {
  display: none; /* Hide hamburger on desktop */
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {


  .main-navigation ul.toggled {
      display: flex; /* Show menu when toggled */
  }

  .main-navigation li {
      text-align: center;
      margin: 0.5rem 0;
  }



  .nav-container {
    display: block; /* Stack logo and menu */
  }

  .hero-image {
      height: 60vh;
  }

  .hero-overlay {
      padding: 1.5rem;
  }

  .contact-inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}
/* === POLISHED FORM & IMAGE STYLES === */

/* --- Form Input Fields --- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Form Input Fields on Focus --- */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #177FBF; /* Deep Blue from Style Guide */
    box-shadow: 0 0 0 3px rgba(23, 127, 191, 0.2);
}

/* --- Image Captions --- */
.wp-element-caption {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    font-style: italic;
    margin-top: 0.75rem;
}

.wp-element-caption a {
    color: #555;
    text-decoration: underline;
}
.wp-block-separator {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
/* === FOUR SERVICES SECTION === */
.four-services {
  text-align: center; /* Center the section content */
}

.four-services dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Creates responsive columns */
  gap: 2rem;
  padding: 0;
  margin: 2rem 0 0 0; /* Add some space above the list */
  list-style: none;
}

.four-services dt {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #177FBF; /* Deep Blue from Style Guide */
}

.four-services dd {
  margin-left: 0; /* Resets browser default */
  font-size: 1rem;
  line-height: 1.6;
}
.entry-content h2 {
  margin-top: 3rem;
}
.four-services {
  background-color: #f9f9f9;
  padding: 4rem 1.5rem;
  margin: 4rem auto;
  max-width: 1100px; /* Constrains width for a panel look */
  text-align: center;
  border-radius: 5px; /* Matches your button corners */
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1); /* Soft, modern shadow */
}

/* === RESOURCES PAGE TEMPLATE STYLES === */

.featured-guide {
  background-color: #283640; /* Slate */
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.featured-guide h2 {
  color: #fff;
}

.featured-guide .cta-button {
  margin-top: 1rem;
}

.recent-articles {
  padding: 4rem 1rem;
}

.recent-articles .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.article-card {
  display: flex; /* Helps align content vertically */
  flex-direction: column;
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 5px 15px -5px rgba(0,0,0,0.05);
}

.article-card h3 {
  font-size: 1.25rem;
}

.article-card h3 a {
  text-decoration: none;
  color: #283640; /* Slate */
}

.article-card .entry-summary {
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.cta-button.is-style-outline {
  background-color: transparent;
  border: 2px solid #BF8D17; /* Gold/Orange */
  color: #BF8D17 !important;
}

.cta-button.is-style-outline:hover {
  background-color: #BF8D17;
  color: white !important;
}
strong, b {
  font-weight: 700; /* Or try 800 if your font supports it */
  color: #283640;  /* Uses the Slate color from your style guide */
}
.footer-bottom {
  background: #e9e9e9;
  padding: 2rem 1rem;
  font-size: 8pt; /* Changed to 8pt */
  line-height: 1.5;
  color: #444;
  text-align: left; /* Added for left justification */
}
@media (max-width: 768px) {
  .main-navigation ul {
    /* Adjusts spacing for the whole menu bar on mobile */
    padding: 0.5rem 0;
  }
  .main-navigation a {
    font-size: 0.8rem; /* Makes the font smaller */
    letter-spacing: normal; /* Reduces space between letters */
    padding: 0 0.4rem;   /* Adds a little space on each side of the links */
  }
}
/* === SINGLE POST STYLES === */

/* 1. Hide the "Posted in" and other meta info */
.single .entry-footer {
  display: none;
}

/* 2. Style the Previous/Next Post Navigation */
.post-navigation {
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex-basis: 50%;
}

.post-navigation a {
  display: block;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.post-navigation a:hover {
  background-color: #f9f9f9;
  box-shadow: 0 5px 15px -5px rgba(0,0,0,0.05);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  font-weight: 600;
  color: #177FBF; /* Deep Blue from Style Guide */
}

/* Add arrows for better UX */
.nav-previous a::before {
  content: '← ';
  margin-right: 0.25em;
}

.nav-next a::after {
  content: ' →';
  margin-left: 0.25em;
}

.nav-next {
  text-align: right;
}

/* Make it stack on mobile */
@media (max-width: 768px) {
  .post-navigation .nav-links {
      flex-direction: column;
  }
}
.single .entry-content ol,
.single .entry-content ul {
    margin-bottom: 1.5rem;
}
.post > .entry-content {padding-left: 0;}

/* --- CONSTRAIN ALL IMAGES IN POSTS --- */

/* Reset wide and full-width alignment for image blocks */
.single .entry-content .alignwide,
.single .entry-content .alignfull {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* A general rule to ensure all images in the content fit */
.single .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* === BROKERCHECK LOGO === */
.brokercheck-logo {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  z-index: 1000; /* Ensures it sits on top of other elements */
}

.brokercheck-logo img {
  width: 140px; /* Adjust size as needed */
  height: auto;
  display: block;
}