/* =========================================================
   TINK HOME — FAVORITES
   Shared navigation, image controls and the saved-photo page.
   ========================================================= */

:root {
  --favorite-navy: #102d3d;
  --favorite-sky: #9ed9f4;
  --favorite-ink: #173445;
  --favorite-line: rgba(152, 186, 203, .3);
}

/* ---------------------------------------------------------
   01. NAVIGATION — icon on mobile, labeled entry on desktop
   --------------------------------------------------------- */
.header #desktopLinks .favorites-desktop-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 7px;
  white-space: nowrap;
}

.favorites-desktop-link svg,
.favorites-mobile-link svg,
.favorites-drawer-link svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header #desktopLinks .favorites-desktop-link svg {
  width: 17px;
  height: 17px;
  color: #376a83;
}

.header .favorites-mobile-link {
  display: none;
}

.favorites-count {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 50px;
  font: 700 10px / 1 'DM Sans', sans-serif;
  background: #245f7b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .75);
  letter-spacing: 0;
}

.favorites-count[hidden] {
  display: none !important;
}

.glass-menu-links .favorites-drawer-link {
  justify-content: flex-start;
  gap: 11px;
}

.glass-menu-links .favorites-drawer-link .favorites-count {
  margin-left: auto;
}

.glass-menu-links .favorites-drawer-link::after {
  margin-left: 0;
}

@media (max-width: 1120px) and (min-width: 951px) {
  .header #desktopLinks {
    gap: 13px;
  }
}

@media (max-width: 950px) {
  .header .favorites-mobile-link {
    width: 44px;
    height: 44px;
    display: grid;
    position: relative;
    place-items: center;
    flex: 0 0 44px;
    margin-left: auto;
    margin-right: 7px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(203, 224, 237, .28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 5px 16px rgba(9, 41, 60, .09);
    color: #1b485e;
    text-decoration: none;
  }

  .header .favorites-mobile-link .favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
  }

  .header #glassMenuToggle {
    margin-left: 0 !important;
  }
}

/* ---------------------------------------------------------
   02. FAVORITE STAR — only on photos in service galleries
   --------------------------------------------------------- */
.favorite-image-host {
  position: relative;
}

.favorite-toggle {
  appearance: none;
  position: absolute;
  z-index: 18;
  top: 17px;
  right: 17px;
  width: 43px;
  height: 43px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .63);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, rgba(19, 42, 55, .5), rgba(11, 25, 36, .65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 7px 23px rgba(0, 0, 0, .19);
  backdrop-filter: blur(11px) saturate(135%);
  -webkit-backdrop-filter: blur(11px) saturate(135%);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
  touch-action: manipulation;
}

.favorite-toggle svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: transparent;
  transition: fill .22s ease, transform .22s ease;
}

.favorite-toggle[aria-pressed="true"] {
  color: #ffdfa2;
  border-color: rgba(255, 235, 185, .95);
  background: linear-gradient(135deg, rgba(65, 61, 43, .83), rgba(27, 42, 44, .87));
}

.favorite-toggle[aria-pressed="true"] svg {
  fill: #ffdfa2;
}

@media (hover: hover) {
  .favorite-toggle:hover {
    transform: translateY(-2px) scale(1.055);
    border-color: rgba(255, 255, 255, .93);
  }
}

.favorite-toggle:active {
  transform: scale(.95);
}

.gallery-item .favorite-toggle {
  z-index: 20;
}

.favorite-shared-target {
  outline: 3px solid rgba(106, 201, 239, .95);
  outline-offset: -5px;
  scroll-margin-top: 125px;
}

@media (max-width: 600px) {
  .favorite-toggle {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }

  .favorite-toggle svg {
    width: 21px;
    height: 21px;
  }



}

/* ---------------------------------------------------------
   03. FINE GLASS REFINEMENTS — restrained, soft highlights
   --------------------------------------------------------- */
.header .nav,
.header.scrolled .nav {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .91), rgba(237, 247, 250, .8) 42%, rgba(210, 228, 239, .78)) !important;
  border-color: rgba(255, 255, 255, .83) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(126, 175, 196, .22),
    0 12px 34px rgba(12, 41, 56, .14) !important;
}

.header #desktopLinks .nav-cta,
.header.scrolled #desktopLinks .nav-cta,
.btn-primary {
  background: linear-gradient(138deg, #347a9c 0%, #20516a 44%, #102f44 100%) !important;
  border-color: rgba(197, 231, 248, .63) !important;
  box-shadow:
    inset 0 1px 1px rgba(224, 246, 255, .55),
    inset 0 -2px 3px rgba(7, 30, 46, .24),
    0 9px 24px rgba(18, 64, 87, .2) !important;
}

.btn-ghost {
  background: linear-gradient(130deg, rgba(255, 255, 255, .24), rgba(198, 227, 242, .09)) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), 0 9px 25px rgba(0, 0, 0, .11) !important;
}

/* Floating WhatsApp is visually consistent with the glass buttons, but stays green. */
.whatsapp {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #46d58a 0%, #21b76a 48%, #10814f 100%) !important;
  border: 1px solid rgba(232, 255, 241, .81) !important;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .45),
    inset 0 -2px 4px rgba(1, 78, 42, .24),
    0 13px 30px rgba(11, 123, 68, .25),
    0 0 0 4px rgba(64, 201, 126, .07) !important;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.whatsapp::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: -10%;
  top: -48%;
  width: 120%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
}

.whatsapp:hover {
  background: linear-gradient(145deg, #52df94, #1db065 53%, #0a7546) !important;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .48),
    0 16px 35px rgba(10, 119, 67, .31),
    0 0 0 5px rgba(64, 201, 126, .1) !important;
}

/* ---------------------------------------------------------
   04. FAVORITES PAGE — hero, gallery and actions
   --------------------------------------------------------- */
.favorites-page {
  background: #f4f6f7;
}

.favorites-hero {
  min-height: max(560px, 78svh);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: end;
  background:
    radial-gradient(ellipse at 78% 34%, rgba(78, 150, 181, .3), transparent 48%),
    radial-gradient(ellipse at 22% 97%, rgba(29, 94, 127, .29), transparent 55%),
    linear-gradient(128deg, #081b27, #183c50 56%, #102633);
  color: #fff;
}

/* Real project photograph, with a fixed overlay for readable text. */
.favorites-hero-media,
.favorites-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.favorites-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 51%;
}

.favorites-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 13, 20, .92) 0%, rgba(7, 21, 28, .83) 40%, rgba(7, 21, 28, .46) 75%, rgba(7, 21, 28, .34)),
    linear-gradient(0deg, rgba(4, 14, 19, .7), transparent 58%);
}


.favorites-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 76px;
}

.favorites-hero h1 {
  margin: 25px 0 20px;
  max-width: 870px;
  font: 700 clamp(46px, 7vw, 91px) / 1.03 'Manrope', sans-serif;
  letter-spacing: -.065em;
}

.favorites-hero h1 em,
.favorites-section h2 em,
.favorites-dialog h2 em {
  color: var(--favorite-sky);
  font-style: italic;
  font-weight: 500;
}

.favorites-hero-inner > p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(225, 238, 246, .78);
  font-size: 15px;
  line-height: 1.9;
}

.favorites-hero-meta {
  margin-top: 33px;
  padding-top: 15px;
  border-top: 1px solid rgba(196, 228, 245, .2);
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  color: rgba(223, 239, 246, .67);
  font-size: 11px;
}

.favorites-hero-meta span:first-child {
  color: #fff;
}

.favorites-section {
  min-height: 400px;
  padding: clamp(60px, 8vw, 110px) 0 125px;
}

.favorites-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 38px;
}

.favorites-section h2 {
  margin: 15px 0 0;
  font: 700 clamp(37px, 5vw, 60px) / 1.05 'Manrope', sans-serif;
  letter-spacing: -.065em;
  color: var(--favorite-ink);
}

.favorites-section h2 em {
  color: #3e7895;
}

.favorites-explore {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  color: #1d556f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.favorites-explore:hover {
  color: #107da6;
}

.favorites-empty[hidden] {
  display: none !important;
}

.favorites-empty {
  border-radius: 28px;
  text-align: center;
  padding: clamp(50px, 8vw, 95px) 22px;
  border: 1px solid rgba(255, 255, 255, .93);
  background: linear-gradient(145deg, #ffffff, #eaf2f6);
  box-shadow: inset 0 1px 1px #fff, 0 24px 60px rgba(19, 58, 80, .07);
}

.favorites-empty-mark {
  font-size: 64px;
  line-height: 1;
  color: #3c7a9b;
}

.favorites-empty h3 {
  margin: 14px 0;
  font: 700 clamp(24px, 4vw, 30px) / 1.2 'Manrope', sans-serif;
  color: #1c4256;
}

.favorites-empty p {
  max-width: 380px;
  margin: 0 auto 26px;
  line-height: 1.8;
  color: #657984;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.favorites-card {
  min-width: 0;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, .95);
  background: linear-gradient(145deg, #fff, #f0f5f7);
  box-shadow: 0 13px 42px rgba(19, 46, 65, .08), inset 0 1px 0 #fff;
  overflow: hidden;
}

.favorites-card-media {
  display: block;
  overflow: hidden;
  position: relative;
  background: #dbe5ea;
  aspect-ratio: 4 / 3;
}

.favorites-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.favorites-card-media:hover img {
  transform: scale(1.035);
}

.favorites-card-body {
  padding: 22px;
}

.favorites-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #537c91;
}

.favorites-card-title {
  margin: 9px 0 17px;
  color: #183b50;
  font: 700 15px / 1.5 'Manrope', sans-serif;
  min-height: 44px;
}

.favorites-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorites-card-actions button,
.favorites-card-actions a {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(143, 176, 195, .35);
  padding: 9px 12px;
  background: rgba(230, 240, 245, .58);
  color: #214b60;
  font: 700 12px / 1.2 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.favorites-card-actions .favorites-request {
  flex: 1 1 100%;
  color: #fff;
  border-color: rgba(193, 224, 239, .6);
  background: linear-gradient(137deg, #357a99, #174359);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 21px rgba(25, 74, 96, .16);
}

.favorites-card-actions .favorites-remove {
  color: #8c4846;
  background: rgba(255, 250, 249, .8);
  border-color: rgba(191, 125, 120, .25);
}

.favorites-card-actions button:hover,
.favorites-card-actions a:hover {
  transform: translateY(-2px);
  background-color: #fff;
}

.favorites-card-actions .favorites-request:hover {
  background: linear-gradient(137deg, #3e88aa, #1b4e66);
}

/* ---------------------------------------------------------
   05. REQUEST DIALOG — clear form, opened only on demand
   --------------------------------------------------------- */
.favorites-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100% - 24px));
  max-height: min(93dvh, 830px);
  padding: clamp(23px, 4vw, 33px);
  overflow-y: auto;
  color: #1c3e50;
  border: 1px solid rgba(255, 255, 255, .89);
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(252, 254, 255, .98), rgba(231, 240, 245, .97));
  box-shadow: 0 25px 85px rgba(4, 20, 29, .35), inset 0 1px 1px #fff;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.favorites-dialog:not([open]) {
  display: none;
}

.favorites-dialog::backdrop {
  background: rgba(3, 17, 28, .67);
  backdrop-filter: blur(5px);
}

.favorites-dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 1px #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #1c4559;
}

.favorites-dialog h2 {
  margin: 12px 0 10px;
  font: 700 31px / 1.1 'Manrope', sans-serif;
  letter-spacing: -.05em;
}

.favorites-dialog h2 em {
  color: #337594;
}

.favorites-dialog-heading > p:last-child {
  font-size: 13px;
  color: #5b7382;
  line-height: 1.7;
  max-width: 370px;
}

.favorites-dialog-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid #fff;
  border-radius: 15px;
  margin: 18px 0;
}

.favorites-dialog-preview img {
  width: 85px;
  height: 75px;
  flex: 0 0 85px;
  object-fit: cover;
  border-radius: 10px;
}

.favorites-dialog-preview span {
  display: block;
  font-size: 9px;
  letter-spacing: .15em;
  font-weight: 700;
  color: #638a9b;
}

.favorites-dialog-preview strong {
  display: block;
  margin-top: 6px;
  font: 700 13px / 1.4 'Manrope', sans-serif;
  color: #214659;
}

.favorites-form {
  display: grid;
  gap: 8px;
}

.favorites-form label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2b5063;
}

.favorites-form label small {
  font-size: 11px;
  font-weight: 500;
  color: #708896;
}

.favorites-form input,
.favorites-form select,
.favorites-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c6d7e0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  padding: 12px 13px;
  font: 400 14px / 1.45 'DM Sans', sans-serif;
  color: #214357;
}

.favorites-form textarea {
  resize: vertical;
  min-height: 75px;
}

.favorites-form .favorites-send {
  width: 100%;
  margin-top: 11px;
  min-height: 48px;
  cursor: pointer;
  font-size: 13px;
}

.favorites-form-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #677f8b;
  line-height: 1.6;
}

.favorites-toast {
  position: fixed;
  z-index: 11000;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 99px;
  background: rgba(25, 60, 79, .95);
  color: #fff;
  box-shadow: 0 10px 30px rgba(7, 28, 40, .25);
  font-size: 12px;
  font-weight: 600;
  transition: transform .25s ease, opacity .25s ease;
}

.favorites-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 950px) {
  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .favorites-hero {
    min-height: 470px;
  }

  .favorites-hero-inner {
    padding-top: 133px;
    padding-bottom: 59px;
  }

  .favorites-hero h1 {
    font-size: clamp(44px, 10vw, 59px);
  }

  .favorites-section-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .favorites-card-title {
    min-height: 0;
  }

  .favorites-dialog {
    max-height: 94dvh;
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-toggle,
  .favorite-toggle svg,
  .favorites-card-media img,
  .favorites-toast {
    transition: none !important;
  }
}

/* =========================================================
   05. PERFORMANCE AND HOMEPAGE HERO POLISH
   Fixed photos, zero hover-driven image zoom or bottom captions.
   ========================================================= */
.hero .hero-panel-label {
  display: none !important;
}

.hero .hero-panel img,
.hero .hero-panel:hover img {
  transform: scale(1.035) !important;
  filter: brightness(.58) saturate(.76) !important;
  transition: none !important;
}

.hero .hero-panel::after,
.hero .hero-panel:hover::after {
  background: linear-gradient(180deg, rgba(3, 8, 11, .10) 35%, rgba(3, 8, 11, .66) 100%) !important;
  transition: none !important;
}

/* Stable SVG arrows instead of emoji-style arrow glyphs in iOS Safari. */
.service-arrow svg {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Glass stays legible while removing expensive per-control blur on phones. */
@media (max-width: 950px) {
  .favorite-toggle,
  .whatsapp {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 600px) {
  .favorites-hero {
    min-height: max(550px, 80svh);
  }

  .favorites-hero-overlay {
    background: linear-gradient(90deg, rgba(3, 13, 20, .9), rgba(7, 21, 28, .58)),
                linear-gradient(0deg, rgba(4, 14, 19, .78), transparent 75%);
  }
}

/* Keep large hero photographs static on constrained mobile GPUs. */
@media (max-width: 950px) {
  .product-hero-media img {
    animation: none !important;
  }
}
