/**
 * Dolomits.lv – theme stylesheet.
 *
 * COLOR PALETTE – built around logo teal #4E7B7C with a strong accent:
 *   Primary (logo): #4E7B7C teal – section borders, brand touchpoints.
 *   Accent (new): terracotta/rust – links, buttons, CTAs, hovers (pairs with teal).
 *   Neutrals: warm grays so logo stays visible in header.
 * Layout: CSS Grid only (no legacy row/col).
 */

/* ========== COLOR PALETTE (teal + accent) ========== */
:root {
  /* Logo / brand */
  --logo-teal: #4E7B7C;
  --logo-gray: #6F6E6A;
  --logo-white: #FFFFFF;

  /* Primary = teal (from logo), for section titles, borders, brand */
  --color-primary: var(--logo-teal);
  --color-primary-hover: #3e6263;

  /* Accent = terracotta – works with teal, gives the site a clear accent */
  --color-accent: #C47B5B;
  --color-accent-hover: #A86445;

  /* Text & neutrals */
  --color-text: var(--logo-gray);
  --color-text-strong: #5a5956;
  --color-text-muted: #8a8985;
  --color-white: var(--logo-white);

  /* Backgrounds */
  --color-bg: #f6f5f4;
  --color-bg-alt: #FFFFFF;
  --color-bg-tint: #edebe8;

  /* Header / footer – light warm gray so logo stands out */
  --color-border: #dcdbd9;
  --color-header-bg: #e8e7e5;
  --color-header-text: var(--logo-gray);
  --color-footer-bg: #e2e1df;
  --color-footer-text: var(--logo-gray);

  /* Typography & layout */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-size-base: 1.25rem;
  --font-size-lead: 1.375rem;
  --font-size-title: 2.25rem;
  --font-size-card-title: 1.5rem;
  --line-height: 1.55;
  --width-container: 1200px;
  --space-section: clamp(3rem, 6vw, 4rem);
  --radius: 8px;
  --transition: 0.2s ease;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--color-text-strong);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 0.75em; }

/* ========== LAYOUT ========== */
.site-container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .site-container { padding: 0 2rem; }
}
/* Container used in header and pages */
.container {
  max-width: var(--width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ========== HEADER – light bg so logo stands out ========== */
.header {
  background: var(--color-header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header .container {
  position: relative;
}
.header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav contacts";
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1rem 0;
}
.header .logo { grid-area: logo; }
.header .navbar { grid-area: nav; justify-self: center; }
#header_contacts { grid-area: contacts; justify-self: end; margin: 0; padding: 0; }

.header .logo img {
  height: 80px;
  width: auto;
  min-height: 72px;
}
.header .logo a { display: block; }
.header .logo a:hover { opacity: 0.85; }

.header .navbar { padding: 0; margin: 0; }
.header .navbar-collapse {
  display: none;
}
.header .navbar-collapse.show {
  display: flex !important;
}
@media (min-width: 992px) {
  .header .navbar-collapse { display: flex !important; }
}

.header #menu-header-menu,
.header #menu-header-menu-2,
.header .navbar-collapse ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.header #menu-header-menu a,
.header #menu-header-menu-2 a,
.header .navbar-collapse a {
  color: var(--color-header-text);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  display: block;
  transition: color var(--transition);
}
.header #menu-header-menu a:hover,
.header #menu-header-menu-2 a:hover,
.header .navbar-collapse a:hover {
  color: var(--color-accent);
}

/* Hamburger icon – 3 lines */
.navbar-toggler,
.nav-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.navbar-toggler:hover,
.nav-toggler:hover {
  border-color: var(--color-accent);
  background: rgba(78, 123, 124, 0.06);
}
.nav-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}
.nav-icon-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-header-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.header:has(.nav-collapse.show) .nav-icon-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header:has(.nav-collapse.show) .nav-icon-line:nth-child(2) {
  opacity: 0;
}
.header:has(.nav-collapse.show) .nav-icon-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 992px) {
  .navbar-toggler,
  .nav-toggler { display: none; }
  .nav-mobile-contacts { display: none !important; }
}

#header_contacts {
  font-size: 1rem;
  line-height: 1.4;
  text-align: right;
}
#header_contacts a {
  color: var(--color-header-text);
  display: block;
}
#header_contacts a:hover { color: var(--color-accent); }
#header_contacts .tel { font-weight: 600; }

/* Mobile menu – full-width panel */
@media (max-width: 991px) {
  #header_contacts { display: none; }
  .header .container {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left logo nav";
    grid-template-rows: auto auto;
  }
  .header .logo { grid-column: 2; grid-row: 1; }
  .header .navbar { grid-column: 3; grid-row: 1; justify-self: end; padding-right: 1rem; }
  .header .navbar .navbar-toggler { margin-right: 0.5rem; }
  .header .nav-collapse {
    position: fixed;
    left: 0;
    right: 0;
    top: 5rem;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--color-bg-alt);
    border-top: 2px solid var(--color-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 99;
  }
  .header .nav-collapse.show {
    display: flex !important;
    flex-direction: column;
    padding: 0;
    border-radius: 0;
  }
  .header #menu-header-menu,
  .header #menu-header-menu-2,
  .header .nav-collapse .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.75rem 0;
    gap: 0;
    width: 100%;
  }
  .header .nav-collapse .navbar-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  .header .nav-collapse .navbar-nav li:last-child {
    border-bottom: none;
  }
  .header .nav-collapse .navbar-nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-mobile-contacts {
    margin-top: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-tint);
    border-top: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-mobile-contacts a {
    color: var(--color-header-text);
    font-size: 1rem;
    padding: 0.25rem 0;
  }
  .nav-mobile-contacts a:hover { color: var(--color-accent); }
  .nav-mobile-tel { font-weight: 600; }
}

/* ========== MAIN ========== */
.site-main {
  min-height: 50vh;
  padding-bottom: var(--space-section);
}

/* ========== FOOTER ========== */
.blog-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 3px solid var(--color-primary);
}
.blog-footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  max-width: var(--width-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}
.blog-footer a { color: var(--color-footer-text); }
.blog-footer a:hover { color: var(--color-accent); }
.blog-footer span { color: var(--color-text-muted); }

/* ========== FRONT PAGE (new layout) ========== */
.fp-main {
  --fp-font-heading: 'Outfit', sans-serif;
  --fp-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fp-radius: 20px;
  --fp-radius-sm: 12px;
  --fp-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --fp-shadow-hover: 0 12px 40px rgba(0,0,0,0.1);
}
.fp-main, .fp-main h1, .fp-main h2, .fp-main h3 {
  font-family: var(--fp-font-body);
}
.fp-main .fp-heading {
  font-family: var(--fp-font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid var(--color-accent);
  display: inline-block;
}

/* Hero carousel – full-bleed, no Owl */
.fp-hero {
  position: relative;
  width: 100%;
  height: min(85vh, 560px);
  min-height: 320px;
  overflow: hidden;
  border-bottom: 3px solid var(--color-primary);
}
.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(calc(-100% * var(--hero-index, 0)));
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #c8c8c4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  padding: 0;
}
.hero-dot:hover { background: rgba(255,255,255,0.5); }
.hero-dot[aria-selected="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.15);
}
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.3);
  z-index: 2;
  overflow: hidden;
}
.hero-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-accent);
  transform-origin: left;
  animation: hero-progress 5s linear forwards;
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Sections */
.fp-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--color-bg);
}
.fp-section-alt { background: var(--color-bg-tint); }
.fp-wrap {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Par mums */
.fp-about .fp-about-inner {
  max-width: 42rem;
  margin-top: 0.5rem;
}
.fp-main .fp-lead {
  font-family: var(--fp-font-body);
  font-size: 1.375rem;
  line-height: 1.6;
  color: var(--color-text-strong);
  margin-bottom: 1rem;
}
.fp-main .fp-about-inner p {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

/* Bento grid – Tehnikas noma (1 large + 3 small) */
.fp-bento {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.fp-bento-tehnika {
  grid-template-columns: 1fr;
  grid-template-areas: "large" "a" "b" "c";
}
.fp-bento-tehnika .fp-bento-large { grid-area: large; }
.fp-bento-tehnika .fp-bento-item:nth-child(2) { grid-area: a; }
.fp-bento-tehnika .fp-bento-item:nth-child(3) { grid-area: b; }
.fp-bento-tehnika .fp-bento-item:nth-child(4) { grid-area: c; }
@media (min-width: 640px) {
  .fp-bento-tehnika {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr auto;
    grid-template-areas:
      "large large a"
      "large large b"
      "c c c";
  }
}
@media (min-width: 900px) {
  .fp-bento-tehnika {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "large a b"
      "large c c";
  }
}

/* Bento grid – Produkti (1 large + 2 small) */
.fp-bento-produkti {
  grid-template-columns: 1fr;
  grid-template-areas: "large" "a" "b";
}
.fp-bento-produkti .fp-bento-large { grid-area: large; }
.fp-bento-produkti .fp-bento-item:nth-child(2) { grid-area: a; }
.fp-bento-produkti .fp-bento-item:nth-child(3) { grid-area: b; }
@media (min-width: 640px) {
  .fp-bento-produkti {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "large large"
      "a b";
  }
}

.fp-bento-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--fp-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--fp-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.fp-bento-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--fp-shadow-hover);
  border-color: var(--color-accent);
}
.fp-bento-item:hover .fp-bento-cta { color: var(--color-accent-hover); }
.fp-bento-large {
  min-height: 200px;
  padding: 2.5rem;
}
@media (min-width: 640px) {
  .fp-bento-large { min-height: 240px; }
}
.fp-bento-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-bento-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fp-bento-large .fp-bento-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.25rem;
}
.fp-bento-title {
  font-family: var(--fp-font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text-strong);
  margin: 0 0 0.5rem;
  transition: color 0.2s;
}
.fp-bento-large .fp-bento-title { font-size: 1.5rem; }
.fp-bento-item:hover .fp-bento-title { color: var(--color-accent); }
.fp-bento-cta {
  font-family: var(--fp-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color 0.2s;
}

/* Bento cards (Produkti – with image) */
.fp-bento-card {
  align-items: stretch;
  text-align: left;
  padding: 0;
}
.fp-bento-card .fp-bento-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--fp-radius) var(--fp-radius) 0 0;
  background: #e8e6e0;
}
.fp-bento-card .fp-bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fp-bento-card:hover .fp-bento-media img { transform: scale(1.05); }
.fp-bento-card .fp-bento-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fp-bento-card .fp-bento-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.fp-bento-card .fp-bento-body p {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

/* Contact */
.fp-contact-inner {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .fp-contact-inner {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}
.fp-contact-info {
  font-family: var(--fp-font-body);
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.7;
}
.fp-contact-info p { margin-bottom: 0.5rem; }
.fp-contact-name { margin-bottom: 0.25rem !important; }
.fp-contact-map {
  border-radius: var(--fp-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--fp-shadow);
}
.fp-contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
}
@media (min-width: 768px) {
  .fp-contact-map iframe { height: 400px; }
}

/* ========== KONTAKTI PAGE ========== */
.kontakti-page {
  --kontakti-radius: 16px;
  --kontakti-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.kontakti-hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--color-bg-tint) 0%, var(--color-bg) 100%);
  border-bottom: 4px solid var(--color-primary);
  overflow: hidden;
}
.kontakti-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--width-container);
  margin: 0 auto;
}
.kontakti-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.kontakti-hero-tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 0;
}
.kontakti-hero-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(160deg, rgba(78,123,124,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.kontakti-wrap {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

.kontakti-intro {
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 52rem;
}
.kontakti-intro p { margin-bottom: 0.75rem; }

.kontakti-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .kontakti-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.kontakti-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kontakti-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--kontakti-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--kontakti-shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.kontakti-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.kontakti-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.kontakti-card p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}
.kontakti-card p:last-child { margin-bottom: 0; }
.kontakti-card-name { margin-top: 0.25rem; }
.kontakti-card a {
  color: var(--color-accent);
  text-decoration: none;
}
.kontakti-card a:hover { color: var(--color-accent-hover); text-decoration: underline; }
.kontakti-card-tel { font-weight: 600; }
.kontakti-card-tel a { color: var(--color-text-strong); }
.kontakti-card-tel a:hover { color: var(--color-accent); }

.kontakti-map-wrap {
  position: relative;
}
.kontakti-map-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--kontakti-radius);
  overflow: hidden;
  box-shadow: var(--kontakti-shadow);
}
.kontakti-map-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
  padding: 1.25rem 1.75rem;
  background: var(--color-bg-tint);
  border-bottom: 2px solid var(--color-border);
}
.kontakti-map {
  position: relative;
  aspect-ratio: 16/10;
  min-height: 280px;
  background: var(--color-bg-tint);
}
.kontakti-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (min-width: 768px) {
  .kontakti-map { min-height: 380px; aspect-ratio: 4/3; }
}

/* ========== INNER PAGES (default page, slider) ========== */
.page-content .site-container,
.single .site-container {
  padding-top: var(--space-section);
}
.owl-carousel .item {
  height: 400px;
  background-size: cover !important;
  background-position: center !important;
}
.owl-carousel .owl-stage-outer { border-top: 0; padding-top: 0; }
.owl-carousel .owl-nav button { color: var(--color-accent) !important; }

/* ========== RENT PAGE (Tehnikas noma) – redesigned ========== */
.rent-page {
  --rent-radius: 16px;
  --rent-shadow: 0 4px 24px rgba(0,0,0,0.07);
  --rent-shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}

.rent-hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--color-bg-tint) 0%, var(--color-bg) 100%);
  border-bottom: 4px solid var(--color-primary);
  overflow: hidden;
}
.rent-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--width-container);
  margin: 0 auto;
}
.rent-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.rent-hero-tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 32rem;
}


.rent-wrap {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

.rent-intro {
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 52rem;
}
.rent-intro p { margin-bottom: 0.75rem; }

.rent-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}
.rent-filter-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.rent-filter-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.rent-filter-btn.is-active {
  color: var(--color-white);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.rent-filter-btn.is-active:hover {
  color: var(--color-white);
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.rent-filter-description {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-tint);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
}
.rent-filter-description p:last-child { margin-bottom: 0; }

.rent-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .rent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .rent-card-featured {
    grid-column: 1 / -1;
  }
}
@media (min-width: 900px) {
  .rent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .rent-card-featured {
    grid-column: span 1;
    grid-row: span 2;
  }
}

.rent-card {
  background: var(--color-bg-alt);
  border-radius: var(--rent-radius);
  overflow: hidden;
  box-shadow: var(--rent-shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
}
.rent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rent-shadow-hover);
  border-color: var(--color-accent);
}
.rent-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.rent-card-link:hover { color: inherit; }

.rent-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-tint);
}
.rent-card-featured .rent-card-image {
  aspect-ratio: 16/10;
}
@media (min-width: 900px) {
  .rent-card-featured .rent-card-link {
    flex-direction: row;
    min-height: 280px;
  }
  .rent-card-featured .rent-card-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 100%;
  }
  .rent-card-featured .rent-card-content {
    flex: 0 0 min(320px, 38%);
    justify-content: center;
    padding: 2rem 2.5rem;
  }
}
.rent-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rent-card:hover .rent-card-image img {
  transform: scale(1.06);
}
.rent-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-border) 0%, var(--color-bg-tint) 100%);
}
.rent-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.rent-card:hover .rent-card-overlay {
  opacity: 1;
}
.rent-card-cta {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: center;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rent-card:hover .rent-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.rent-card-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rent-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  color: var(--color-text-strong);
  line-height: 1.25;
  transition: color 0.2s;
}
.rent-card:hover .rent-card-title {
  color: var(--color-accent);
}
.rent-card-featured .rent-card-title {
  font-size: 1.5rem;
}
.rent-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rent-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* Legacy equipment grid (if used elsewhere) */
.equipment-grid,
.tehnikas-noma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2rem;
}
.equipment-card,
.tehnika-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.equipment-card:hover,
.tehnika-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: var(--color-accent);
}
.equipment-card .card-body,
.tehnika-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.equipment-card .card-title,
.tehnika-card .card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-card-title);
  margin: 0 0 0.5rem;
  color: var(--color-text-strong);
}
.equipment-card .card-title a,
.tehnika-card .card-title a { color: inherit; }
.equipment-card .card-title a:hover,
.tehnika-card .card-title a:hover { color: var(--color-accent); }
.equipment-card .card-text,
.equipment-card .tehnika-excerpt,
.tehnika-card .card-text,
.tehnika-card .tehnika-excerpt {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin: 0 0 1rem;
  flex: 1;
}
.equipment-card .card-img-top,
.tehnika-card .card-img-top {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.equipment-card .btn,
.tehnika-card .btn {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.equipment-card .btn:hover,
.tehnika-card .btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ========== SINGLE POST ========== */
.single-tehnika-wrap .page-wrap {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.single-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .single-layout {
    grid-template-columns: 1fr minmax(240px, 280px);
  }
  .single-layout:has(.single-tehnika-aside) {
    grid-template-columns: 1fr minmax(280px, 360px);
  }
}
.single-tehnika .blog-post-title {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: var(--color-text-strong);
}
.single-tehnika-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.single-tehnika-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.single-tehnika .tehnika-content { font-size: var(--font-size-base); }
.single-tehnika .tehnika-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.single-tehnika .tehnika-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-base);
}
.single-tehnika-back { margin: 1.5rem 0 0; }
.single-tehnika .btn,
.single-tehnika-back .btn {
  display: inline-block;
  font-family: var(--font-heading);
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.single-tehnika .btn:hover,
.single-tehnika-back .btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Rent request form (single equipment view, right column) */
.single-tehnika-aside {
  align-self: start;
}
.rent-request-form-wrap {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.rent-request-form-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--color-text-strong);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}
.rent-request-message {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
.rent-request-success {
  background: #e8f5e9;
  color: #2e7d32;
}
.rent-request-error {
  background: #ffebee;
  color: #c62828;
}
.rent-request-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rent-form-field {
  margin: 0;
}
.rent-form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.35rem;
}
.rent-form-field .required {
  color: var(--color-accent);
}
.rent-form-field input,
.rent-form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.rent-form-field input:focus,
.rent-form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.rent-form-field textarea {
  resize: vertical;
  min-height: 80px;
}
.rent-form-submit {
  margin: 0.25rem 0 0;
}
.rent-request-form .btn-submit {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  cursor: pointer;
}
.rent-request-form .btn-submit:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* ========== UTILITY ========== */
.mt-4 { margin-top: 1.5rem; }
.page-wrap { max-width: var(--width-container); margin: 0 auto; padding: clamp(1.5rem, 4vw, 2rem); }
