/*
Theme Name: AURA Dental
Theme URI: https://bogu.design
Author: BOGU Design
Author URI: https://bogu.design
Description: Award-level dental clinic WordPress theme. White/teal, fully responsive mobile-tablet-desktop.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aura-starter
Tags: dental, medical, bilingual, premium
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Jost:wght@300;400;500&family=Space+Mono:wght@400&display=swap');

/* ═══ TOKENS ═══ */
:root {
  --white:     #ffffff;
  --off:       #f6f5f2;
  --line:      #e8e4de;
  --mist:      #d0cbc2;
  --stone:     #9a9490;
  --slate:     #6b6560;
  --body:      #2a2520;

  --teal:      #0c9187;
  --teal-deep: #077870;
  --teal-pale: #e8f5f4;
  --teal-line: rgba(12,145,135,0.2);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;
  --mono:  'Space Mono', monospace;

  --cap:  1320px;
  --pad:  clamp(1.25rem, 5vw, 4rem);
  --nav:  64px;
  --demo-bar: 36px; /* height of demo bar */

  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html  { font-size: 16px; overflow-x: hidden; scroll-behavior: smooth }
body  {
  font-family: var(--sans);
  background: var(--white);
  color: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a      { color: inherit; text-decoration: none }
img    { max-width: 100%; height: auto; display: block }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer }
::selection { background: var(--teal); color: #fff }
.cap   { max-width: var(--cap); margin: 0 auto; padding: 0 var(--pad) }

/* ═══ DEMO BAR ═══ */
.demo-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--demo-bar);
  background: var(--body);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.04em;
  z-index: 10000;
  padding: 0 var(--pad);
}
.demo-bar__link {
  color: var(--teal-400, #2abfb0);
  transition: opacity .2s;
  white-space: nowrap;
}
.demo-bar__link:hover { opacity: 0.7 }
@media (max-width: 600px) {
  .demo-bar { font-size: 0.55rem; gap: 0.75rem }
  .demo-bar span { display: none } /* na malom ekranu samo link */
}

/* ═══ CURTAIN LOADER & PAGE TRANSITION ═══ */
.curtain {
  position: fixed; inset: 0; z-index: 999999;
  display: grid; grid-template-columns: 1fr 1fr;
  pointer-events: none;
}
.curtain__l, .curtain__r {
  background: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
}
.curtain__l { justify-content: flex-end; padding-right: 0.75rem }
.curtain__r { justify-content: flex-start; padding-left: 0.75rem }
.curtain__word {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
}
.curtain.closed .curtain__l,
.curtain.closed .curtain__r { transform: translateX(0) }
.curtain.open .curtain__l { transform: translateX(-100%) }
.curtain.open .curtain__r { transform: translateX(100%) }
.curtain.entering .curtain__l { animation: cEnterL 0.55s var(--ease) forwards }
.curtain.entering .curtain__r { animation: cEnterR 0.55s var(--ease) forwards }
@keyframes cEnterL { from { transform: translateX(-100%) } to { transform: translateX(0) } }
@keyframes cEnterR { from { transform: translateX(100%) } to { transform: translateX(0) } }
.curtain.leaving .curtain__l { animation: cLeaveL 0.7s var(--ease) forwards }
.curtain.leaving .curtain__r { animation: cLeaveR 0.7s var(--ease) forwards }
@keyframes cLeaveL { from { transform: translateX(0) } to { transform: translateX(-100%) } }
@keyframes cLeaveR { from { transform: translateX(0) } to { transform: translateX(100%) } }

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed; top: var(--demo-bar); left: 0; right: 0;
  height: var(--nav); z-index: 999;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--cap); margin: 0 auto; padding: 0 var(--pad);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 400; font-style: italic;
  color: var(--body); letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav__logo-dot { color: var(--teal); font-style: normal; font-weight: 700 }

.nav__links { display: flex; gap: 2rem; align-items: center; flex: 1; justify-content: center }
@media (max-width: 860px) { .nav__links { display: none } }

.nav__link {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.05em;
  color: var(--slate); transition: color .2s; position: relative; white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  height: 1px; width: 0; background: var(--teal);
  transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link.on { color: var(--body) }
.nav__link:hover::after, .nav__link.on::after { width: 100% }

.nav__right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0 }

.nav__phone {
  font-family: var(--mono); font-size: 0.65rem; color: var(--teal);
  letter-spacing: 0.04em; white-space: nowrap;
}
.nav__phone:hover { opacity: 0.7 }
@media (max-width: 640px) { .nav__phone { display: none } }

.lang { display: flex; gap: 1px; align-items: center }
.lang__btn {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em;
  color: var(--stone); padding: 4px 7px; transition: color .2s; cursor: pointer;
}
.lang__btn.on { color: var(--teal) }
.lang__sep { font-size: 0.5rem; color: var(--mist) }

/* CTA pill */
.pill {
  font-size: 0.73rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 9px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .3s var(--ease); white-space: nowrap;
}
.pill--teal { background: var(--teal); color: #fff }
.pill--teal:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(12,145,135,0.2) }
.pill--ghost { border: 1px solid var(--line); color: var(--body) }
.pill--ghost:hover { border-color: var(--teal); color: var(--teal) }
.pill--white { background: #fff; color: var(--teal) }
.pill--white:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.1) }
.pill__arr { display: inline-block; transition: transform .25s var(--ease) }
.pill:hover .pill__arr { transform: translateX(3px) }
@media (max-width: 640px) { .pill--nav { display: none } }

/* Burger */
.burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 22px; height: 14px; cursor: pointer; flex-shrink: 0;
}
@media (max-width: 860px) { .burger { display: flex } }
.burger__line {
  height: 1.5px; background: var(--body);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger__line:last-child { width: 65%; margin-left: auto; transition: transform .3s var(--ease), opacity .2s, width .3s }
.burger.open .burger__line:first-child { transform: translateY(6.25px) rotate(45deg) }
.burger.open .burger__line:nth-child(2) { opacity: 0 }
.burger.open .burger__line:last-child  { transform: translateY(-7.5px) rotate(-45deg); width: 100%; margin-left: 0 }

/* Mobile overlay */
.mob {
  position: fixed; inset: 0; z-index: 990;
  background: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.25rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.mob.open { opacity: 1; pointer-events: all }
.mob__link {
  font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 400; font-style: italic; color: var(--body);
  padding: 0.4rem 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s, transform .4s, color .2s;
}
.mob.open .mob__link { opacity: 1; transform: translateY(0) }
.mob.open .mob__link:nth-child(1) { transition-delay: .05s }
.mob.open .mob__link:nth-child(2) { transition-delay: .10s }
.mob.open .mob__link:nth-child(3) { transition-delay: .15s }
.mob.open .mob__link:nth-child(4) { transition-delay: .20s }
.mob.open .mob__link:nth-child(5) { transition-delay: .25s }
.mob.open .mob__link:nth-child(6) { transition-delay: .30s }
.mob__link:hover { color: var(--teal) }

/* ═══ HERO ═══ */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav) + var(--demo-bar));
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero__left {
  padding: clamp(3rem, 8vh, 6rem) var(--pad) clamp(3rem, 6vh, 5rem);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line);
}
@media (max-width: 860px) {
  .hero__left {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: clamp(2.5rem,6vh,4rem) var(--pad);
  }
}

.hero__tag {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .7s var(--ease) .1s forwards;
}
.hero__tag::before { content: ''; width: 24px; height: 1px; background: var(--teal); flex-shrink: 0 }

.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 400; line-height: 1.1;
  color: var(--body); letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .8s var(--ease) .25s forwards;
}
.hero__h1 i { font-style: italic; color: var(--teal) }

.hero__sub {
  font-size: clamp(0.88rem, 1.5vw, 1rem); font-weight: 300; line-height: 1.85;
  color: var(--slate); max-width: 420px;
  margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s var(--ease) .4s forwards;
}

.hero__actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .7s var(--ease) .55s forwards;
}

.hero__trust {
  margin-top: auto; padding-top: 2.5rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn .8s var(--ease) .8s forwards;
}
@media (max-width: 480px) { .hero__trust { gap: 1.5rem } }
.hero__trust-item { display: flex; flex-direction: column; gap: 2px }
.hero__trust-n {
  font-family: var(--serif); font-size: clamp(1.4rem,3vw,1.8rem);
  font-weight: 400; color: var(--body); line-height: 1;
}
.hero__trust-l {
  font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.1em;
  color: var(--stone); text-transform: uppercase;
}

.hero__right {
  position: relative; overflow: hidden; background: var(--off);
  min-height: 45vw;
}
@media (max-width: 860px) { .hero__right { min-height: 60vw; max-height: 70vw } }
@media (max-width: 480px) { .hero__right { min-height: 260px; max-height: 320px } }

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  clip-path: inset(0 100% 0 0);
  animation: imgReveal 1.2s var(--ease) .3s forwards;
}
@keyframes imgReveal { to { clip-path: inset(0 0% 0 0); transform: scale(1) } }

.hero__badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-left: 3px solid var(--teal);
  opacity: 0;
  animation: fadeIn .6s var(--ease) 1.1s forwards;
}
@media (max-width: 480px) { .hero__badge { display: none } }
.hero__badge-n { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--body) }
.hero__badge-l { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.1em; color: var(--stone); margin-top: 3px }

/* ═══ SECTION UTILITIES ═══ */
.s { padding: clamp(4rem, 8vh, 7rem) 0 }
.s--off { background: var(--off) }

.s__head { margin-bottom: clamp(2.5rem, 5vh, 4rem) }
.s__tag {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.9rem;
}
.s__h {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.12;
  color: var(--body); letter-spacing: -0.01em;
}
.s__h i { font-style: italic; color: var(--teal) }
.s__p {
  font-size: clamp(0.875rem, 1.5vw, 0.97rem); font-weight: 300; line-height: 1.9;
  color: var(--slate); max-width: 500px; margin-top: 0.9rem;
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 1px 6fr;
  align-items: stretch;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr } }

.about-divider { background: var(--line) }
@media (max-width: 860px) { .about-divider { display: none } }

.about-img {
  overflow: hidden; position: relative; min-height: 400px;
}
@media (max-width: 860px) { .about-img { min-height: 280px; max-height: 380px } }
.about-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 6s var(--ease2);
}
.about-wrap:hover .about-img img { transform: scale(1.04) }

.about-body {
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}

.about-stats {
  display: flex; gap: 0; margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 480px) { .about-stats { flex-direction: column; gap: 1.25rem; border-top: none; padding-top: 0 } }

.about-stat { flex: 1; padding-right: 1.5rem; border-right: 1px solid var(--line) }
.about-stat:last-child { border-right: none; padding-right: 0; padding-left: 1.5rem }
.about-stat:first-child { padding-left: 0 }
.about-stat:not(:first-child):not(:last-child) { padding-left: 1.5rem }
@media (max-width: 480px) {
  .about-stat { border-right: none; padding: 0.75rem 0; border-bottom: 1px solid var(--line) }
  .about-stat:last-child { border-bottom: none; padding-left: 0 }
  .about-stat:not(:first-child):not(:last-child) { padding-left: 0 }
}
.about-stat__n { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--teal); line-height: 1 }
.about-stat__l { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.08em; color: var(--stone); text-transform: uppercase; margin-top: 4px }

/* ═══ SERVICES ═══ */
.svc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: 2.5rem;
}
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr } }

.svc-item {
  background: var(--white); padding: clamp(1.5rem,3vw,2.5rem);
  cursor: pointer; transition: background .3s;
  position: relative; overflow: hidden;
}
.svc-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--teal); transition: width .35s var(--ease);
}
.svc-item:hover { background: var(--teal-pale) }
.svc-item:hover::before { width: 3px }

.svc-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem }
.svc-item__title {
  font-family: var(--serif); font-size: clamp(1rem,2vw,1.25rem);
  font-weight: 400; color: var(--body); line-height: 1.25; transition: color .25s;
}
.svc-item:hover .svc-item__title { color: var(--teal-deep) }

.svc-item__plus {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease); position: relative;
}
.svc-item__plus::before, .svc-item__plus::after {
  content: ''; position: absolute;
  background: var(--stone); border-radius: 1px;
  transition: background .3s, transform .3s var(--ease);
}
.svc-item__plus::before { width: 11px; height: 1px }
.svc-item__plus::after  { width: 1px; height: 11px }
.svc-item:hover .svc-item__plus { border-color: var(--teal); background: var(--teal) }
.svc-item:hover .svc-item__plus::before,
.svc-item:hover .svc-item__plus::after { background: #fff }
.svc-item.open .svc-item__plus::after { transform: rotate(90deg); opacity: 0 }

.svc-item__body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), margin .35s }
.svc-item.open .svc-item__body { max-height: 140px; margin-top: 1.25rem }

.svc-item__desc { font-size: 0.86rem; font-weight: 300; line-height: 1.8; color: var(--slate) }
.svc-item__price { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.06em; color: var(--teal); margin-top: 0.6rem; display: block }

/* ═══ TEAM — 3D FLIP GRID ═══ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem } }
@media (max-width: 500px)  { .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem } }
@media (max-width: 380px)  { .team-grid { grid-template-columns: 1fr; gap: 1rem } }

/* Flip container — perspective parent */
.tflip {
  perspective: 1000px;
  height: 420px;
  cursor: pointer;
}
@media (max-width: 1200px) { .tflip { height: 380px } }
@media (max-width: 1024px) { .tflip { height: 360px } }
@media (max-width: 600px)  { .tflip { height: 280px } }
@media (max-width: 380px)  { .tflip { height: 320px } }

/* Inner wrapper that actually rotates */
.tflip__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Flip on hover (desktop) */
.tflip:hover .tflip__inner,
/* Flip on .flipped class (mobile tap) */
.tflip.flipped .tflip__inner {
  transform: rotateY(180deg);
}

/* Front and back share absolute positioning */
.tflip__front,
.tflip__back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
}

/* FRONT — photo */
.tflip__front { background: var(--off) }
.tflip__front img {
  width: 100%; height: 78%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease);
}
.tflip:hover .tflip__front img { transform: scale(1.04) }
.tflip__front-info {
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border-top: 2px solid var(--teal);
  height: 22%;
  display: flex; flex-direction: column; justify-content: center;
}
.tflip__name {
  font-family: var(--serif);
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  font-weight: 400; color: var(--body); line-height: 1.2;
}
.tflip__role {
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.9vw, 0.58rem);
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--teal); margin-top: 3px;
}

/* BACK — teal with bio */
.tflip__back {
  background: var(--teal);
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.tflip__back-tag {
  font-family: var(--mono);
  font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.75rem;
}
.tflip__back-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400; font-style: italic;
  color: #fff; margin-bottom: 0.3rem; line-height: 1.2;
}
.tflip__back-role {
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.9vw, 0.6rem);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 1.25rem;
}
.tflip__back-bio {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.tflip__back-link {
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.tflip__back-link:hover { border-color: #fff }
.tflip__back-link::after { content: '→'; font-size: 0.75rem }

/* Tap hint — only visible on touch devices */
.team-tap-hint {
  display: none;
  text-align: center; margin-top: 1rem;
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em;
  color: var(--stone); text-transform: uppercase;
}
@media (hover: none) { .team-tap-hint { display: block } }

/* ═══ TECHNOLOGY STRIP ═══ */
.tech-strip {
  display: flex; overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tech-strip::-webkit-scrollbar { display: none }
.tech-item {
  flex: 0 0 auto; padding: 1.5rem 2.5rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  white-space: nowrap;
}
@media (max-width: 640px) { .tech-item { padding: 1.25rem 1.75rem } }
.tech-item__label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal) }
.tech-item__name { font-family: var(--serif); font-size: 0.95rem; font-weight: 400; color: var(--body) }

/* ═══ SERVICES HEADER — mobile stacks ═══ */
.svc-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end;
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}
@media (max-width: 640px) { .svc-header { grid-template-columns: 1fr; gap: 1.5rem } }

/* ═══ PROCESS ═══ */
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); margin-top: 2.5rem;
}
@media (max-width: 860px) { .process-row { grid-template-columns: 1fr 1fr } }
@media (max-width: 480px)  { .process-row { grid-template-columns: 1fr } }

.process-step { padding: clamp(1.5rem,3vw,2.5rem) clamp(1.25rem,2.5vw,2rem); border-right: 1px solid var(--line) }
.process-step:last-child { border-right: none }
@media (max-width: 860px) {
  .process-step:nth-child(2n) { border-right: none }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line) }
}
@media (max-width: 480px) {
  .process-step { border-right: none; border-bottom: 1px solid var(--line) }
  .process-step:last-child { border-bottom: none }
}

.process-step__n { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 1rem; display: block }
.process-step__title { font-family: var(--serif); font-size: clamp(0.95rem,1.5vw,1.1rem); font-weight: 400; color: var(--body); margin-bottom: 0.5rem }
.process-step__desc { font-size: 0.83rem; font-weight: 300; line-height: 1.8; color: var(--slate) }

/* ═══ QUOTE ROTATOR ═══ */
.quote-section {
  background: var(--teal-pale);
  border-top: 1px solid var(--teal-line);
  border-bottom: 1px solid var(--teal-line);
  padding: clamp(3.5rem, 8vh, 6rem) 0;
  text-align: center; position: relative; overflow: hidden;
}
.quote-section::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid var(--teal-line); pointer-events: none;
}
.quote-section::after {
  content: ''; position: absolute; left: -60px; bottom: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid var(--teal-line); pointer-events: none;
}
.quote-inner { max-width: 780px; margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1 }
.quote-mark { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--teal); line-height: 0.5; margin-bottom: 1.5rem; display: block; opacity: 0.35 }
.quote-text {
  font-family: var(--serif); font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 400; font-style: italic; line-height: 1.6;
  color: var(--body); min-height: 4em;
  transition: opacity .4s, transform .4s;
}
@media (max-width: 480px) { .quote-text { min-height: 6em } }
.quote-text.fade { opacity: 0; transform: translateY(8px) }
.quote-author { margin-top: 1.5rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); transition: opacity .4s }
.quote-author.fade { opacity: 0 }
.quote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2rem }
.quote-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); cursor: pointer; transition: background .3s, transform .3s; border: none; padding: 0 }
.quote-dot.on { background: var(--teal); transform: scale(1.3) }

/* ═══ APPOINTMENT SECTION ═══ */
.appt { display: grid; grid-template-columns: 1fr 1fr }
@media (max-width: 860px) { .appt { grid-template-columns: 1fr } }

.appt__img {
  position: relative; overflow: hidden; background: var(--teal-pale);
  min-height: 300px;
}
@media (max-width: 860px) { .appt__img { min-height: 240px; max-height: 320px } }
.appt__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s var(--ease2);
}
.appt:hover .appt__img img { transform: scale(1.04) }
.appt__img::after { content: ''; position: absolute; inset: 0; background: rgba(12,145,135,0.08); pointer-events: none }

.appt__body {
  background: var(--teal); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.appt__tag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1rem }
.appt__h { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; line-height: 1.12; color: #fff; margin-bottom: 1rem }
.appt__h i { font-style: italic }
.appt__p { font-size: clamp(0.85rem,1.5vw,0.95rem); font-weight: 300; line-height: 1.85; color: rgba(255,255,255,0.65); max-width: 420px; margin-bottom: 2rem }
.appt__contact { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: 0.5rem }
.appt__contact-item { font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 10px }
.appt__contact-item a { color: rgba(255,255,255,0.85); transition: opacity .2s }
.appt__contact-item a:hover { opacity: 0.7 }
.appt__contact-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); flex-shrink: 0 }

/* ═══ FOOTER ═══ */
.ftr { background: var(--off); border-top: 1px solid var(--line); padding: clamp(3rem, 7vw, 5rem) 0 2rem }
.ftr__grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 2rem } }
@media (max-width: 500px)  { .ftr__grid { grid-template-columns: 1fr; gap: 1.75rem } }

.ftr__logo { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; font-style: italic; margin-bottom: 0.85rem }
.ftr__logo span { color: var(--teal); font-style: normal; font-weight: 700 }
.ftr__desc { font-size: 0.83rem; font-weight: 300; line-height: 1.8; color: var(--stone); max-width: 240px }
.ftr__col-h { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 1rem }
.ftr__link { display: block; font-size: 0.83rem; font-weight: 300; color: var(--slate); padding: 0.2rem 0; transition: color .2s }
.ftr__link:hover { color: var(--teal) }
.ftr__bot {
  padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--stone);
}
@media (max-width: 540px) { .ftr__bot { flex-direction: column; gap: 0.75rem; text-align: center } }
.ftr__bot a { color: var(--teal) }
.ftr__bot a:hover { opacity: 0.7 }

/* ═══ INNER PAGES ═══ */
.pg {
  padding: clamp(6rem, 14vh, 9rem) 0 3rem;
  padding-top: calc(clamp(6rem, 14vh, 9rem) + var(--demo-bar));
  border-bottom: 1px solid var(--line);
}
.pg__crumb { font-family: var(--mono); font-size: 0.6rem; color: var(--stone); margin-bottom: 1rem; letter-spacing: 0.04em }
.pg__crumb a:hover { color: var(--teal) }
.pg__h { font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em }
.pg__h i { font-style: italic; color: var(--teal) }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 2.5rem } }

.contact-info-item { display: flex; align-items: flex-start; gap: 14px; padding: 1.25rem 0; border-bottom: 1px solid var(--line) }
.contact-info-item:first-child { border-top: 1px solid var(--line) }
.contact-info-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-pale); border: 1px solid var(--teal-line); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; margin-top: 2px }
.contact-info-label { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone) }
.contact-info-value { font-size: 0.92rem; font-weight: 400; color: var(--body); margin-top: 3px }
.contact-info-value a:hover { color: var(--teal) }

.form-area { background: var(--off); border: 1px solid var(--line); padding: clamp(1.75rem, 4vw, 3rem) }
.fc-field { margin-bottom: 1.25rem }
.fc-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 0.35rem }
.fc-input, .fc-textarea, .fc-select {
  width: 100%; background: var(--white); border: 1px solid var(--line);
  padding: 11px 14px; font-family: var(--sans); font-size: 0.88rem; color: var(--body);
  outline: none; transition: border-color .25s, box-shadow .25s; border-radius: 0;
}
.fc-input:focus, .fc-textarea:focus, .fc-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,145,135,0.07) }
.fc-textarea { min-height: 100px; resize: vertical }
.fc-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6L0 0h10z' fill='%230c9187'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center }
.fc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
@media (max-width: 480px) { .fc-grid-2 { grid-template-columns: 1fr } }
.map-box { height: 340px; overflow: hidden; border: 1px solid var(--line); margin-top: 2.5rem }
.map-box iframe { width: 100%; height: 100%; border: 0 }

/* Blog */
.post-item { padding: 2rem 0; border-bottom: 1px solid var(--line) }
.post-item__date { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 0.4rem }
.post-item__title { font-family: var(--serif); font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 400; margin-bottom: 0.4rem }
.post-item__title a:hover { color: var(--teal) }
.post-item__excerpt { font-size: 0.88rem; font-weight: 300; color: var(--slate); line-height: 1.8 }

/* ═══ BILINGUAL ═══ */
.t-hr, .t-en { display: block }
[data-lang="hr"] .t-en { display: none }
[data-lang="en"] .t-hr { display: none }
span.t-hr, span.t-en { display: inline }
[data-lang="hr"] span.t-en { display: none }
[data-lang="en"] span.t-hr { display: none }

/* ═══ REVEALS ═══ */
.r { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.r.in { opacity: 1; transform: translateY(0) }
.r1 { transition-delay: .06s }
.r2 { transition-delay: .12s }
.r3 { transition-delay: .18s }
.r4 { transition-delay: .24s }

/* ═══ KEYFRAMES ═══ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0) } }
@keyframes fadeIn { to { opacity: 1 } }

/* ═══ UTILITY ═══ */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px }

/* ═══ TOUCH / MOBILE REFINEMENTS ═══ */
@media (hover: none) {
  .svc-item:hover { background: var(--white) }
  .svc-item:hover::before { width: 0 }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .ftr { padding-bottom: calc(2rem + env(safe-area-inset-bottom)) }
}