/*
 Theme Name:   Monmouth Handyman Child
 Theme URI:    https://monmouthhandyman.com
 Description:  GeneratePress child theme for Monmouth Handyman Services
 Author:       Monmouth Handyman Services
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  monmouth-handyman
*/

/* =============================================
   BRAND VARIABLES
============================================= */
:root {
  --green:        #3B6E52;
  --green-dark:   #2a5040;
  --green-light:  #eef4f0;
  --amber:        #C8922A;
  --amber-light:  #fdf5e8;
  --charcoal:     #2C2C2C;
  --off-white:    #F9F6F0;
  --white:        #ffffff;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    'Open Sans', sans-serif;
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --radius:       6px;
}

/* =============================================
   BASE
============================================= */
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--green-dark);
  line-height: 1.25;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--amber); }

img { max-width: 100%; height: auto; }

/* =============================================
   HEADER & NAV
============================================= */
.site-header,
.main-navigation {
  background: var(--green-dark);
  border-bottom: 3px solid var(--amber);
}

.site-title a,
.site-description {
  color: var(--white) !important;
}

.site-title a {
  font-family: var(--font-serif);
  font-size: 22px;
}

.main-navigation a {
  color: var(--white) !important;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 0 16px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--amber) !important;
}

/* =============================================
   BUTTONS
============================================= */
.btn,
.wp-block-button__link,
input[type="submit"] {
  background: var(--amber);
  color: var(--white) !important;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: #a87820;
  transform: translateY(-2px);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark) !important;
}

.btn-green {
  background: var(--green);
}

.btn-green:hover {
  background: var(--green-dark);
}

/* =============================================
   SECTIONS
============================================= */
.section {
  padding: 80px 20px;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--green-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li {
  color: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.section-eyebrow {
  display: block;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--amber);
  margin: 16px auto 0;
  border: none;
}

/* =============================================
   HERO
============================================= */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(42,80,64,0.83), rgba(42,80,64,0.83)),
              url('assets/images/hero-bg.jpg') center center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-logo {
  width: 180px;
  margin-bottom: 24px;
}

.hero-section h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-tagline {
  color: var(--amber);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  margin-bottom: 16px;
}

.hero-subtext {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   SERVICES GRID
============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.6;
}

/* =============================================
   ABOUT
============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
  color: #444;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.82rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   PORTFOLIO
============================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(42,80,64,0.92));
  padding: 40px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.portfolio-overlay span {
  color: var(--amber);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green);
  color: var(--white);
}

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.testimonial-stars {
  color: var(--amber);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 3px;
}

.testimonial-text {
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-weight: 700;
}

.testimonial-author span {
  color: var(--amber);
  font-size: 0.85rem;
}

/* =============================================
   FAQ
============================================= */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 40px 22px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--amber);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: #555;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* =============================================
   CONTACT
============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #444;
}

.contact-detail strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-detail a {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

/* =============================================
   SERVICE AREA BANNER
============================================= */
.service-area-banner {
  background: var(--amber);
  padding: 16px 20px;
  text-align: center;
}

.service-area-banner p {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* =============================================
   CALL TO ACTION STRIP
============================================= */
.cta-strip {
  background: var(--green-dark);
  padding: 56px 20px;
  text-align: center;
}

.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.cta-strip p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}

.cta-phone {
  color: var(--amber);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 24px;
}

/* =============================================
   BLOG
============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

.read-more {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--amber);
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  width: 160px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-heading {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--amber);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   PORTFOLIO CPT SINGLE
============================================= */
.portfolio-single-hero {
  height: 420px;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.portfolio-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.portfolio-meta-item {
  background: var(--green-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--green-dark);
  font-weight: 600;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section { padding: 56px 16px; }
  .hero-section { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
  .hero-cta { flex-direction: column; align-items: center; }
}
