/*
Theme Name: FPNM Idyllic
Theme URI: https://fpnm.org
Template: idyllic
Author: FPNM
Description: Child theme of Idyllic for Fundacion Pa Nos Muchanan (FPNM), Aruba. Applies brand colors, Signika font, Papiamento labels, custom post types, and a fully configured front page — ready to use immediately after activation.
Version: 1.0.0
Text Domain: fpnm
License: GNU General Public License v2 or later
*/

/* ============================================================
   BRAND PALETTE — FPNM
   ============================================================ */
:root {
  --green-light:    #A4D389;
  --green:          #73BB4A;
  --green-dark:     #528833;
  --blue-light:     #81C9E5;
  --blue:           #37A9D5;
  --blue-dark:      #217C9F;
  --pink-light:     #F181A2;
  --pink:           #EA3E70;
  --pink-dark:      #D6174F;
  --grey-light:     #8E8D90;
  --grey:           #444345;
  --grey-dark:      #1E1E1F;
  --white:          #ffffff;
  --bg:             #f6f9f4;
  --bg-alt:         #eef6e8;
  --border:         #d4e8c6;
  --font:           'Signika', 'Segoe UI', Arial, sans-serif;
  --radius:         6px;
  --shadow:         0 2px 12px rgba(0,0,0,0.08);
  --transition:     0.25s ease;
}

/* ============================================================
   GLOBAL FONT — SIGNIKA EVERYWHERE
   ============================================================ */
html, body, h1, h2, h3, h4, h5, h6,
p, a, li, input, textarea, select, button,
.site-title, .site-description, .main-navigation,
.nav-menu a, .widget, .entry-content,
.btn, .button, input[type="submit"] {
  font-family: var(--font) !important;
}

body { color: var(--grey); background: var(--white); }
a    { color: var(--green-dark); transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

/* ============================================================
   HEADER — TOP BAR
   ============================================================ */
#masthead, .site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.top-bar { background: var(--grey-dark) !important; }
.top-bar, .top-bar a { color: rgba(255,255,255,0.7) !important; }
.top-bar a:hover { color: var(--green-light) !important; }

/* Sticky header */
#sticky-header { background: var(--white); }
.sticky-header-active #sticky-header { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

/* Logo */
#site-title a, #site-branding .site-title a {
  color: var(--green-dark) !important;
  font-weight: 700;
  font-family: var(--font) !important;
}
#site-description { color: var(--grey-light) !important; font-size: 0.78rem; }

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.main-navigation, .nav-menu { background: transparent; }
.nav-menu > li > a {
  color: var(--grey) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px !important;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: var(--green-dark) !important;
  background: var(--bg-alt) !important;
}
/* Dropdowns */
.nav-menu .sub-menu {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  border-radius: var(--radius) !important;
}
.nav-menu .sub-menu a {
  color: var(--grey) !important;
  font-size: 0.83rem !important;
}
.nav-menu .sub-menu a:hover { color: var(--green-dark) !important; background: var(--bg-alt) !important; }

/* Hamburger */
.menu-toggle { background: transparent !important; border: 2px solid var(--green-dark) !important; border-radius: var(--radius) !important; }
.menu-toggle .line-bar, .menu-toggle .line-bar::before, .menu-toggle .line-bar::after {
  background: var(--green-dark) !important;
}

/* ============================================================
   HERO / SLIDER AREA — FPNM IMAGE HEADER
   ============================================================ */
.fpnm-hero {
  position: relative;
  background: var(--green-dark);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.fpnm-hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.fpnm-hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.fpnm-hero-slide.active { opacity: 1; }
.fpnm-hero-slideshow::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(30,30,31,0.50);
  z-index: 1;
}
.fpnm-hero-inner {
  position: relative; z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.fpnm-hero-pretitle {
  display: block;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 14px;
}
.fpnm-hero h1 {
  color: var(--white) !important;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px; line-height: 1.15;
}
.fpnm-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 28px;
}
.fpnm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fpnm-hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 9px;
}
.fpnm-hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.38);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer; padding: 0; transition: background var(--transition);
}
.fpnm-hero-dot.active { background: var(--white); }

/* Full-width image banner (above hero, optional) */
.fpnm-banner-header {
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.fpnm-banner-header-overlay {
  width: 100%;
  background: rgba(30,30,31,0.40);
  padding: 30px 24px;
}
.fpnm-banner-header-overlay h2 { color: var(--white) !important; margin-bottom: 6px; font-size: clamp(1.5rem,3vw,2.4rem); }
.fpnm-banner-header-overlay p  { color: rgba(255,255,255,0.82); margin: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .button,
input[type="submit"],
.fpnm-btn {
  font-family: var(--font) !important;
  font-weight: 700;
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius) !important;
  padding: 11px 26px !important;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.fpnm-btn-primary { background: var(--green-dark); color: var(--white) !important; border-color: var(--green-dark); }
.fpnm-btn-primary:hover { background: var(--green); border-color: var(--green); color: var(--white) !important; transform: translateY(-1px); }
.fpnm-btn-outline  { background: transparent; color: var(--green-dark) !important; border-color: var(--green-dark); }
.fpnm-btn-outline:hover  { background: var(--green-dark); color: var(--white) !important; }
.fpnm-btn-white    { background: var(--white); color: var(--green-dark) !important; border-color: var(--white); }
.fpnm-btn-white:hover { background: var(--bg-alt); border-color: var(--bg-alt); }
.fpnm-btn-accent   { background: var(--blue); color: var(--white) !important; border-color: var(--blue); }
.fpnm-btn-accent:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Override Idyllic default button */
.idyllic-button, .more-link {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  border-color: var(--green-dark) !important;
}
.idyllic-button:hover, .more-link:hover {
  background: var(--green) !important;
  border-color: var(--green) !important;
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.fpnm-intro-strip {
  background: var(--green);
  padding: 22px 0;
}
.fpnm-intro-strip .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.fpnm-intro-strip h3 { color: var(--white); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.fpnm-intro-strip p  { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.94rem; }

/* ============================================================
   IDYLLIC SECTION OVERRIDES — colors
   ============================================================ */
/* Box titles */
.box-title { color: var(--green-dark) !important; }
.box-sub-title { color: var(--grey) !important; }

/* About section */
.about-box { background: var(--bg) !important; }
.about-box-bg { background: var(--bg) !important; }
.about-title a, .about-title { color: var(--green-dark) !important; }

/* Features section */
.front-page-features { background: var(--white); }
.feature-icon-wrap { background: var(--bg-alt) !important; border: 2px solid var(--border) !important; }
.features-wrap h3 a { color: var(--green-dark) !important; }

/* Fact/figure */
.fact-figure-box { background: var(--green-dark) !important; }
.fact-figure-box .box-title, .fact-figure-box .box-sub-title,
.fact-figure-box .counter, .fact-figure-box h3 { color: var(--white) !important; }

/* Portfolio */
.portfolio-box .box-title { color: var(--green-dark) !important; }

/* Team section */
.team-member-box { background: var(--bg-alt) !important; }
.team-member-box .box-title { color: var(--green-dark) !important; }
.team-info h3 a { color: var(--green-dark) !important; }

/* Testimonial */
.our-testimonial { background: var(--blue-dark) !important; }
.testimonial-text, .testimonial-author { color: var(--white) !important; }

/* Blog section */
.latest-from-blog .box-title { color: var(--green-dark) !important; }
.entry-title a { color: var(--grey-dark) !important; }
.entry-title a:hover { color: var(--green-dark) !important; }
.entry-meta, .entry-meta a { color: var(--grey-light) !important; }

/* Tags / categories */
.cat-links a, .tags-links a {
  background: var(--bg-alt) !important;
  color: var(--green-dark) !important;
  border-radius: 20px !important;
  padding: 2px 10px !important;
  font-size: 0.77rem;
}

/* ============================================================
   FPNM CUSTOM SECTIONS (front page)
   ============================================================ */
.fpnm-section { padding: 72px 0; }
.fpnm-section-alt { background: var(--bg-alt); }

.fpnm-section-label {
  display: block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 6px;
}
.fpnm-section-title {
  font-size: clamp(1.5rem,3vw,2.2rem);
  color: var(--grey-dark); margin-bottom: 1rem;
  position: relative; display: inline-block;
}
.fpnm-section-title::after {
  content: ''; display: block; width: 42px; height: 3px;
  background: var(--green); margin-top: 8px; border-radius: 2px;
}
.fpnm-text-center { text-align: center; }
.fpnm-text-center .fpnm-section-title::after { margin: 8px auto 0; }

/* Grid */
.fpnm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fpnm-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.fpnm-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
@media (max-width:900px) {
  .fpnm-grid-2 { grid-template-columns: 1fr; }
  .fpnm-grid-3 { grid-template-columns: repeat(2,1fr); }
  .fpnm-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px) {
  .fpnm-grid-3, .fpnm-grid-4 { grid-template-columns: 1fr; }
  .fpnm-section { padding: 48px 0; }
}

/* Cards */
.fpnm-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fpnm-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.fpnm-card-body { padding: 22px; }
.fpnm-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.fpnm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.fpnm-card:hover .fpnm-card-img img { transform: scale(1.04); }
.fpnm-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--grey-dark); }
.fpnm-card p  { font-size: 0.9rem; color: var(--grey-light); }

/* Mission cards */
.fpnm-mission-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fpnm-mission-card:hover { transform: translateY(-5px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.fpnm-mission-icon { font-size: 2rem; margin-bottom: 16px; }
.fpnm-mission-card h3 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 10px; }
.fpnm-mission-card p  { font-size: 0.91rem; color: var(--grey-light); }

/* Stats band */
.fpnm-stats-band { background: var(--green-dark); padding: 52px 0; }
.fpnm-stats-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; text-align: center; }
@media (max-width:700px) { .fpnm-stats-inner { grid-template-columns: repeat(2,1fr); } }
.fpnm-stat-number { font-size: 2.8rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 6px; }
.fpnm-stat-label  { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); }

/* Team cards */
.fpnm-team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 28px; }
.fpnm-team-card  { text-align: center; }
.fpnm-team-photo {
  width: 144px; height: 144px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 16px;
  border: 3px solid var(--border);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.fpnm-team-card:hover .fpnm-team-photo { border-color: var(--green); }
.fpnm-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.fpnm-team-placeholder { width: 70px; height: 70px; opacity: 0.32; }
.fpnm-team-card h4 { font-size: 0.96rem; font-weight: 700; margin-bottom: 3px; color: var(--grey-dark); }
.fpnm-team-role { color: var(--green-dark); font-size: 0.81rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.fpnm-team-card p { font-size: 0.85rem; color: var(--grey-light); margin-top: 7px; }

/* Contact CTA */
.fpnm-contact-cta { background: var(--bg-alt); border-top: 3px solid var(--green); padding: 64px 0; text-align: center; }
.fpnm-contact-cta p { color: var(--grey-light); max-width: 520px; margin: 0 auto 24px; }
.fpnm-contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

/* Social links */
.fpnm-social-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.fpnm-social-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; transition: all var(--transition);
  text-decoration: none;
}
.fpnm-social-link:hover { transform: translateY(-2px); opacity: 0.88; }
.fpnm-social-link.facebook  { background:#1877f2; color:#fff !important; }
.fpnm-social-link.instagram { background:#C13584; color:#fff !important; }
.fpnm-social-link.whatsapp  { background:#25d366; color:#fff !important; }
.fpnm-social-link.youtube   { background:#ff0000; color:#fff !important; }

/* Resources grid */
.fpnm-resources-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; margin-top: 36px; }
.fpnm-resource-card {
  background: var(--white); border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; gap: 9px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.fpnm-resource-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 5px 20px rgba(0,0,0,0.10); }
.fpnm-resource-icon { font-size: 1.5rem; }
.fpnm-resource-card h4 { font-size: 0.92rem; font-weight: 700; margin: 0; color: var(--grey-dark); }
.fpnm-resource-card p  { font-size: 0.83rem; color: var(--grey-light); margin: 0; }
.fpnm-resource-link { margin-top: auto; font-size: 0.83rem; font-weight: 700; color: var(--green-dark) !important; }

/* Section header row */
.fpnm-section-header-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.fpnm-section-header-row .fpnm-section-title { margin-bottom: 0; }

/* Page header banner */
.fpnm-page-header { background: var(--green-dark); padding: 52px 0; text-align: center; }
.fpnm-page-header h1 { color: var(--white) !important; margin-bottom: 8px; }
.fpnm-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 0.83rem; color: rgba(255,255,255,0.6); }
.fpnm-breadcrumb a { color: rgba(255,255,255,0.75); }
.fpnm-breadcrumb a:hover { color: var(--green-light); }

/* Timeline */
.fpnm-timeline { position: relative; padding-left: 28px; margin-top: 24px; }
.fpnm-timeline::before { content:''; position:absolute; left:6px; top:0; bottom:0; width:2px; background:var(--border); }
.fpnm-timeline-item { position:relative; padding-bottom:26px; }
.fpnm-timeline-item::before { content:''; position:absolute; left:-24px; top:4px; width:11px; height:11px; border-radius:50%; background:var(--green); border:2px solid var(--white); box-shadow:0 0 0 2px var(--green); }
.fpnm-timeline-year { font-size:0.78rem; font-weight:700; color:var(--green-dark); letter-spacing:0.1em; margin-bottom:3px; }
.fpnm-timeline-item h4 { font-size:0.96rem; margin-bottom:4px; }
.fpnm-timeline-item p  { font-size:0.87rem; color:var(--grey-light); }

/* Placeholder notice */
.fpnm-empty { color: var(--grey-light); font-style: italic; grid-column: 1/-1; padding: 20px 0; }

/* ============================================================
   IDYLLIC SIDEBAR & WIDGETS
   ============================================================ */
.widget-area .widget { border: 1px solid var(--border); border-radius: 8px; padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.widget-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }

/* ============================================================
   IDYLLIC FOOTER OVERRIDES
   ============================================================ */
#colophon, .site-footer { background: var(--grey-dark) !important; color: rgba(255,255,255,0.65); }
.widget-wrap, .widget-wrap .wrap { background: var(--grey-dark) !important; }
.site-footer .widget-title { color: rgba(255,255,255,0.38) !important; border-color: rgba(255,255,255,0.08) !important; }
.site-footer .widget, .site-footer .widget * { color: rgba(255,255,255,0.6) !important; }
.site-footer .widget a:hover { color: var(--green-light) !important; }
.site-info { background: #141414 !important; }
.site-info, .site-info a, .site-info .copyright { color: rgba(255,255,255,0.38) !important; font-size: 0.82rem; }
.site-info a:hover { color: var(--green-light) !important; }
.go-to-top { background: var(--green-dark) !important; }
.go-to-top:hover { background: var(--green) !important; }

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"], input[type="email"], input[type="url"],
input[type="search"], input[type="tel"], textarea, select {
  border: 2px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font) !important;
  transition: border-color var(--transition);
  color: var(--grey) !important;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(115,187,74,0.12) !important;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 3px solid var(--blue) !important; outline-offset: 2px; border-radius: 2px; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  .fpnm-hero { min-height: 360px; }
  .fpnm-hero-inner { padding: 56px 20px; }
  .fpnm-banner-header { min-height: 200px; }
  .fpnm-stats-inner { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .fpnm-team-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .fpnm-team-grid { grid-template-columns: 1fr; }
}
