/*
Theme Name: Reci Media Hub
Theme URI: https://example.com/reci-media-hub
Author: Reci Team
Author URI: https://example.com
Description: Block theme foundation for implementing Figma designs in WordPress.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reci-media-hub
Tags: full-site-editing, block-patterns, custom-colors, custom-logo
*/

:root {
  --reci-blue: var(--wp--preset--color--primary-blue);
  --reci-yellow: var(--wp--preset--color--highlight-yellow);
  --reci-bg: var(--wp--preset--color--background-blue);
  --reci-dark: var(--wp--preset--color--dark);
  --reci-ink: var(--wp--preset--color--ink);
  --reci-muted: var(--wp--preset--color--muted);
  --reci-border: var(--wp--preset--color--line);
  --reci-white: var(--wp--preset--color--surface);
  --reci-radius-sm: 4px;
  --reci-radius-md: 8px;
}

body {
  background: var(--reci-bg);
  color: var(--reci-ink);
}

.reci-home-shell {
  padding: 0;
}

.reci-header {
  position: relative;
  z-index: 5;
}

.reci-wrap {
  margin: 0 auto;
  max-width: 1320px;
  width: calc(100% - 120px);
}

.reci-utility-bar {
  background: var(--reci-blue);
  min-height: 72px;
}

.reci-utility-inner {
  align-items: center;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 72px;
  width: calc(100% - 200px);
}

.reci-utility-logo-link {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.reci-utility-logo {
  display: block;
  height: 47.5px;
  max-width: 250px;
  object-fit: contain;
  width: auto;
}

.reci-utility-actions {
  align-items: center;
  display: flex;
  gap: 20px;
}

.reci-utility-right {
  align-items: center;
  display: flex;
  gap: 60px;
}

.reci-utility-actions a {
  color: var(--reci-white);
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 0;
  text-decoration: none;
}

.reci-utility-donate {
  align-items: center;
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  line-height: 24px;
  min-width: 120px;
  min-height: 52px;
  padding: 14px 28px;
}

.reci-main-nav {
  background: var(--reci-white);
  border-bottom: 0.5px solid var(--reci-border);
}

.reci-main-nav-inner {
  align-items: center;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  min-height: 64px;
}

.reci-brand-block {
  align-items: center;
  color: var(--reci-dark);
  display: inline-flex;
  flex-shrink: 0;
  gap: 20px;
  text-decoration: none;
}

.reci-brand-logo {
  display: block;
  height: auto;
  max-width: 170px;
  object-fit: contain;
  width: 170px;
}

.reci-brand-divider {
  background: var(--reci-border);
  display: inline-block;
  height: 40px;
  width: 1px;
}

.reci-brand-hub {
  color: var(--reci-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.reci-search-row {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 40px;
  justify-content: flex-end;
}

.reci-search-pill {
  align-items: center;
  background: var(--reci-bg);
  border-radius: var(--reci-radius-md);
  color: var(--reci-muted);
  display: flex;
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  gap: 10px;
  line-height: 1.2;
  min-width: 0;
  padding: 20px;
  width: 350px;
}

.reci-search-icon {
  border: 2px solid var(--reci-muted);
  border-radius: 999px;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.reci-search-icon::after {
  background: var(--reci-muted);
  content: "";
  height: 2px;
  position: absolute;
  right: -5px;
  top: 13px;
  transform: rotate(45deg);
  width: 6px;
}

.reci-nav-link {
  align-items: center;
  color: var(--reci-dark);
  display: inline-flex;
  font-size: 16px;
  gap: 8px;
  line-height: 1.2;
  text-decoration: none;
}

.reci-reflection-icon {
  border: 1.5px solid currentcolor;
  border-radius: 999px;
  display: inline-block;
  height: 16px;
  position: relative;
  width: 16px;
}

.reci-reflection-icon::before {
  background: currentcolor;
  border-radius: 2px 2px 1px 1px;
  content: "";
  height: 7px;
  left: 5px;
  position: absolute;
  top: 2px;
  width: 4px;
}

.reci-reflection-icon::after {
  background: currentcolor;
  border-radius: 1px;
  content: "";
  height: 2px;
  left: 4px;
  position: absolute;
  top: 11px;
  width: 6px;
}

.reci-menu-btn {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  height: 32px;
  justify-content: center;
  padding: 6px;
  width: 32px;
}

.reci-menu-btn span {
  background: var(--reci-ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  width: 20px;
}

.reci-site-footer {
  background: var(--reci-blue);
  color: var(--reci-white);
  padding-top: 100px;
}

.reci-footer-wrap {
  margin: 0 auto;
  max-width: 1240px;
  width: calc(100% - 200px);
}

.reci-footer-brand-row {
  margin-bottom: 40px;
}

.reci-footer-brand-block {
  align-items: center;
  color: var(--reci-white);
  display: inline-flex;
  gap: 22px;
  text-decoration: none;
}

.reci-footer-logo {
  display: block;
  height: 47px;
  max-width: 250px;
  object-fit: contain;
  width: auto;
}

.reci-footer-brand-divider {
  background: #b0c0de;
  display: inline-block;
  height: 30px;
  width: 1px;
}

.reci-footer-brand-hub {
  color: var(--reci-white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.reci-footer-main {
  align-items: flex-start;
  display: flex;
  gap: 80px;
}

.reci-footer-nav-grid {
  display: flex;
  gap: 80px;
}

.reci-footer-col {
  min-width: 150px;
}

.reci-footer-col h3 {
  color: #8aa2ce;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.reci-footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reci-footer-col a {
  color: var(--reci-white);
  display: inline-block;
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 0;
  text-decoration: none;
}

.reci-footer-col p {
  color: var(--reci-white);
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: 1.6;
  margin: 0;
  max-width: 197px;
}

.reci-footer-newsletter {
  flex: 1;
}

.reci-footer-newsletter h2 {
  color: var(--reci-white);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}

.reci-footer-form {
  align-items: center;
  border-bottom: 0.5px solid #b0c0de;
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.reci-footer-form input {
  background: transparent;
  border: 0;
  color: var(--reci-white);
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.reci-footer-form input::placeholder {
  color: #8aa2ce;
  opacity: 1;
}

.reci-footer-form button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--reci-white);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  opacity: 0.8;
  padding: 0;
}

.reci-footer-submit-icon {
  border-bottom: 2px solid currentcolor;
  border-right: 2px solid currentcolor;
  display: inline-block;
  height: 10px;
  transform: rotate(-45deg) translateY(-1px);
  width: 10px;
}

.reci-footer-note {
  color: var(--reci-white);
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 460px;
}

.reci-footer-bottom {
  align-items: center;
  border-top: 0.5px solid #b0c0de;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding: 40px 0 60px;
}

.reci-footer-bottom p {
  color: var(--reci-white);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.reci-footer-legal {
  align-items: center;
  display: flex;
  gap: 20px;
}

.reci-footer-legal a {
  color: var(--reci-white);
  display: inline-block;
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 0;
  text-decoration: none;
}

.reci-hero-section {
  padding: 40px 0 100px;
}

.reci-hero-section .reci-wrap {
  max-width: 1240px;
  width: calc(100% - 200px);
}

.reci-hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 700px minmax(0, 1fr);
}

.reci-hero-feature h1 {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(2.25rem, 5vw, 3.875rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0;
}

.reci-feature-copy p,
.reci-cta-card p,
.reci-highlight-card p,
.reci-rail-card p {
  color: var(--reci-muted);
  font-size: 14px;
  line-height: 1.6;
}

.reci-meta-row,
.reci-tag-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reci-meta-row {
  gap: 12px;
}

.reci-meta-row > * {
  margin: 0;
}

.reci-chip {
  border-radius: var(--reci-radius-sm);
  display: inline-block;
  font-size: 14px;
  line-height: 1.1;
  padding: 4px 8px;
}

.reci-chip-yellow {
  background: var(--reci-yellow);
  color: var(--reci-ink);
}

.reci-chip-dark {
  background: var(--reci-ink);
  color: var(--reci-white);
}

.reci-chip-blue {
  background: var(--reci-blue);
  color: var(--reci-white);
}

.reci-chip-muted {
  background: #e9e9ea;
  color: var(--reci-muted);
}

.reci-meta-dot {
  background: var(--reci-yellow);
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.reci-date {
  font-size: 14px;
  margin: 0;
}

.reci-hero-query,
.reci-rail-query {
  margin: 0;
}

.reci-hero-feature-wrap,
.reci-rail-query .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reci-hero-feature .wp-block-post-title {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(2.25rem, 5vw, 3.875rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0;
}

.reci-hero-feature .wp-block-post-title a {
  color: var(--reci-ink);
  text-decoration: none;
}

.reci-hero-feature .wp-block-post-title a:hover {
  text-decoration: underline;
}

.reci-hero-feature .wp-block-post-excerpt {
  margin: 0 0 16px;
}

.reci-hero-feature .wp-block-post-excerpt p {
  color: var(--reci-muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.reci-hero-feature .wp-block-post-terms {
  margin: 0 0 16px;
}

.reci-hero-feature .wp-block-post-featured-image {
  margin-top: 40px;
}

.reci-hero-feature .wp-block-post-featured-image img {
  aspect-ratio: 700 / 372;
  border-radius: var(--reci-radius-md);
  display: block;
  object-fit: cover;
  width: 100%;
}

.reci-hero-rail {
  border-left: 0.5px solid var(--reci-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: none;
  overflow: visible;
  padding-left: 40px;
}

.reci-rail-card {
  border-bottom: 1px solid var(--reci-border);
  display: grid;
  gap: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding-bottom: 20px;
}

.reci-rail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.reci-rail-card .wp-block-post-featured-image {
  margin: 0;
}

.reci-rail-card .wp-block-post-featured-image img {
  border-radius: var(--reci-radius-md);
  display: block;
  height: 150px;
  object-fit: cover;
  width: 180px;
}

.reci-rail-content .wp-block-post-title {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.reci-rail-content .wp-block-post-title a {
  color: var(--reci-ink);
  text-decoration: none;
}

.reci-rail-content .wp-block-post-title a:hover {
  text-decoration: underline;
}

.reci-rail-content .wp-block-post-terms {
  margin: 0;
}

.reci-rail-card h3,
.reci-feed-card h3 {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.reci-terms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reci-terms-row a {
  background: #e9e9ea;
  border-radius: var(--reci-radius-sm);
  color: var(--reci-muted);
  display: inline-block;
  font-size: 14px;
  line-height: 1.1;
  padding: 4px 8px;
  text-decoration: none;
}

.reci-terms-row a:hover {
  text-decoration: underline;
}

.reci-media {
  background-color: #d7dbe4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--reci-radius-md);
}

.reci-media-map {
  aspect-ratio: 800 / 408;
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80");
}

.reci-media-thumb,
.reci-media-thumb-alt {
  height: 180px;
  width: 180px;
}

.reci-media-thumb {
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=800&q=80");
}

.reci-media-thumb-alt {
  background-image: url("https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?auto=format&fit=crop&w=800&q=80");
}

.reci-highlight-band {
  background-image: linear-gradient(rgba(243, 245, 249, 0.78), rgba(243, 245, 249, 0.78)), url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  padding: 60px 0;
}

.reci-highlight-card {
  background: var(--reci-white);
  border-radius: var(--reci-radius-md);
  max-width: 520px;
  padding: 28px;
}

.reci-highlight-kicker {
  color: var(--reci-blue);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
}

.reci-highlight-card h2,
.reci-section-head h2,
.reci-feature-copy h2,
.reci-cta-card h2 {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

.reci-feed-section,
.reci-feature-split {
  padding: 80px 0 20px;
}

.reci-feature-split {
  padding-bottom: 70px;
}

.reci-section-head {
  align-items: center;
  border-bottom: 1px solid var(--reci-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.reci-card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.reci-feed-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reci-query-loop {
  margin: 0;
}

.reci-feed-card .wp-block-post-featured-image {
  margin: 0;
}

.reci-feed-card .wp-block-post-featured-image a {
  display: block;
}

.reci-feed-card .wp-block-post-featured-image img {
  aspect-ratio: 413 / 300;
  border-radius: var(--reci-radius-md);
  display: block;
  object-fit: cover;
  width: 100%;
}

.reci-feed-card .wp-block-post-title {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.reci-feed-card .wp-block-post-title a {
  color: var(--reci-ink);
  text-decoration: none;
}

.reci-feed-card .wp-block-post-title a:hover {
  text-decoration: underline;
}

.reci-media-card {
  aspect-ratio: 413 / 300;
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80");
}

.reci-feature-grid {
  align-items: stretch;
  border-bottom: 1px solid var(--reci-border);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 550px;
  padding-bottom: 24px;
}

.reci-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reci-cta-band {
  background-image: linear-gradient(rgba(0, 53, 148, 0.45), rgba(0, 53, 148, 0.45)), url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  padding: 90px 0;
}

.reci-cta-card {
  align-items: stretch;
  background: var(--reci-white);
  border-radius: var(--reci-radius-md);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 40px;
}

.reci-btn {
  border-radius: var(--reci-radius-md);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 20px;
  text-decoration: none;
}

.reci-btn-yellow {
  background: var(--reci-yellow);
  color: var(--reci-dark);
}

.reci-btn-ghost {
  border: 1px solid var(--reci-dark);
  color: var(--reci-dark);
}

.wp-block-button.reci-btn-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--reci-dark);
  border-radius: var(--reci-radius-md);
  color: var(--reci-dark);
  font-size: 14px;
  padding: 10px 16px;
}

@media (max-width: 1200px) {
  .reci-wrap {
    width: calc(100% - 48px);
  }

  .reci-hero-section .reci-wrap {
    width: calc(100% - 48px);
  }

  .reci-utility-inner {
    width: calc(100% - 48px);
  }

  .reci-footer-wrap {
    width: calc(100% - 48px);
  }

  .reci-footer-main {
    flex-direction: column;
  }

  .reci-footer-nav-grid {
    flex-wrap: wrap;
    gap: 48px;
  }

  .reci-hero-grid,
  .reci-feature-grid {
    grid-template-columns: 1fr;
  }

  .reci-hero-rail {
    border-left: 0;
    border-top: 1px solid var(--reci-border);
    max-height: none;
    padding-left: 0;
    padding-top: 20px;
  }

  .reci-rail-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .reci-rail-card .wp-block-post-featured-image img {
    height: 150px;
    width: 150px;
  }

  .reci-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .reci-wrap {
    width: calc(100% - 28px);
  }

  .reci-hero-section .reci-wrap {
    width: calc(100% - 28px);
  }

  .reci-utility-inner {
    width: calc(100% - 28px);
  }

  .reci-footer-wrap {
    width: calc(100% - 28px);
  }

  .reci-utility-inner,
  .reci-utility-right,
  .reci-main-nav-inner,
  .reci-search-row,
  .reci-section-head,
  .reci-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .reci-utility-right,
  .reci-search-row {
    gap: 20px;
    width: 100%;
  }

  .reci-brand-block {
    gap: 12px;
  }

  .reci-brand-divider {
    display: none;
  }

  .reci-brand-hub {
    font-size: 16px;
  }

  .reci-utility-logo {
    height: 36px;
    max-width: 190px;
  }

  .reci-site-footer {
    padding-top: 56px;
  }

  .reci-footer-brand-block {
    gap: 12px;
  }

  .reci-footer-brand-divider {
    display: none;
  }

  .reci-footer-main {
    gap: 32px;
  }

  .reci-footer-nav-grid {
    flex-direction: column;
    gap: 24px;
  }

  .reci-footer-col p {
    max-width: none;
  }

  .reci-footer-newsletter h2 {
    font-size: 28px;
  }

  .reci-footer-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .reci-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
  }

  .reci-footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .reci-search-pill {
    width: 100%;
  }

  .reci-hero-section {
    padding-bottom: 48px;
  }

  .reci-card-grid {
    grid-template-columns: 1fr;
  }

  .reci-rail-card {
    grid-template-columns: 1fr;
  }

  .reci-media-thumb,
  .reci-media-thumb-alt {
    width: 100%;
  }

  .reci-rail-card .wp-block-post-featured-image img {
    height: auto;
    width: 100%;
  }

  .reci-cta-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .reci-highlight-card h2,
  .reci-section-head h2,
  .reci-feature-copy h2,
  .reci-cta-card h2 {
    font-size: 24px;
  }
}
