/* ============================================================
   CORSODORO — SHARED PAGE COMPONENTS
   Reusable CSS for heroes, cards, tables, footers, etc.
   Include on every page alongside nav.css
   ============================================================ */

/* ── Page Hero ── */
.page-hero { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,22,18,0.75), rgba(27,67,50,0.85)); }
.page-hero__content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; }
.page-hero__title { font-size: 44px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.page-hero__subtitle { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* ── Article Hero ── */
.article-hero { position: relative; height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.article-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.article-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,18,0.9) 0%, rgba(10,22,18,0.3) 100%); }
.article-hero__content { position: relative; z-index: 1; padding: 0 24px 48px; max-width: 1200px; margin: 0 auto; width: 100%; }
.article-hero__breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.article-hero__breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.article-hero__breadcrumb a:hover { color: #fff; }
.article-hero__title { font-size: 40px; font-weight: 700; color: #fff; max-width: 700px; }
.article-hero__meta { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; }
.article-hero__logos { display: flex; gap: 20px; margin-top: 20px; }
.article-hero__logos img { height: 56px; opacity: 0.9; }

/* ── Content Sections ── */
.content-section { padding: 80px 0; }
.content-section--alt { background: #ffffff; }
.section-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #2D6A4F; margin-bottom: 12px; }
.section-title { font-size: 32px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }
.section-intro { font-size: 16px; color: #4a5568; line-height: 1.7; max-width: 800px; margin-bottom: 40px; }

/* ── Data Tables ── */
.grades-table, .grade-table, .compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.grades-table thead, .grade-table thead, .compare-table thead { background: #1A2A21; color: #fff; }
.grades-table th, .grade-table th, .compare-table th { padding: 14px 20px; text-align: left; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.grades-table td, .grade-table td, .compare-table td { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid #e2e8e5; color: #4a5568; vertical-align: top; }
.grades-table tbody tr:hover, .grade-table tbody tr:hover, .compare-table tbody tr:hover { background: #f9fafb; }
.grades-table tbody tr:last-child td, .grade-table tbody tr:last-child td, .compare-table tbody tr:last-child td { border-bottom: none; }
.grade-name, .row-label { font-weight: 600; color: #1a1a1a; }

/* ── Origin Cards ── */
.origins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.origin-card { background: #fff; border: 1px solid #e2e8e5; border-radius: 14px; padding: 28px; transition: border-color 0.3s, box-shadow 0.3s; }
.origin-card:hover { border-color: #52876B; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.origin-card__flag { font-size: 32px; margin-bottom: 12px; }
.origin-card__name { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.origin-card__desc { font-size: 14px; color: #4a5568; line-height: 1.7; }

/* ── Spec Cards ── */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.spec-card { background: #fff; border: 1px solid #e2e8e5; border-radius: 12px; padding: 24px; }
.spec-card__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #2D6A4F; margin-bottom: 8px; }
.spec-card__value { font-size: 15px; color: #1a1a1a; font-weight: 500; }
.spec-card__detail { font-size: 13px; color: #4a5568; margin-top: 4px; }

/* ── Cert Logos ── */
.cert-logos { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 24px; }
.cert-logo-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cert-logo-item img { height: 64px; width: auto; object-fit: contain; }
.cert-logo-item span { font-size: 12px; color: #4a5568; font-weight: 500; }

/* ── Cert Cards (certifications page) ── */
.certs-section { padding: 80px 0; }
.certs-section__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #2D6A4F; margin-bottom: 32px; padding-bottom: 12px; border-bottom: 2px solid #e2e8e5; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-bottom: 64px; }
.cert-card { background: #fff; border: 1px solid #e2e8e5; border-radius: 14px; padding: 32px; transition: border-color 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.cert-card:hover { border-color: #52876B; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.cert-card__header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.cert-card__logo { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.cert-card__title-group { flex: 1; }
.cert-card__name { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 2px; }
.cert-card__full-name { font-size: 12px; color: #4a5568; }
.cert-card__desc { font-size: 14px; color: #4a5568; line-height: 1.7; margin-bottom: 20px; flex: 1; }
.cert-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; }
.cert-card__meta dt { font-weight: 600; color: #1a1a1a; }
.cert-card__meta dd { color: #4a5568; margin: 0; }

/* ── Why Certs ── */
.why-certs { padding: 64px 0; background: #ffffff; }
.why-certs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.why-certs__card { text-align: center; }
.why-certs__icon { font-size: 32px; margin-bottom: 16px; }
.why-certs__card h3 { font-size: 16px; margin-bottom: 8px; }
.why-certs__card p { font-size: 14px; color: #4a5568; line-height: 1.7; }

/* ── Harvest Calendar ── */
.harvest-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.harvest-item { background: #fff; border: 1px solid #e2e8e5; border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.harvest-item__region { font-weight: 600; color: #1a1a1a; font-size: 15px; min-width: 120px; }
.harvest-item__months { font-size: 14px; color: #2D6A4F; font-weight: 500; }

/* ── FAQ ── */
.faq-section { padding: 80px 0; }
.faq-item { border-bottom: 1px solid #e2e8e5; padding: 24px 0; }
.faq-item:first-child { border-top: 1px solid #e2e8e5; }
.faq-question { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.faq-answer { font-size: 15px; color: #4a5568; line-height: 1.7; max-width: 800px; }

/* ── Article Layout ── */
.article { padding: 64px 0; }
.article__grid { display: grid; grid-template-columns: 1fr 300px; gap: 64px; max-width: 1200px; margin: 0 auto; }
.article__body { max-width: 780px; }
.article__body h2 { font-size: 26px; margin: 48px 0 16px; }
.article__body h3 { font-size: 20px; margin: 32px 0 12px; }
.article__body p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; color: #4a5568; }
.article__body strong { color: #1a1a1a; }
.article__body ul, .article__body ol { margin: 0 0 20px 24px; font-size: 16px; line-height: 1.8; color: #4a5568; }
.article__body li { margin-bottom: 8px; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 100px; }
.sidebar__toc { background: #fff; border: 1px solid #e2e8e5; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.sidebar__toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #1a1a1a; margin-bottom: 16px; }
.sidebar__toc a { display: block; font-size: 14px; color: #4a5568; padding: 6px 0; transition: color 0.2s; text-decoration: none; }
.sidebar__toc a:hover { color: #2D6A4F; }
.sidebar__cta { background: linear-gradient(135deg, #1B4332, #2D6A4F); border-radius: 12px; padding: 28px 24px; color: #fff; text-align: center; }
.sidebar__cta h4 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.sidebar__cta p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.sidebar__cta .btn { display: inline-block; background: #fff; color: #1B4332; font-size: 14px; font-weight: 600; padding: 10px 24px; border-radius: 8px; text-decoration: none; }

/* ── Callout ── */
.callout { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 24px 28px; margin: 28px 0; }
.callout--amber { background: #fffbeb; border-color: #fde68a; }
.callout__title { font-size: 15px; font-weight: 700; color: #1B4332; margin-bottom: 8px; }
.callout--amber .callout__title { color: #92400e; }
.callout p { font-size: 14px; line-height: 1.7; color: #4a5568; margin-bottom: 0; }

/* ── Related ── */
.related, .related-section { padding: 64px 0; background: #ffffff; }
.related__grid, .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 24px; }
.related__card, .related-link { display: block; padding: 20px 24px; background: #FAF7F2; border: 1px solid #e2e8e5; border-radius: 12px; transition: border-color 0.2s; text-decoration: none; }
.related__card:hover, .related-link:hover { border-color: #52876B; }
.related__card-label, .related-link__label { font-size: 12px; color: #2D6A4F; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.related__card-title, .related-link__title { font-size: 15px; font-weight: 600; color: #1a1a1a; }

/* ── CTA ── */
.cta { padding: 80px 0; background: linear-gradient(135deg, #1A2A21 0%, #1B4332 100%); text-align: center; color: #fff; }
.cta h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 28px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: all 0.2s; text-decoration: none; border: none; cursor: pointer; }
.btn--green, .btn--primary { background: #2D6A4F; color: #fff; }
.btn--green:hover, .btn--primary:hover { background: #52876B; transform: translateY(-1px); }
.btn--outline-white { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }

/* ── Footer ── */
.footer { background: #1A2A21; color: rgba(255,255,255,0.5); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer__brand-icon { width: 24px; height: 24px; }
.footer__brand-desc { font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.footer__contact-line { margin-bottom: 4px; font-size: 14px; }
.footer__contact-line a { color: rgba(255,255,255,0.55); transition: color 0.2s; text-decoration: none; }
.footer__contact-line a:hover { color: #52876B; }
.footer__col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 12px; }
.footer__col a { color: rgba(255,255,255,0.45); font-size: 14px; transition: color 0.2s; text-decoration: none; }
.footer__col a:hover { color: #52876B; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.3); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article__grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .page-hero { height: 300px; }
  .page-hero__title { font-size: 32px; }
  .article-hero { height: 280px; }
  .article-hero__title { font-size: 30px; }
  .article__body h2 { font-size: 22px; }
  .section-title { font-size: 26px; }
  .origins-grid, .specs-grid, .harvest-calendar { grid-template-columns: 1fr; }
  .related__grid, .related-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .why-certs__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
