/* Simplify Local Marketing - Custom Styles v2
   Color Palette:
   - Primary (Deep Blue): #1E3A5F
   - Secondary (Warm Orange): #E67E22
   - Accent (Light Blue): #3498DB
   - Background: #f0f4f8 (slightly blue-tinted)
   - Text: #333333
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --slm-primary: #1E3A5F;
  --slm-secondary: #E67E22;
  --slm-accent: #3498DB;
  --slm-bg: #f0f4f8;
  --slm-text: #333333;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slm-bg);
  color: var(--slm-text);
}

.site-content {
  background-color: var(--slm-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  color: var(--slm-primary);
  font-weight: 700;
}

a {
  color: var(--slm-secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--slm-primary);
}

/* ===== HEADER STYLING ===== */
.ast-primary-header-bar {
  background: var(--slm-primary) !important;
}

/* Logo - keep original colors, just size it properly */
.site-logo-img img,
.custom-logo-link img,
.custom-logo {
  max-height: 55px !important;
  width: auto !important;
}

/* Navigation on dark header */
.ast-primary-header-bar .ast-builder-menu-1 .main-header-menu > .menu-item > a,
.ast-primary-header-bar .site-title a,
.ast-primary-header-bar a {
  color: #ffffff !important;
}

.ast-primary-header-bar .main-header-menu > .menu-item:hover > a {
  color: var(--slm-secondary) !important;
}

/* ===== BUTTON STYLES ===== */
.wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, var(--slm-secondary) 0%, #d35400 100%) !important;
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: none;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.wp-block-button__link:hover,
.ast-button:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--slm-primary) 0%, #2c5282 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

/* Outline button style */
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--slm-secondary) !important;
  color: var(--slm-secondary) !important;
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--slm-secondary) !important;
  color: white !important;
}

/* ===== HERO SECTION ===== */
.slm-hero {
  background: linear-gradient(135deg, var(--slm-primary) 0%, #2c5282 100%);
  color: white;
  padding: 100px 40px;
  text-align: center;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.slm-hero h1,
.slm-hero h2 {
  color: white !important;
}

/* Hide page title on homepage */
.home .entry-title,
.home .ast-archive-description {
  display: none;
}

.home .site-content .ast-container {
  max-width: 100%;
  padding: 0;
}

.home .entry-content {
  margin: 0;
}

/* ===== CARD STYLES ===== */
.slm-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== BLOG STYLING ===== */
.blog .post,
.archive .post,
article.post {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .post:hover,
.archive .post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog .entry-title a,
.archive .entry-title a {
  color: var(--slm-primary);
  text-decoration: none;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--slm-secondary);
}

.entry-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.cat-links a {
  background: var(--slm-accent);
  color: white !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
}

.read-more a,
.more-link {
  display: inline-block;
  background: var(--slm-secondary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more a:hover,
.more-link:hover {
  background: var(--slm-primary);
  transform: translateY(-2px);
}

/* ===== FORM STYLING ===== */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.3s ease;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
  border-color: var(--slm-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--slm-primary);
  color: white;
}

.site-footer a {
  color: var(--slm-secondary);
}

.site-footer a:hover {
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .slm-hero {
    padding: 60px 20px;
  }
  
  .slm-hero h1 {
    font-size: 1.8rem !important;
  }
  
  .wp-block-columns {
    flex-direction: column;
  }
  
  .slm-card {
    margin-bottom: 20px;
  }
}

/* LOGO FIX - Hide image with visible background and show text branding */
.ast-primary-header-bar .site-logo-img,
.ast-primary-header-bar .custom-logo-link {
  display: none !important;
}

/* Make site title visible as text logo */
.ast-primary-header-bar .site-branding .ast-site-title-wrap {
  display: block !important;
}

.ast-primary-header-bar .site-title {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.6rem !important;
  display: block !important;
}

.ast-primary-header-bar .site-title a {
  color: white !important;
  text-decoration: none;
}

.ast-primary-header-bar .site-title a:hover {
  color: var(--slm-secondary) !important;
}

/* Add a small icon before the title */
.ast-primary-header-bar .site-title a::before {
  content: "📍";
  margin-right: 8px;
}

/* ===== HIDE BLOG META & WORDPRESS INDICATORS ===== */

/* Hide category labels on blog archive/cards */
.cat-links,
.category-links,
.post-categories,
.entry-meta .cat-links,
.ast-blog-layout-archive .cat-links,
.blog .cat-links {
  display: none !important;
}

/* Hide post date */
.posted-on,
.entry-date,
.ast-blog-layout-archive .posted-on,
.blog .posted-on,
.entry-meta time,
.ast-blog-single-element.ast-post-date {
  display: none !important;
}

/* Hide author name */
.byline,
.author,
.entry-author,
.ast-blog-layout-archive .byline,
.blog .byline,
.ast-author-name,
.ast-blog-single-element.ast-post-author {
  display: none !important;
}

/* Hide comments count */
.comments-link,
.ast-blog-single-element.post-comments {
  display: none !important;
}

/* Hide the entire meta section if empty */
.entry-meta:empty {
  display: none !important;
}

.entry-meta {
  display: none !important;
}

/* Hide "Uncategorized" text anywhere */
.cat-links a[href*="uncategorized"] {
  display: none !important;
}

/* ===== REMOVE WORDPRESS INDICATORS ===== */

/* Hide "Powered by WordPress" and theme credits in footer */
.ast-footer-copyright,
.site-info,
.ast-footer-copyright-content,
.powered-by-wordpress,
.theme-info,
footer .site-info,
.ast-builder-footer-grid-columns .ast-footer-copyright {
  display: none !important;
}

/* Hide WordPress admin bar for logged-in users viewing site */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

/* Hide any remaining meta that says WordPress */
.generator,
meta[name="generator"] {
  display: none !important;
}

/* Custom simple footer */
.site-footer::after {
  content: "© 2026 Simplify Local Marketing. All rights reserved.";
  display: block;
  text-align: center;
  padding: 30px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  background: var(--slm-primary);
}

.site-footer > *:not(style) {
  display: none !important;
}

/* Newsletter Signup Section */
.slm-newsletter-section {
  background: linear-gradient(135deg, #1E3A5F, #2c5282);
  padding: 60px 30px;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 800px !important;
}

.slm-newsletter-section h2 {
  margin-bottom: 15px;
  font-size: 2rem;
}

.slm-newsletter-section p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Style the ConvertKit form */
.slm-newsletter-section .formkit-form {
  max-width: 500px;
  margin: 0 auto;
}

.slm-newsletter-section input[type="email"],
.slm-newsletter-section .formkit-input {
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  width: 100%;
}

.slm-newsletter-section button,
.slm-newsletter-section .formkit-submit {
  background: linear-gradient(135deg, #E67E22, #d35400) !important;
  border: none !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.slm-newsletter-section button:hover,
.slm-newsletter-section .formkit-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}

/* Kit Form inside newsletter section - stronger override */
.slm-newsletter-section .formkit-form,
.slm-newsletter-section form {
  background: transparent !important;
  max-width: 450px;
  margin: 0 auto;
}

.slm-newsletter-section .formkit-field input,
.slm-newsletter-section input[type="email"] {
  background: #fff !important;
  border: none !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
}

.slm-newsletter-section .formkit-submit,
.slm-newsletter-section button[type="submit"],
.slm-newsletter-section .formkit-submit button {
  background: linear-gradient(135deg, #E67E22, #d35400) !important;
  border: none !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.slm-newsletter-section .formkit-submit:hover,
.slm-newsletter-section button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}

/* Hide Kit branding */
.formkit-powered-by,
.formkit-powered-by-convertkit,
[data-element="powered-by"] {
  display: none !important;
}
