/*
Theme Name: Imbir Media
Theme URI: https://imbir.media/
Author: IMBIR MEDIA
Description: Lekka, mobilna strona portfolio IMBIR MEDIA.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: imbir-media
*/

:root {
  --lavender: #B49FCC;
  --green: #374830;
  --white: #FFFFFF;
  --black: #0D0D0D;
  --line: rgba(55, 72, 48, .22);
  --soft-line: rgba(13, 13, 13, .14);
  --muted: rgba(13, 13, 13, .68);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  padding: .85rem 1rem;
  background: var(--green);
  color: var(--white);
}
.skip-link:focus { left: 1rem; }

.topline {
  padding: .48rem 20px;
  background: var(--green);
  color: var(--white);
  text-align: center;
  font-size: .8rem;
  letter-spacing: .04em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
}
.brand-name { font: 700 1.55rem/1 var(--serif); letter-spacing: -.04em; }
.brand-sub { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.nav-links { display: flex; align-items: center; gap: 1.45rem; }
.nav-links a { color: var(--black); text-decoration: none; font-size: .92rem; }
.nav-links a:not(.button):hover { color: var(--green); }
.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.25rem;
  border: 1px solid var(--lavender);
  border-radius: 999px;
  background: var(--lavender);
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--green); border-color: var(--green); color: var(--white); }
.button-small { min-height: 40px; padding: .58rem 1rem; font-size: .87rem; }
.button-outline { background: transparent; color: var(--green); border-color: var(--green); }
.button-outline:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.button-light { background: var(--lavender); border-color: var(--lavender); color: var(--green); }
.button-light:hover { background: var(--white); border-color: var(--white); color: var(--green); }
.button-ghost { background: var(--lavender); border-color: var(--lavender); color: var(--green); }
.button-ghost:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.nav-links a.button { color: var(--green); }
.nav-links a.button:hover { color: var(--white); }

.section { padding: clamp(70px, 9vw, 116px) 0; }
.section-label {
  display: inline-block;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-label-light { color: var(--lavender); }
.section h1,
.section h2 { margin: .55rem 0 1rem; font: 400 clamp(2.5rem, 5.2vw, 5rem)/1.02 var(--serif); letter-spacing: -.055em; }
.section h3 { font-family: var(--serif); font-weight: 400; }
.section p { margin-top: 0; }
.text-link,
.card-link { color: var(--green); font-weight: 750; text-underline-offset: 4px; }
.card-link { display: inline-block; margin-top: 1rem; text-decoration: none; }
.card-link:hover, .text-link:hover { color: var(--black); }

/* Home */
.home-hero { padding: clamp(60px, 8vw, 108px) 0 88px; overflow: hidden; }
.home-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(34px, 7vw, 100px); }
.home-hero-copy h1 { max-width: 760px; margin: 1rem 0 1.35rem; font: 400 clamp(3.2rem, 7vw, 6.7rem)/.96 var(--serif); letter-spacing: -.065em; }
.home-hero-copy h1 em { color: var(--green); font-style: italic; }
.eyebrow-pill { display: inline-block; padding: .38rem .7rem; border: 1px solid var(--lavender); border-radius: 999px; color: var(--green); font-size: .78rem; font-weight: 750; letter-spacing: .04em; }
.hero-lead { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-meta { max-width: 600px; margin-top: 1.25rem; color: var(--green); font-size: .86rem; }
.home-hero-visual { position: relative; min-height: 540px; display: grid; place-items: center; }
.hero-image-frame { position: relative; z-index: 1; width: min(73%, 390px); }
.hero-image-frame::before { content: ''; position: absolute; z-index: -1; inset: 12% -16% -9%; border-radius: 45% 55% 35% 65% / 42% 38% 62% 58%; background: var(--lavender); transform: rotate(-8deg); }
.hero-image-frame img { width: 100%; height: 530px; object-fit: cover; object-position: center 18%; border: 3px solid var(--white); border-radius: 48% 48% 24px 24px; box-shadow: 0 24px 55px rgba(13, 13, 13, .17); }
.hero-note-card { position: absolute; right: 0; bottom: 8%; z-index: 2; width: min(230px, 48%); padding: 1rem 1.05rem; border: 2px solid var(--green); border-radius: 15px; background: var(--white); box-shadow: 0 12px 30px rgba(13, 13, 13, .12); transform: rotate(3deg); }
.hero-note-card strong { display: block; color: var(--green); font: 400 1.15rem/1.2 var(--serif); }
.hero-note-card span { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }

.about-section-intro { border-top: 1px solid var(--soft-line); }
.about-home-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: clamp(34px, 8vw, 120px); }
.about-home-photo { max-width: 330px; }
.about-home-photo img { width: 100%; height: 480px; object-fit: cover; object-position: center 18%; border-radius: 45% 45% 20px 20px; border: 3px solid var(--lavender); }
.about-home-copy { max-width: 690px; }
.about-home-copy h2 { margin-bottom: 1.25rem; }
.about-home-copy p { color: var(--muted); }

.services-section { background: var(--white); }
.section-intro-row { display: grid; grid-template-columns: 1fr .82fr; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-intro-row > p { max-width: 470px; margin: 0 0 .45rem; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-card, .industry-card, .contact-card { border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.service-card { min-height: 275px; padding: 1.35rem; }
.service-number, .process-step > span { color: var(--green); font: 400 1rem var(--serif); }
.service-card h3 { margin: .85rem 0 .75rem; font-size: 1.45rem; line-height: 1.08; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-cta-card { grid-column: span 4; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2px; padding: 1.25rem 1.4rem; border-radius: 18px; background: var(--green); color: var(--white); }
.service-cta-card .service-number { color: var(--lavender); }
.service-cta-card h3 { max-width: 520px; margin: .4rem auto .4rem 0; font-size: 1.35rem; }

.industries-section { background: var(--green); color: var(--white); }
.industries-section h2 { max-width: 700px; }
.industries-section h2 em { color: var(--lavender); font-style: italic; }
.industries-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 2rem; }
.industry-card { min-height: 185px; padding: 1.15rem; border-color: rgba(255, 255, 255, .38); background: transparent; }
.industry-card h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.industry-card p { min-height: 3.2em; color: rgba(255, 255, 255, .78); font-size: .88rem; }
.industry-card a { color: var(--lavender); font-weight: 750; text-decoration: none; }
.industry-card a:hover { color: var(--white); }

.portfolio-section { background: var(--lavender); }
.section-heading-line { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading-line h2 { margin-bottom: 0; }
.section-heading-line .text-link { color: var(--green); }
.home-portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portfolio-card { min-width: 0; }
.portfolio-image { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 2px solid var(--green); border-radius: 18px; background: var(--white); }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-image:hover img { transform: scale(1.04); }
.portfolio-kicker { display: block; margin: .8rem .1rem .25rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.portfolio-card h3 { margin: 0; font-size: 1.45rem; line-height: 1.1; }
.portfolio-note { margin: 2rem 0 0; color: var(--green); }

.process-section { border-top: 1px solid var(--soft-line); }
.process-section > .wrap > h2 { max-width: 600px; }
.process-intro { max-width: 690px; color: var(--muted); }
.process-grid { display: grid; gap: 12px; margin-top: 2.25rem; }
.process-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-step { min-height: 185px; padding: 1.1rem; border-top: 2px solid var(--green); }
.process-step h3 { margin: .7rem 0 .45rem; font-size: 1.25rem; line-height: 1.1; }
.process-step p { color: var(--muted); font-size: .9rem; }

.faq-section { background: var(--white); border-top: 1px solid var(--soft-line); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(35px, 8vw, 120px); }
.faq-list details { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--green); font: 400 1.2rem/1.25 var(--serif); }
.faq-list p { margin: .65rem 0 0; color: var(--muted); font-size: .94rem; }

.contact-section { padding-top: 30px; }
.contact-home-card { display: grid; grid-template-columns: 1fr .42fr; align-items: center; gap: 3rem; padding: clamp(28px, 6vw, 70px); border-radius: 25px; background: var(--green); color: var(--white); }
.contact-home-card h2 { margin-top: 0; }
.contact-home-card h2 em { color: var(--lavender); font-style: italic; }
.contact-home-card p { max-width: 620px; color: rgba(255, 255, 255, .82); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.contact-actions .button-outline { color: var(--white); border-color: var(--white); }
.contact-actions .button-outline:hover { background: var(--white); color: var(--green); }
.contact-card { display: grid; gap: .3rem; padding: 1.35rem; border-color: rgba(255, 255, 255, .42); background: transparent; color: var(--white); font-style: normal; }
.contact-card strong { color: var(--lavender); font: 400 1.4rem var(--serif); }
.contact-card a { color: var(--white); text-underline-offset: 4px; }
.contact-card span { color: rgba(255, 255, 255, .78); font-size: .9rem; }

.site-footer { padding: 65px 0 28px; border-top: 1px solid var(--soft-line); color: var(--green); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 2rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .42rem; }
.footer-grid p { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-grid strong { margin-bottom: .25rem; color: var(--black); font-size: .88rem; }
.footer-grid a { text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { color: var(--black); font: 700 1.55rem/1 var(--serif); letter-spacing: -.04em; }
.footer-brand small { display: inline-block; margin-left: .35rem; color: var(--green); font: 800 .62rem var(--sans); letter-spacing: .16em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: .8rem; }
.footer-bottom a { color: var(--green); text-decoration: none; }

/* Internal pages use the same visual language as the homepage. */
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head h1 { margin-top: .7rem; }
.section-intro { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: clamp(35px, 8vw, 120px); }
.about-grid > div:first-child img { max-width: 330px; width: 100%; height: 480px; object-fit: cover; object-position: center 18%; border: 3px solid var(--lavender); border-radius: 45% 45% 20px 20px; }
.about-copy { max-width: 720px; }
.about-copy p:first-child { margin-top: 0; }
.about-copy p { color: var(--muted); }
.about-copy .button { margin-top: .75rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-grid .service-card { min-height: 220px; }
.service-grid .service-card h2 { margin: .75rem 0; font-size: 1.75rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.8rem 0 2rem; }
.filter-button { padding: .62rem .95rem; border: 1px solid var(--green); border-radius: 999px; background: transparent; color: var(--green); cursor: pointer; font-size: .88rem; }
.filter-button:hover, .filter-button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.work-card { min-width: 0; }
.work-link { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 2px solid var(--green); border-radius: 18px; background: var(--white); text-decoration: none; }
.work-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-link:hover img { transform: scale(1.04); }
.work-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem; background: linear-gradient(transparent 50%, rgba(13, 13, 13, .6)); color: var(--white); }
.work-overlay span { display: none; }
.work-caption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .7rem .1rem 0; }
.work-caption strong { color: var(--green); font-size: .92rem; }
.work-caption span { color: var(--muted); font-size: .77rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.footer-socials a { text-decoration: underline; text-underline-offset: 4px; }

/* The older 2025 tile is intentionally omitted from the new homepage and hidden on archive pages. */
.portfolio-grid .work-card:nth-child(2) { display: none; }

@media (max-width: 1000px) {
  .nav-links { gap: .85rem; }
  .nav-links a { font-size: .86rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cta-card { grid-column: span 2; }
  .industries-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 30px), var(--wrap)); }
  .site-header { z-index: 50; }
  .nav { min-height: 68px; }
  .mobile-menu { display: grid; }
  .nav-links { display: none; }
  .nav-links.is-open { position: absolute; top: 68px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 15px 1rem; background: var(--white); border-bottom: 1px solid var(--soft-line); box-shadow: 0 15px 28px rgba(13, 13, 13, .1); }
  .nav-links.is-open a { padding: .72rem 0; border-bottom: 1px solid var(--soft-line); font-size: 1rem; }
  .nav-links.is-open a:last-child { margin-top: .75rem; border-bottom: 0; }
  .nav-links.is-open .button { width: 100%; }
  .home-hero { padding: 50px 0 66px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .home-hero-copy h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .home-hero-visual { min-height: 425px; }
  .hero-image-frame { width: min(72%, 330px); }
  .hero-image-frame img { height: 410px; }
  .hero-note-card { right: 1%; bottom: 3%; width: 200px; }
  .about-home-grid, .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-home-photo { max-width: 270px; }
  .about-home-photo img, .about-grid > div:first-child img { height: 390px; }
  .section-intro-row, .section-heading-line { display: block; }
  .section-intro-row > p { margin-top: 1rem; }
  .section-heading-line .text-link { display: inline-block; margin-top: 1rem; }
  .services-grid, .industries-grid, .process-grid-five, .portfolio-grid, .service-grid { grid-template-columns: 1fr; }
  .service-cta-card { grid-column: auto; display: block; }
  .service-cta-card h3 { margin: .45rem 0 1rem; }
  .service-cta-card .button { width: 100%; }
  .industry-card { min-height: 150px; }
  .process-step { min-height: 0; }
  .home-portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-image { aspect-ratio: 4 / 5; }
  .contact-home-card { grid-template-columns: 1fr; gap: 2rem; padding: 27px 22px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .footer-bottom { display: block; }
  .footer-bottom a { display: inline-block; margin-top: .6rem; }
  .section { padding: 66px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
