/*
Theme Name: Ogrjev.hr
Theme URI: https://ogrjev.hr/
Author: Ogrjev.hr
Description: Lagana prodajna WordPress block tema za ogrjevno drvo, pelete, drveni ugljen, drvene brikete i dostavu.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: ogrjev-hr
*/

:root {
  --og-forest: #173f32;
  --og-dark: #0b251d;
  --og-amber: #f0b441;
  --og-amber-light: #f6cf7a;
  --og-paper: #fbfaf7;
  --og-cream: #f5f0e6;
  --og-ink: #17201c;
  --og-muted: #68736d;
  --og-line: #dce2dd;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }

.og-header-main {
  min-height: 88px;
  border-bottom: 1px solid rgba(220, 226, 221, .9);
}

.og-brand .wp-block-site-title {
  margin: 0;
  font-size: 21px;
  letter-spacing: .08em;
  line-height: 1;
}

.og-brand .wp-block-site-tagline {
  margin: 4px 0 0;
  color: #7a827d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
}

.og-navigation a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.og-call-button .wp-element-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding-inline: 19px;
  white-space: nowrap;
}

.og-hero {
  min-height: 610px;
}

.og-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(7, 28, 22, .96) 0%, rgba(10, 38, 29, .84) 43%, rgba(10, 38, 29, .26) 74%, rgba(10, 38, 29, .05) 100%) !important;
  opacity: 1 !important;
}

.og-hero-content {
  padding-top: 74px;
  padding-bottom: 80px;
}

.og-eyebrow {
  margin-bottom: 16px !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.og-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.og-accent { color: var(--og-amber-light); }

.og-lead {
  max-width: 630px;
  margin-top: 25px !important;
  font-size: 18px !important;
  line-height: 1.65;
}

.og-hero-buttons { margin-top: 30px !important; }
.og-hero-buttons .wp-element-button { min-height: 54px; padding: 0 24px; }

.og-hero-benefits {
  max-width: 680px;
  margin-top: 34px !important;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 12px;
}

.og-section { padding-top: 96px; padding-bottom: 96px; }

.og-section-heading {
  margin-bottom: 42px !important;
  align-items: end;
}

.og-section-heading h2,
.og-process h2,
.og-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.og-section-heading > .wp-block-column:last-child p {
  color: var(--og-muted);
  line-height: 1.75;
}

.og-product-grid { align-items: stretch !important; }
.og-product-grid > .wp-block-column { display: flex; }

.og-card {
  width: 100%;
  min-height: 405px;
  padding: 34px 31px !important;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--og-line);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.og-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(20, 55, 42, .1);
}

.og-card-kicker {
  margin-top: 44px !important;
  color: #8a928d;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.og-card h3 {
  margin: 8px 0 0;
  color: var(--og-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.og-card-copy {
  margin: 21px 0 25px !important;
  color: var(--og-muted);
  font-size: 14px !important;
  line-height: 1.75;
}

.og-card .wp-block-buttons { margin-top: auto; }
.og-card .wp-block-button__link { padding: 0; background: transparent !important; color: var(--og-forest) !important; font-size: 12px; font-weight: 800; }

.og-delivery {
  padding-top: 58px;
  padding-bottom: 58px;
}

.og-delivery h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
}

.og-delivery-copy { color: #cfdbd5; line-height: 1.7; }
.og-delivery .wp-element-button { min-height: 54px; display: inline-flex; align-items: center; }

.og-process { padding-top: 96px; padding-bottom: 96px; }
.og-process-intro > p:last-of-type { color: var(--og-muted); line-height: 1.75; }

.og-step {
  padding: 24px 0 !important;
  border-bottom: 1px solid #cfd5d0;
}

.og-step-number {
  color: var(--og-amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px !important;
}

.og-step h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.og-step p { margin: 0; color: var(--og-muted); font-size: 14px; }

.og-cta-wrap { padding-top: 74px; padding-bottom: 74px; }

.og-cta {
  padding: 56px 60px !important;
  background: var(--og-dark);
  color: #fff;
}

.og-cta-copy { max-width: 650px; color: #cfdad4; line-height: 1.7; }
.og-cta .wp-element-button { min-height: 54px; display: inline-flex; align-items: center; }

.og-footer-main {
  padding-top: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.og-footer-main a { text-decoration: none; }
.og-footer-nav { font-size: 13px; }
.og-footer-bottom { min-height: 60px; color: #85978e; font-size: 11px; }

@media (max-width: 950px) {
  .og-call-button { display: none !important; }
  .og-header-main { min-height: 76px; }
  .og-product-grid { flex-wrap: wrap !important; }
  .og-product-grid > .wp-block-column { flex-basis: 100% !important; }
  .og-card { min-height: 330px; }
}

@media (max-width: 680px) {
  .og-hero { min-height: 650px; }
  .og-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(7, 27, 21, .98) 0%, rgba(8, 31, 24, .91) 58%, rgba(8, 31, 24, .48) 100%) !important; }
  .og-hero-content { padding-top: 68px; padding-bottom: 50px; }
  .og-hero h1 { font-size: 44px; }
  .og-lead { font-size: 16px !important; }
  .og-hero-buttons .wp-block-button { width: 100%; }
  .og-hero-buttons .wp-element-button { width: 100%; justify-content: center; }
  .og-hero-benefits { gap: 8px !important; }
  .og-section,
  .og-process { padding-top: 68px; padding-bottom: 68px; }
  .og-section-heading { gap: 10px !important; }
  .og-card { padding: 28px 25px !important; }
  .og-delivery .wp-block-columns { gap: 24px; }
  .og-delivery .wp-block-button { width: 100%; }
  .og-delivery .wp-element-button { width: 100%; justify-content: center; }
  .og-process > .wp-block-columns { gap: 44px; }
  .og-cta-wrap { padding: 40px 0; }
  .og-cta { padding: 43px 26px !important; }
  .og-cta h2 { font-size: 38px; }
  .og-cta .wp-block-button { width: 100%; }
  .og-cta .wp-element-button { width: 100%; justify-content: center; }
}

/* Unutarnje stranice */
.og-detail-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(7,28,22,.97) 0%, rgba(10,38,29,.9) 43%, rgba(10,38,29,.28) 75%, rgba(10,38,29,.05) 100%) !important;
  opacity: 1 !important;
}

.og-detail-hero-inner { padding-top: 78px; padding-bottom: 82px; }
.og-detail-hero h1,
.og-detail-section h2,
.og-option-section h2,
.og-faq-section h2,
.og-contact-hero h1,
.og-contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.og-detail-hero h1,
.og-contact-hero h1 { font-size: clamp(50px, 6vw, 76px); }
.og-detail-lead { max-width: 650px; margin-top: 22px !important; font-size: 18px !important; line-height: 1.65; }

.og-detail-section,
.og-option-section,
.og-benefit-section,
.og-faq-section,
.og-contact-section { padding-top: 96px; padding-bottom: 96px; }
.og-detail-grid,
.og-contact-grid { gap: 80px; }
.og-detail-section h2,
.og-option-section h2,
.og-faq-section h2,
.og-contact-section h2 { font-size: clamp(38px, 4.2vw, 54px); }
.og-detail-grid > .wp-block-column:first-child > p:not(.og-eyebrow) { color: var(--og-muted); line-height: 1.8; }

.og-spec {
  padding: 34px 38px !important;
  border-top: 4px solid var(--og-amber);
  background: #fff;
  box-shadow: 0 20px 55px rgba(20,55,42,.09);
}
.og-spec-row { padding: 14px 0 !important; border-bottom: 1px solid var(--og-line); }
.og-spec-row p { margin: 0; line-height: 1.5; }
.og-spec-row small { color: #7c8680; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.og-spec-row strong { color: var(--og-dark); font-size: 14px; }

.og-option-section > .wp-block-group > h2 { margin-bottom: 42px; }
.og-option-grid { align-items: stretch !important; }
.og-option-grid > .wp-block-column { display: flex; }
.og-option {
  width: 100%;
  min-height: 280px;
  padding: 34px 31px !important;
  border: 1px solid #d6d9d3;
  background: rgba(255,255,255,.58);
}
.og-option-number { color: var(--og-amber); font-family: Georgia, "Times New Roman", serif; font-size: 35px !important; }
.og-option h3,
.og-benefit-grid h3 { margin-top: 44px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; }
.og-option p:last-child { color: var(--og-muted); font-size: 14px; line-height: 1.7; }
.og-benefit-grid h3 { color: #fff; margin-top: 0; }
.og-benefit-grid p { color: #c9d6cf; font-size: 14px; line-height: 1.7; }

.og-faq-grid { gap: 70px; }
.og-faq-item { padding: 24px 0; border-bottom: 1px solid var(--og-line); }
.og-faq-item summary { color: var(--og-dark); cursor: pointer; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.og-faq-item p { color: var(--og-muted); font-size: 14px; line-height: 1.7; }

.og-contact-hero { padding-top: 84px; padding-bottom: 88px; }
.og-contact-hero .og-detail-lead { color: #d2ddd7; }
.og-contact-grid > .wp-block-column:first-child p { color: var(--og-muted); line-height: 1.7; }
.og-contact-grid > .wp-block-column:first-child strong { color: var(--og-forest); font-size: 20px; }
.og-form-panel {
  padding: 44px 48px !important;
  border-top: 4px solid var(--og-amber);
  background: #fff;
  box-shadow: 0 20px 60px rgba(20,55,42,.08);
}
.og-contact-form { display: grid; gap: 22px; }
.og-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.og-contact-form label { display: grid; gap: 8px; color: var(--og-dark); font-size: 12px; font-weight: 800; }
.og-contact-form input,
.og-contact-form select,
.og-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd5cf;
  border-radius: 0;
  background: #fbfcfa;
  color: var(--og-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.og-contact-form input,
.og-contact-form select { height: 50px; padding: 0 13px; }
.og-contact-form textarea { padding: 13px; resize: vertical; }
.og-contact-form input:focus,
.og-contact-form select:focus,
.og-contact-form textarea:focus { outline: 2px solid rgba(23,63,50,.14); border-color: var(--og-forest); }
.og-contact-form button { width: fit-content; min-height: 54px; padding: 0 24px; border: 0; background: var(--og-amber); color: var(--og-dark); cursor: pointer; font-size: 13px; font-weight: 800; }
.og-contact-form > small { color: #7c8780; font-size: 11px; line-height: 1.6; }
.og-honeypot { position: absolute !important; left: -9999px !important; }
.og-form-message { margin-bottom: 24px; padding: 18px 20px; border-left: 4px solid var(--og-amber); background: #eef3ef; }
.og-form-message.error { border-left-color: #a63d2f; background: #f8eeee; }

@media (max-width: 950px) {
  .og-detail-grid,
  .og-contact-grid,
  .og-faq-grid { flex-wrap: wrap !important; gap: 40px; }
  .og-detail-grid > .wp-block-column,
  .og-contact-grid > .wp-block-column,
  .og-faq-grid > .wp-block-column { flex-basis: 100% !important; }
  .og-option-grid { flex-wrap: wrap !important; }
  .og-option-grid > .wp-block-column { flex-basis: 100% !important; }
  .og-option { min-height: 220px; }
}

@media (max-width: 680px) {
  .og-detail-hero { min-height: 570px !important; }
  .og-detail-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(7,27,21,.98) 0%, rgba(8,31,24,.93) 62%, rgba(8,31,24,.38) 100%) !important; }
  .og-detail-hero-inner { padding-top: 58px; padding-bottom: 54px; }
  .og-detail-hero h1,
  .og-contact-hero h1 { font-size: 46px; }
  .og-detail-lead { font-size: 16px !important; }
  .og-detail-section,
  .og-option-section,
  .og-benefit-section,
  .og-faq-section,
  .og-contact-section { padding-top: 68px; padding-bottom: 68px; }
  .og-spec,
  .og-form-panel { padding: 30px 24px !important; }
  .og-form-grid { grid-template-columns: 1fr; }
  .og-contact-hero { padding-top: 66px; padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
