/*
 Theme Name:   Save Someone Now Child Theme
 Theme URI:    https://savesomeonenow.com/
 Description:  Child theme for GeneratePress with custom charity homepage
 Author:       Your Name
 Author URI:   https://yoursite.com/
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  save-someone-now-child
*/
/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 100vh; /* Full viewport height */
    min-height: 600px; /* Minimum height */
    display: flex;
    align-items: center;
    justify-content: center; /* horizontally center content */
    text-align: center;
    padding: 0;
    width: 100vw; /* full viewport width */
    margin-left: calc(50% - 50vw); /* break out of container horizontally */
}
.hero-section .overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,70,32,0.75);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}
.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 500;
}
.btn {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px 10px;
    font-weight: 700;
    transition: background 0.3s ease;
}
.btn-primary {
    background-color: #2d6a4f;
    color: #fff;
}
.btn-primary:hover {
    background-color: #1b4332;
}
.btn-secondary {
    background-color: rgba(255,255,255,0.8);
    color: #264653;
}
.btn-secondary:hover {
    background-color: #87a96b;
    color: #111;
}
/* Hero Stats */
.hero-stats {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 60px;
    font-size: 1.2rem;
    font-weight: 600;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #a5d6a7;
}
/* Causes Section */
.causes-section {
    padding: 80px 20px;
    max-width: 1140px;
    margin: 0 auto;
}
.causes-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-weight: bold;
    color: #264653;
}
.causes-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}
.cause-card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}
.cause-card:hover {
    transform: translateY(-8px);
}
.cause-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}
.cause-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #2f3e46;
}
.cause-card p {
    flex-grow: 1;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #555;
}
.progress-bar {
    background: #e0e0e0;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    background: #2d6a4f;
    height: 100%;
    width: 0;
    transition: width 1.5s ease;
}
.progress-stats {
    font-weight: 600;
    font-size: 0.9rem;
    color: #264653;
    margin-bottom: 12px;
}
/* CTA Section */
.cta-section {
    background: #264653;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.cta-section a {
    margin: 0 12px;
}
/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        font-size: 1rem;
    }
    .hero-section {
        height: 80vh;
    }
}
/* Make header full width */
.site-header {
    width: 100% !important;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

/* Override container padding for hero to allow full width */
.hero-section .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Global container for content sections */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive container padding */
@media (max-width: 768px) {
    .site-header,
    .hero-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }
}

/* Full width header */
.site-header {
    width: 100vw !important;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #4CAF50;
}

/* Make main content wrapper full width */
.site-main, .content-area {
    max-width: 100vw !important;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
}

/* Remove horizontal padding of WordPress container in hero and other sections */
.hero-section .container,
.causes-section .container,
.cta-section .container {
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Container class for centered content */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .site-header {
        padding-left: 15px;
        padding-right: 15px;
    }
    .site-main, .content-area {
        padding-left: 15px;
        padding-right: 15px;
    }
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Reduce footer padding and font sizes */
.site-footer {
    padding: 20px 20px; /* Smaller vertical padding */
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer container tweaks for layout */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Footer logo smaller */
.footer-logo img {
    height: 30px;
}

/* Footer menu styling */
.footer-nav .menu {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.footer-nav .menu li {
    margin: 0;
}

.footer-nav .menu li a {
    text-decoration: none;
    color: #a5d6a7;
    transition: color 0.3s ease;
}

.footer-nav .menu li a:hover {
    color: #fff;
}

/* Footer contact smaller and aligned right */
.footer-contact {
    font-size: 0.8rem;
    text-align: right;
}

/* Footer bottom smaller text */
.footer-bottom {
    font-size: 0.75rem;
    margin-top: 20px;
    color: #7fa880;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-contact {
        text-align: center;
        margin-top: 15px;
    }
    .footer-nav .menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* Reduce footer vertical padding */
.site-footer {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Tighten footer container spacing */
.footer-container {
    gap: 10px !important;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

/* Smaller footer logo */
.footer-logo img {
    height: 25px !important;
}

/* Footer menu with smaller font and spacing */
.footer-nav .menu {
    gap: 15px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
}

.footer-nav .menu li a {
    padding: 2px 5px !important;
}

/* Footer contact smaller font, no margins */
.footer-contact {
    text-align: right;
    font-size: 0.8rem !important;
    margin: 0 !important;
}

/* Footer bottom with smaller text and margin */
.footer-bottom {
    font-size: 0.7rem !important;
    margin-top: 10px !important;
    color: #7fa880;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column !important;
        text-align: center !important;
    }
    .footer-contact {
        text-align: center !important;
        margin-top: 10px !important;
    }
    .footer-nav .menu {
        flex-direction: column !important;
        gap: 5px !important;
    }
}

/* Sticky footer styles */
.site-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 9999;
}

/* Add padding to body to prevent content hiding behind footer */
body {
    padding-bottom: 60px; /* Adjust based on footer height */
}

/* Minimize footer padding */
.site-footer {
    padding: 8px 15px !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

/* Footer container maintain layout */
.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
}

/* Smaller footer logo */
.footer-logo img {
    height: 22px !important;
}

/* Footer nav styling */
.footer-nav .menu {
    display: flex;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem !important;
}

.footer-nav .menu li a {
    padding: 2px 6px !important;
}

/* Footer contact responsive text */
.footer-contact {
    font-size: 0.75rem !important;
    text-align: right;
}

/* Copyright */
.footer-bottom {
    font-size: 0.7rem !important;
    margin-top: 8px !important;
    color: #7fa880;
}

/* Responsive footer for small devices */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-contact {
        text-align: center;
        margin-top: 6px;
    }
    .footer-nav .menu {
        flex-direction: column;
        gap: 8px;
    }
}

/* Sticky footer styles only on desktops */
@media (min-width: 769px) {
    .site-footer {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 9999;
    }

    /* Add bottom padding to body to prevent hidden content */
    body {
        padding-bottom: 60px; /* Adjust to footer height */
    }
}

/* Normal footer for mobile */
@media (max-width: 768px) {
    .site-footer {
        position: static !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}

.footer-nav .menu li a {
    position: relative;
    color: #a5d6a7;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav .menu li a:hover,
.footer-nav .menu li a:focus {
    color: #fff;
    transform: translateY(-3px);
}

.footer-nav .menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #a5d6a7;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav .menu li a:hover::after,
.footer-nav .menu li a:focus::after {
    width: 100%;
    left: 0;
    background-color: #fff;
}

.campaign-progress p {
    font-weight: bold;
    color: #004480;
    text-align: center;
    margin-bottom: 40px;
}

.site-footer {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
    min-height: 30px !important;
    overflow: hidden;
    background-color: #2d6a4f;
    color: #fff;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.footer-logo img {
    height: 18px !important;
    margin-right: 6px;
}

.footer-nav .menu {
    display: flex;
    gap: 8px !important;
    font-weight: 600;
    font-size: 0.75rem !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav .menu li a {
    padding: 1px 4px !important;
    color: #a5d6a7;
    text-decoration: none;
    transition: color 0.3s ease;
    user-select: none;
}

.footer-nav .menu li a:hover,
.footer-nav .menu li a:focus {
    color: #fff;
}

.footer-contact {
    font-size: 0.65rem !important;
    margin: 0;
    text-align: right;
}

.footer-bottom {
    font-size: 0.6rem !important;
    margin-top: 4px !important;
    color: #a5d6a7;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column !important;
        text-align: center !important;
    }
    .footer-contact {
        text-align: center !important;
        margin-top: 4px !important;
    }
    .footer-nav .menu {
        flex-direction: column !important;
        gap: 4px !important;
    }
}

.ssn-donation-form {
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background: #f0f9f4;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 150, 80, 0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #264653;
  user-select: none;
}

.ssn-donation-form label {
  font-weight: 700;
  margin-right: 8px;
  color: #2a7a3a;
  font-size: 1rem;
}

.form-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-row label {
  flex: 0 0 auto;
  min-width: 90px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"] {
  flex: 1 1 auto;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2.5px solid #93c572;
  background-color: #e7f6db;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease;
  box-shadow: inset 0 2px 5px rgb(147 197 114 / 0.3);
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="number"]:focus {
  border-color: #2a7a3a;
  outline: none;
  box-shadow: 0 0 10px rgba(42, 122, 58, 0.7);
  background-color: #d4eec7;
}

.ssn-donation-amounts {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ssn-donation-amounts button {
  background: linear-gradient(135deg, #2a7a3a, #72b476);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 14px;
  transition: background 0.35s ease, transform 0.2s ease;
  flex: none;
  box-shadow: 0 4px 12px rgba(42, 122, 58, 0.5);
  user-select: none;
}

.ssn-donation-amounts button:hover,
.ssn-donation-amounts button.selected {
  background: linear-gradient(135deg, #1b4d28, #499f5a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 77, 40, 0.7);
}

.custom-amount-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.custom-amount-row label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #2a7a3a;
}

.custom-amount-row input[type="number"] {
  flex: 1 1 auto;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2.5px solid #93c572;
  background: #e7f6db;
  box-shadow: inset 0 2px 5px rgb(147 197 114 / 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#ssn-pay-submit {
  background: linear-gradient(135deg, #2a7a3a, #499f5a);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 14px 28px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(42, 122, 58, 0.8);
  user-select: none;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

#ssn-pay-submit:hover {
  background: linear-gradient(135deg, #1b4d28, #2a7a3a);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 77, 40, 0.85);
}

@media (max-width: 520px) {
  .form-row {
    display: block;
  }
  .form-row label {
    margin-bottom: 6px;
    min-width: 100%;
  }
  .ssn-donation-amounts {
    justify-content: center;
  }
  .custom-amount-row {
    display: block;
  }
  #ssn-pay-submit {
    width: 100%;
  }
}

#ssn-whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-radius: 50%;
  background-color: #ffffff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

#ssn-whatsapp-chat:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

#ssn-whatsapp-chat a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
