/*
Theme Name: Northwind
Theme URI: https://northwind.hr/
Author: 404 d.o.o.
Description: Tema za Northwind: jedra, tende i presvlake po mjeri. Višejezična (Polylang), SEO optimizirana, bez page buildera.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: northwind
*/

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #14222b;
  --ink-2: #22394a;
  --ground: #eef1ef;
  --paper: #ffffff;
  --ochre: #a4472a;
  --ochre-dark: #86391f;
  --ochre-light: #e39a73;
  --muted: #4a5a63;
  --line: rgba(20, 34, 43, 0.16);
  --seam: 2px dashed rgba(20, 34, 43, 0.22);
  --radius: 3px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ochre); text-underline-offset: 3px; }
a:hover { color: var(--ochre-dark); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 750; font-stretch: 82%; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.sr, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex-shrink: 0; }

/* Buttons and links ------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font: inherit; font-weight: 650; font-size: 1rem; font-stretch: 92%;
  text-decoration: none; border-radius: var(--radius);
  background: var(--ochre); color: #fff; border: 2px solid var(--ochre);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ochre-dark); border-color: var(--ochre-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ochre-dark); border-color: #fff; }
.btn-light:hover { background: var(--ground); border-color: var(--ground); color: var(--ochre-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--ochre-dark); border-color: #fff; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.link { font-weight: 650; font-stretch: 92%; text-decoration: underline; text-decoration-thickness: 2px; }

/* Header ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-logo, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo img, .custom-logo { height: 44px; width: auto; }
.site-logo-text { font-weight: 800; font-stretch: 75%; font-size: 1.6rem; color: var(--ink); text-transform: uppercase; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  font: inherit; font-weight: 650; font-size: 1rem; color: var(--ink);
  background: none; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1rem; font-stretch: 90%;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ochre); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu {
  list-style: none; margin: 0; padding: 8px 0; min-width: 220px;
  position: absolute; left: 0; top: 100%; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-extra { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang a { display: block; padding: 10px 8px; min-width: 36px; text-align: center; text-transform: uppercase; font-size: .9rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.lang .current-lang a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav .menu { flex-direction: column; align-items: stretch; }
  .site-nav .menu a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 16px; }
  .nav-extra { justify-content: space-between; }
}

/* Hero ------------------------------------------------------------- */
.hero { background: var(--ground); border-bottom: var(--seam); }
.hero-grid { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px); align-items: center; }
.hero-title { margin: 0; font-stretch: 62%; font-weight: 820; text-transform: uppercase; letter-spacing: -0.015em; line-height: .86; }
.hero-title span { display: block; font-size: clamp(2.8rem, 10.5vw, 6.5rem); overflow-wrap: anywhere; }
.hero-title .hero-sub {
  font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: none; font-stretch: 100%;
  font-weight: 500; letter-spacing: 0; line-height: 1.2; margin-top: 18px; color: var(--ochre-dark);
}
.hero-lead { max-width: 44ch; margin: 24px 0 0; font-size: 1.2rem; color: var(--muted); }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: clamp(320px, 62vh, 720px); object-fit: cover; border-radius: var(--radius); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-title span { font-size: clamp(3.5rem, 6.8vw, 6.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title span:nth-child(2) { animation-delay: .08s; }
  .hero-title span:nth-child(3) { animation-delay: .16s; }
  .hero-title span:nth-child(4) { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Sections --------------------------------------------------------- */
.section { padding-block: var(--section); }
.section-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-stretch: 72%; font-weight: 800; margin-bottom: 0.6em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.section-head .section-title { margin: 0; }

/* Services */
.service { display: grid; gap: 28px; align-items: center; padding-block: 40px; }
.service + .service { border-top: var(--seam); }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-stretch: 75%; font-weight: 800; }
.service-body p { color: var(--muted); max-width: 52ch; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; border-top: 2px dashed var(--ochre); }
@media (min-width: 960px) {
  .service { grid-template-columns: 7fr 5fr; gap: 64px; padding-block: 56px; }
  .service.is-flipped .service-media { order: 2; }
}

/* Process */
.process { background: var(--ink); color: #fff; }
.process .section-title { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px dashed rgba(255,255,255,.3); padding-top: 24px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-size: 3.4rem; font-weight: 800; font-stretch: 62%; line-height: 1; color: var(--ochre-light);
}
.steps h3 { font-size: 1.35rem; font-stretch: 88%; }
.steps p { color: rgba(255,255,255,.8); margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* Materials */
.materials-grid { display: grid; gap: 40px; align-items: center; }
.materials-grid p { color: var(--muted); max-width: 40ch; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px 40px; align-items: center; }
.logos img { max-height: 56px; width: auto; margin-inline: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (min-width: 960px) { .materials-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* Gallery mosaic */
.gallery { background: var(--ground); }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mosaic figure { margin: 0; }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 960px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mosaic figure:first-child { grid-row: span 2; }
  .mosaic figure:first-child img { aspect-ratio: auto; }
}

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; min-height: 44px; font-weight: 650; font-size: 1.2rem; font-stretch: 90%;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.8rem; font-weight: 400; line-height: 1; color: var(--ochre); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); max-width: 64ch; padding-bottom: 12px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* Contact band */
.contact-band { background: var(--ochre); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.contact-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-stretch: 72%; font-weight: 800; color: #fff; }
.contact-band p { font-size: 1.2rem; max-width: 44ch; }
.contact-band a:not(.btn) { color: #fff; }
.contact-grid { display: grid; gap: 40px; align-items: end; }
.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list dt { font-size: .9rem; font-weight: 650; opacity: .85; }
.contact-list dd { margin: 0; font-size: 1.2rem; font-weight: 550; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* Inner pages ------------------------------------------------------ */
.page-head { background: var(--ground); border-bottom: var(--seam); padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-stretch: 66%; font-weight: 820; margin: 0; max-width: 20ch; }
.page-lead { margin: 18px 0 0; font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.meta { font-size: .95rem; color: var(--muted); margin: 0 0 10px; }
.page-media { margin-top: clamp(28px, 4vw, 48px); margin-bottom: 0; }
.page-media img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.content { padding-block: clamp(40px, 6vw, 80px); }
.entry > * { max-width: 72ch; }
.entry > .alignwide, .entry > .wp-block-gallery, .entry > .alignfull, .entry > .wp-block-table, .entry > .nwc, .entry > figure.wp-block-image, .entry > .wp-block-columns { max-width: none; }
.entry h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-stretch: 78%; margin-top: 1.6em; }
.entry h3 { font-size: 1.4rem; font-stretch: 86%; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: var(--radius); }
.entry table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry th, .entry td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.entry blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--ochre); font-size: 1.2rem; }
.entry .wp-block-gallery { gap: 12px; }
.entry input, .entry textarea, .entry select { font: inherit; }

.service-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.quote-box { background: var(--ground); padding: 32px; border-radius: var(--radius); border-top: 4px solid var(--ochre); display: grid; gap: 12px; }
.quote-box h2 { font-size: 1.8rem; font-stretch: 78%; margin: 0; }
.quote-box p { color: var(--muted); margin: 0 0 8px; }
.quote-box h3 { font-size: 1.1rem; margin: 20px 0 0; padding-top: 20px; border-top: var(--seam); }
.quote-box ul { list-style: none; margin: 0; padding: 0; }
.quote-box li a { display: block; padding: 8px 0; font-weight: 600; }
@media (min-width: 960px) {
  .service-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
  .quote-box { position: sticky; top: 100px; }
}

/* Blog list */
.posts { display: grid; gap: 48px 32px; padding-block: clamp(40px, 6vw, 80px); }
.post-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.post-card h2 { font-size: 1.5rem; font-stretch: 82%; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--ochre); }
.post-card p { color: var(--muted); }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.pager { padding-bottom: 64px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--ochre-light); }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 40px; }
.footer-name { font-size: 2rem; font-weight: 820; font-stretch: 66%; text-transform: uppercase; color: #fff; margin: 0 0 8px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact > * { display: inline-flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { margin-top: 3px; color: var(--ochre-light); }
.footer-nav .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav .menu a { display: inline-block; padding: 6px 0; }
.footer-bottom { border-top: 2px dashed rgba(255,255,255,.2); padding-block: 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 4fr 3fr; gap: 64px; } }

@media print {
  .site-header, .site-footer, .contact-band, .nav-toggle { display: none; }
}
