/* PuntoFrugal — Homepage Styles v1.4 */

/* ── Shared ─────────────────────────────────────────────────────────── */
.pf-accent { color: #F5A623; }
.pf-btn-primary {
  background: #F5A623; color: #fff; padding: 14px 28px;
  border-radius: 6px; font-weight: 700; font-size: 15px;
  text-decoration: none; display: inline-block; transition: background .2s;
}
.pf-btn-primary:hover { background: #d4901a; color: #fff; }
.pf-btn-secondary {
  background: transparent; color: #1a2744; padding: 13px 28px;
  border-radius: 6px; border: 2px solid #1a2744; font-weight: 700;
  font-size: 15px; text-decoration: none; display: inline-block; transition: all .2s;
}
.pf-btn-secondary:hover { background: #1a2744; color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.pf-hero {
  background: #faf8f3;
  padding: 0;
  overflow: hidden;
}
.pf-hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(380px, 38%) 1fr;
  align-items: stretch;
  min-height: 620px;
}
.pf-hero-text {
  padding: 40px 0 48px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.pf-hero-badge {
  display: inline-block; border: 1px solid rgba(200,134,10,.3); color: #C8860A;
  background: #FDF3E0;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 4px;
  margin-bottom: 12px; align-self: flex-start;
}
.pf-hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(46px, 4.2vw, 66px); font-weight: 900;
  color: #1a2744; line-height: .96; margin: 0 0 18px;
  letter-spacing: -.035em;
}
.pf-hero-heading .pf-accent { font-style: italic; color: #C8860A; }
.pf-hero-divider {
  width: 38px; height: 3px; background: #C8860A;
  margin: 0 0 22px; border-radius: 0;
}
.pf-hero-subtitle {
  font-size: 16px; color: #4b5563; line-height: 1.7;
  margin: 0 0 36px; max-width: 380px;
}
.pf-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-hero-art {
  min-height: 620px;
  padding-right: max(0px, calc((100vw - 1240px) / 2));
  background-image:
    linear-gradient(90deg, #faf8f3 0%, rgba(250,248,243,.88) 8%, rgba(250,248,243,.2) 26%, rgba(250,248,243,0) 42%),
    url('https://www.puntofrugal.com/wp-content/uploads/2026/06/HeroPFrugal.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Remove Gutenberg flow layout block gap between homepage sections */
.wp-block-group-is-layout-flow > section { margin-block-start: 0 !important; margin-block-end: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }

/* wpautop stray tags fix */
.pf-hero p:not([class]),
.pf-newsletter-section p:not([class]) { margin: 0; padding: 0; line-height: 0; height: 0; overflow: hidden; display: block; }
.pf-hero-ctas br { display: none; }

/* ── Value Props ─────────────────────────────────────────────────────── */
.pf-value-props {
  background: #fff; border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb; padding: 28px 0;
}
.pf-vp-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: center;
}
.pf-vp-item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 36px; flex: 1; justify-content: center;
}
.pf-vp-icon { color: #F5A623; width: 36px; height: 36px; flex-shrink: 0; }
.pf-vp-label { font-size: 15px; font-weight: 600; color: #1a2744; line-height: 1.3; }
.pf-vp-divider { width: 1px; height: 44px; background: #e5e7eb; flex-shrink: 0; }

/* ── Articles ────────────────────────────────────────────────────────── */
.pf-articles-section { background: #fff; padding: 32px 0 0; }
.pf-articles-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.pf-articles-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 32px;
}
.pf-featured-card {
  border-radius: 12px; background-size: cover; background-position: center;
  min-height: 480px; display: flex; align-items: flex-end;
  overflow: hidden; background-color: #1a2744;
}
.pf-featured-overlay {
  background: linear-gradient(to top, rgba(10,20,40,.93) 0%, rgba(10,20,40,.45) 55%, transparent 100%);
  padding: 32px; width: 100%;
}
.pf-featured-badge {
  background: #1a2744; color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 4px; display: inline-block; margin-bottom: 16px;
}
.pf-featured-title {
  font-size: 22px; font-weight: 700; color: #fff;
  line-height: 1.3; margin: 0 0 12px;
}
.pf-featured-excerpt {
  font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.55; margin: 0 0 18px;
}
.pf-featured-foot { display: flex; align-items: center; justify-content: space-between; }
.pf-featured-link { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.pf-featured-link:hover { color: #F5A623; }
.pf-featured-time { font-size: 13px; color: rgba(255,255,255,.55); }

.pf-recent-list { display: flex; flex-direction: column; gap: 16px; }
.pf-recent-card {
  display: grid; grid-template-columns: 120px 1fr;
  border: 1px solid #e5e7eb; border-radius: 10px;
  overflow: hidden; background: #fff; transition: box-shadow .2s;
}
.pf-recent-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pf-recent-thumb { min-height: 110px; overflow: hidden; background: #f3f4f6; }
.pf-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb-empty { background: #e9ebef; }
.pf-recent-body { padding: 16px; }
.pf-recent-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: #F5A623; text-transform: uppercase; display: block; margin-bottom: 6px;
}
.pf-recent-title { font-size: 15px; font-weight: 600; color: #1a2744; line-height: 1.35; margin: 0 0 8px; }
.pf-recent-title a { color: inherit; text-decoration: none; }
.pf-recent-title a:hover { color: #F5A623; }
.pf-recent-time { font-size: 12px; color: #9ca3af; }

.pf-see-all-row {
  text-align: center; padding: 20px 0 24px;
  border-bottom: 1px solid #e5e7eb; margin-bottom: 48px;
}
.pf-see-all { font-size: 15px; font-weight: 600; color: #1a2744; text-decoration: none; }
.pf-see-all:hover { color: #F5A623; }

.pf-section-heading { text-align: center; padding: 0 40px 32px; }
.pf-section-heading h2 { font-size: 28px; font-weight: 700; color: #1a2744; margin: 0; }

/* ── Categories ──────────────────────────────────────────────────────── */
.pf-cats-section { background: #fff; padding: 0 0 32px; }
.pf-cats-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.pf-cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pf-cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 16px; background: #fff; border: 1.5px solid #e5e7eb;
  border-radius: 12px; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s; text-align: center;
}
.pf-cat-item:hover {
  border-color: #F5A623; box-shadow: 0 4px 18px rgba(245,166,35,.14);
  transform: translateY(-2px);
}
.pf-cat-icon { color: #F5A623; width: 40px; height: 40px; }
.pf-cat-label { font-size: 14px; font-weight: 600; color: #1a2744; line-height: 1.3; }

/* ── Why PuntoFrugal ─────────────────────────────────────────────────── */
.pf-why-section { background: #0B1426; padding: 16px 0; }
.pf-why-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.pf-why-heading { text-align: center; font-size: 32px; font-weight: 700; color: #fff; margin: 0 0 14px; font-family: 'Playfair Display', Georgia, serif; }
.pf-why-section .pf-accent { color: #F5A623; }
.pf-why-grid { display: flex; align-items: flex-start; }
.pf-why-item {
  flex: 1; padding: 0 20px;
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
}
.pf-why-item:first-child { padding-left: 0; }
.pf-why-item:last-child  { padding-right: 0; }
.pf-why-icon-wrap {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(245,166,35,.4);
  background: rgba(245,166,35,.07);
  display: flex; align-items: center; justify-content: center;
}
.pf-why-icon { color: #F5A623; width: 26px; height: 26px; }
.pf-why-text h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.pf-why-text p  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin: 0; }
.pf-why-divider { width: 1px; background: rgba(255,255,255,.12); align-self: stretch; flex-shrink: 0; }

/* ── Newsletter ──────────────────────────────────────────────────────── */
.pf-newsletter-section { background: #fff; border-top: 1px solid #e5e7eb; padding: 36px 0; margin: 0; }
.pf-newsletter-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.pf-newsletter-left { display: flex; align-items: center; gap: 24px; }
.pf-newsletter-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(245,166,35,.4);
  background: rgba(245,166,35,.07);
  display: flex; align-items: center; justify-content: center;
}
.pf-newsletter-icon { color: #F5A623; width: 34px; height: 34px; }
.pf-newsletter-heading { font-size: 24px; font-weight: 700; color: #1a2744; line-height: 1.25; margin: 0 0 10px; }
.pf-newsletter-sub { font-size: 14px; color: #4b5563; line-height: 1.65; margin: 0; }
.pf-newsletter-form { display: flex; gap: 12px; margin-bottom: 10px; }
.pf-newsletter-input {
  flex: 1; padding: 14px 16px; border: 1px solid #e5e7eb;
  border-radius: 6px; background: #f9fafb; color: #1a2744;
  font-size: 14px; outline: none;
}
.pf-newsletter-input::placeholder { color: #9ca3af; }
.pf-newsletter-input:focus { border-color: #F5A623; }
.pf-newsletter-btn {
  background: #F5A623; color: #fff; padding: 14px 24px; border: none;
  border-radius: 6px; font-weight: 700; font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: background .2s;
}
.pf-newsletter-btn:hover { background: #d4901a; }
.pf-newsletter-spam {
  font-size: 12px; color: #9ca3af;
  display: flex; align-items: center; gap: 6px; margin: 0;
}
.pf-lock-icon { width: 13px; height: 13px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pf-hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .pf-hero-image { order: -1; min-height: 360px; }
  .pf-articles-grid { grid-template-columns: 1fr; }
  .pf-cats-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-newsletter-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .pf-hero { padding: 48px 0; }
  .pf-hero-inner { padding: 0 20px; gap: 32px; }
  .pf-hero-subtitle { max-width: 100%; }
  .pf-vp-inner { flex-wrap: wrap; gap: 4px; padding: 0 20px; }
  .pf-vp-item { flex: 0 0 calc(50% - 2px); padding: 12px; }
  .pf-vp-divider { display: none; }
  .pf-articles-inner { padding: 0 20px; }
  .pf-section-heading { padding: 0 20px 28px; }
  .pf-cats-inner { padding: 0 20px; }
  .pf-cats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .pf-why-inner { padding: 0 20px; }
  .pf-why-grid { flex-direction: column; gap: 28px; }
  .pf-why-item { padding: 0 !important; }
  .pf-why-divider { display: none; }
  .pf-newsletter-inner { padding: 0 20px; }
  .pf-newsletter-left { align-items: flex-start; }
  .pf-newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .pf-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-vp-item { flex: 0 0 calc(50% - 2px); }
  .pf-newsletter-icon-wrap { width: 60px; height: 60px; }
  .pf-newsletter-icon { width: 26px; height: 26px; }
}
