/*
Theme Name: Eko Patriote
Theme URI: https://example.com/ekopatriote
Author: Codex
Description: Prilagodjena WordPress tema za inicijativu Eko Patriote.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: ekopatriote-theme
*/

:root {
  --ep-forest: #234035;
  --ep-moss: #3f6a52;
  --ep-sage: #8fa98b;
  --ep-sand: #efe4cf;
  --ep-cream: #f8f5ee;
  --ep-ink: #14211b;
  --ep-accent: #bf6c2f;
  --ep-border: rgba(20, 33, 27, 0.12);
  --ep-shadow: 0 20px 50px rgba(20, 33, 27, 0.12);
  --ep-radius: 24px;
  --ep-content-width: 1180px;
  --wp--style--global--content-size: 780px;
  --wp--style--global--wide-size: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ep-ink);
  background:
    radial-gradient(circle at top left, rgba(191, 108, 47, 0.12), transparent 35%),
    linear-gradient(180deg, #f4efe4 0%, #f8f5ee 32%, #f3f1ea 100%);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header,
.site-footer,
.ep-section__inner,
.wp-block-group.alignwide,
.wp-block-group.alignfull > .wp-block-group__inner-container,
.site-main > article {
  width: min(calc(100% - 2rem), var(--ep-content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  backdrop-filter: blur(12px);
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 245, 238, 0.88);
  border-bottom: 1px solid rgba(20, 33, 27, 0.08);
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-description {
  margin: 0;
  color: rgba(20, 33, 27, 0.72);
  font-size: 0.9rem;
}

.primary-menu {
  display: flex;
  align-items: center;
}

.primary-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  font-size: 0.95rem;
}

.ep-button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ep-forest);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.ep-button--secondary {
  background: transparent;
  color: var(--ep-forest);
  border: 1px solid var(--ep-forest);
}

.ep-hero {
  width: min(calc(100% - 2rem), var(--ep-content-width));
  margin: 1.5rem auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: calc(var(--ep-radius) + 10px);
  background:
    linear-gradient(120deg, rgba(35, 64, 53, 0.94), rgba(63, 106, 82, 0.86)),
    linear-gradient(180deg, rgba(248, 245, 238, 0.2), rgba(248, 245, 238, 0));
  color: #fff;
  box-shadow: var(--ep-shadow);
}

.ep-hero__eyebrow,
.ep-section__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ep-hero h1,
.ep-section__heading h1,
.ep-section__heading h2,
.entry-title {
  margin: 0 0 1rem;
  line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.ep-hero__intro {
  max-width: 720px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.ep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.ep-grid,
.ep-cards,
.ep-post-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.ep-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.ep-section--alt .ep-section__inner {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--ep-radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--ep-shadow);
}

.ep-section__heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.ep-card,
.ep-panel,
.ep-post-card,
.wp-block-group.is-style-ep-panel {
  padding: 1.5rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--ep-shadow);
}

.ep-card h3,
.ep-post-card h2,
.ep-post-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.ep-card,
.ep-post-card {
  grid-column: span 4;
}

.ep-card--wide {
  grid-column: span 6;
}

.ep-list {
  margin: 0;
  padding-left: 1.1rem;
}

.ep-list li + li {
  margin-top: 0.5rem;
}

.ep-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.ep-highlight__content {
  padding: 1rem 0;
}

.ep-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ep-stat {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.ep-stat strong {
  display: block;
  font-size: 1.9rem;
}

.entry-header {
  padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}

.entry-content {
  padding-bottom: 3rem;
}

.entry-content > * {
  max-width: 780px;
}

.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > .wp-block-group,
.entry-content > .wp-block-cover {
  max-width: none;
}

.archive-intro {
  padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}

.site-footer-wrap {
  margin-top: 3rem;
  background: var(--ep-forest);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .ep-card,
  .ep-card--wide,
  .ep-post-card {
    grid-column: span 6;
  }

  .ep-highlight,
  .ep-stat-strip,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ep-card,
  .ep-card--wide,
  .ep-post-card {
    grid-column: 1 / -1;
  }

  .ep-hero h1,
  .ep-section__heading h1,
  .ep-section__heading h2,
  .entry-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
