/*
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: 2.7.1
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: #102536;
  --deep: #0b2438;
  --sea: #0b6f9c;
  --sea-dark: #085879;
  --sea-light: #8fd0ea;
  --mist: #eef4f7;
  --paper: #ffffff;
  --muted: #4d5f6c;
  --line: rgba(16, 37, 54, 0.12);
  --r-img: 10px;
  --r-btn: 6px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --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.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-dark); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; font-stretch: 108%; 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(--deep); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.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 --------------------------------------------------------- */
.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: 50px; padding: 12px 24px; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: var(--r-btn); border: 2px solid var(--sea);
  background: var(--sea); color: #fff; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--deep); border-color: #fff; }
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--deep); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--deep); border-color: #fff; }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .95rem; white-space: nowrap; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }

/* Header ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: #fff; transition: background-color .25s; }
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-overlay.is-scrolled, .nav-open .site-header.is-overlay { background: rgba(11, 36, 56, .96); }
.admin-bar .site-header.is-overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-overlay { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.site-logo, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.site-logo img, .custom-logo { height: 44px; width: auto; }
.site-logo-text { font-weight: 700; font-size: 1.5rem; color: #fff; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  font: inherit; font-weight: 600; font-size: 1rem; color: #fff;
  background: none; border: 1px solid rgba(255,255,255,.6); border-radius: var(--r-btn); cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: 10px 10px; color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--sea-light); }
.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(--deep); border-radius: var(--r-btn); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.lang { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 0 6px; text-transform: uppercase; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.75); text-decoration: none; }
.lang a:hover { color: #fff; }
.lang .current-lang a { color: #fff; box-shadow: inset 0 -2px 0 var(--sea-light); }
.site-header.is-overlay:not(.is-scrolled) { text-shadow: 0 1px 12px rgba(0,0,0,.25); }

@media (max-width: 1279px) {
  .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: 8px var(--gutter) 28px; background: var(--deep); max-height: calc(100vh - 78px); 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 rgba(255,255,255,.1); }
  .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; padding: 0 0 0 16px; }
  .site-nav .btn-small { align-self: flex-start; }
}
@media (max-width: 480px) {
  .nav-toggle span { display: none; }
  .site-logo img, .custom-logo { height: 36px; }
}

/* Hero: full-bleed photo ----------------------------------------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; margin: 0; z-index: -1; background: var(--deep); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,36,56,.55) 0%, rgba(11,36,56,0) 28%, rgba(11,36,56,0) 45%, rgba(11,36,56,.78) 100%); }
.hero-inner { padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero-title { max-width: 16ch; margin: 0; font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 400; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.025em; }
.hero-lead { max-width: 46ch; margin: 22px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.9); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-lead, .hero .actions { animation: rise .8s .12s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Trust row */
.trust { border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; display: grid; gap: 18px 48px; padding-block: 32px 36px; }
.trust-list li { font-size: 1.02rem; line-height: 1.5; color: var(--muted); max-width: 42ch; }
.trust-list strong { display: block; margin-bottom: 4px; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(3, 1fr); padding-block: 40px 44px; } }

/* Sections */
.section { padding-block: var(--section); }
.section-title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; font-stretch: 110%; letter-spacing: -0.02em; margin-bottom: .7em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }

/* Service tiles: three equal tiles */
.tiles { display: grid; gap: 16px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-img); color: #fff; text-decoration: none; background: var(--deep); height: 380px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,36,56,0) 30%, rgba(11,36,56,.88) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 8px; }
.tile-title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 500; font-stretch: 110%; line-height: 1.1; }
.tile-text { font-size: .98rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.tile-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { height: auto; aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }

/* Process */
.process { background: var(--mist); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--sea); }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font-size: 2.4rem; font-weight: 300; font-stretch: 112%; line-height: 1; color: var(--sea); }
.steps h3 { font-size: 1.25rem; font-weight: 600; font-stretch: 100%; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Projects strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 420px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px; scrollbar-width: thin; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
.strip-nav { display: flex; gap: 8px; margin-bottom: 1.4em; }
.strip-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.strip-btn:hover { border-color: var(--ink); }
@media (max-width: 699px) { .strip-nav { display: none; } }

/* Materials */
.materials { border-top: 1px solid var(--line); }
.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: 54px; width: auto; margin-inline: auto; object-fit: contain; filter: grayscale(1); opacity: .7; 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; } }

/* FAQ */
.faq { background: var(--mist); }
.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; font-weight: 600; font-size: 1.15rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.7rem; font-weight: 300; line-height: 1; color: var(--sea); 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 { padding-block: var(--section); }
.contact-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; font-stretch: 110%; letter-spacing: -0.02em; }
.contact-band p { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.contact-grid { display: grid; gap: 40px; align-items: end; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-img); background: var(--mist); }
.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list dt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 500; }
.contact-band .wrap { padding-inline: var(--gutter); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* Inner pages ----------------------------------------------------- */
.page-head { background: var(--mist); padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; font-stretch: 112%; letter-spacing: -0.025em; 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: 620px; object-fit: cover; border-radius: var(--r-img); }
.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, .entry > .nw-form { max-width: none; }
.entry h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 500; font-stretch: 110%; margin-top: 1.6em; }
.entry h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: var(--r-img); }
.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(--sea); font-size: 1.2rem; }
.entry .wp-block-gallery { gap: 12px; }
.entry input, .entry textarea, .entry select { font: inherit; }
.entry figure.wp-block-image img[class*="wp-image"] { max-width: 760px; }

.service-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.quote-box { background: var(--mist); padding: 32px; border-radius: var(--r-img); display: grid; gap: 12px; }
.quote-box h2 { font-size: 1.7rem; font-weight: 500; font-stretch: 110%; margin: 0; }
.quote-box p { color: var(--muted); margin: 0 0 8px; }
.quote-box h3 { font-size: 1.05rem; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.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 */
.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(--r-img); margin-bottom: 16px; }
.post-card h2 { font-size: 1.4rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--sea); }
.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(--r-btn); text-decoration: none; color: var(--ink); }
.pager .page-numbers.current { background: var(--deep); color: #fff; border-color: var(--deep); }

/* Company details table */
.entry .company-data { max-width: 760px; border-top: 2px solid var(--sea); }
.entry .company-data th { width: 38%; font-weight: 600; color: var(--muted); padding: 14px 16px 14px 0; vertical-align: top; }
.entry .company-data td { padding: 14px 0; font-weight: 500; }
@media (max-width: 600px) {
  .entry .company-data th, .entry .company-data td { display: block; width: auto; padding: 0; }
  .entry .company-data th { padding-top: 14px; font-size: .9rem; border-bottom: 0; }
  .entry .company-data td { padding-bottom: 14px; }
}

/* Footer ---------------------------------------------------------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.8); font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sea-light); }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 40px; }
.footer-name { font-size: 1.6rem; font-weight: 600; font-stretch: 110%; 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(--sea-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: 1px solid rgba(255,255,255,.12); 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; } }
