/*
Theme Name:  Yael Dobkin
Theme URI:   https://yaeldobkin.com
Author:      Shahar Ariel — D/fference
Author URI:  https://dfference.com
Description: Custom portfolio theme for Yael Dobkin — Architecture & Interiors studio.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     Private — All rights reserved
Text Domain: yael-dobkin
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #8a8a8a;
  --rule: #ececec;
  --side: 56px;
  --top: 28px;
  --max: 1500px;
  --ease: cubic-bezier(0.7, 0, 0.3, 1);
  --rail-h: 260px;
  --indicator-h: 72px;
  --footer-h: 320px;
}

@media (max-width: 768px) {
  :root {
    --side: 22px;
    --top: 20px;
    --rail-h: 200px;
    --indicator-h: 56px;
    --footer-h: 420px;
  }
}

/* ==========================================================================
   RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; padding: 0; }

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip-to-content link — visible only on focus. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Global focus-visible outlines — keyboard users only. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* White-text elements on dark backgrounds: light focus ring. */
.chrome :focus-visible,
.slide :focus-visible,
.menu-overlay :focus-visible {
  outline-color: #ffffff;
}

/* Remove outline from mouse clicks. */
:focus:not(:focus-visible) {
  outline: none;
}

/* Buttons and links that have custom hover styles — subtle ring. */
.hamburger:focus-visible {
  outline-offset: 6px;
}

.reviews-arrow:focus-visible {
  outline-offset: 0;
}

.reviews-dot:focus-visible {
  outline-offset: 3px;
}

.tab:focus-visible {
  outline-offset: 4px;
}

/* Ensure hidden tab panels are not reachable. */
.tab-content:not(.is-active) {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.tab-content.is-active {
  visibility: visible;
  height: auto;
}

/* Reduced motion: disable all transitions and animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
  font-family: "montserrat", "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SITE HEADER — Inner pages (white bg, shrinks on scroll)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: #ffffff;
  height: 92px;
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.shrunk {
  height: 60px;
  box-shadow: 0 1px 18px rgba(0, 0, 0, 0.04);
}
.site-header__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--side);
}

.wordmark {
  position: relative;
  font-family: "ivymode", serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.wordmark small {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.7;
  max-height: 20px;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.4s var(--ease);
}
.site-header.shrunk .wordmark small {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

/* ==========================================================================
   CHROME — Homepage floating header (transparent, white text)
   ========================================================================== */

.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 110;
  color: #ffffff;
}
.chrome > * { pointer-events: auto; }

.chrome .wordmark {
  position: absolute;
  top: var(--top);
  left: var(--side);
  color: #ffffff;
  text-shadow:
    0 1px 2px  rgba(0,0,0,0.65),
    0 2px 24px rgba(0,0,0,0.55);
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}
.chrome .wordmark small {
  opacity: 0.95;
}

body.menu-open .chrome .wordmark {
  color: var(--ink);
  text-shadow: none;
}

/* ==========================================================================
   HAMBURGER
   ========================================================================== */

.hamburger {
  position: relative;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hamburger.open span:first-child { transform: translateY(4px)  rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Homepage hamburger: white lines with shadow */
.chrome .hamburger {
  position: absolute;
  top: var(--top);
  right: var(--side);
}
.chrome .hamburger span {
  background: #ffffff;
  box-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
body.menu-open .chrome .hamburger span {
  background: var(--ink);
  box-shadow: none;
}

/* ==========================================================================
   SCROLL RAIL (homepage)
   ========================================================================== */

.scroll-rail {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: var(--rail-h);
  transition: opacity 0.5s var(--ease);
}
.scroll-rail.hidden,
body.menu-open .scroll-rail { opacity: 0; pointer-events: none; }

.scroll-rail__track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
}
.scroll-rail__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: var(--indicator-h);
  background: #ffffff;
  transition: top 0.7s var(--ease);
}
.scroll-rail__label {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 768px) {
  .scroll-rail { right: 12px; }
  .scroll-rail__label { font-size: 12px; right: 12px; }
}

/* ==========================================================================
   MENU OVERLAY
   ========================================================================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.menu-nav a {
  display: inline-block;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 84px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.75s var(--ease), opacity 0.75s var(--ease);
}
.menu-overlay.open .menu-nav a {
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.open .menu-nav a:nth-child(1) { transition-delay: 0.18s; }
.menu-overlay.open .menu-nav a:nth-child(2) { transition-delay: 0.26s; }
.menu-overlay.open .menu-nav a:nth-child(3) { transition-delay: 0.34s; }

.menu-nav a.current-menu-item { font-style: italic; opacity: 0.55; }

/* Link roller dual-text hover */
.menu-nav a .link-roller {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.menu-nav a .link-roller__a,
.menu-nav a .link-roller__b {
  display: block;
  line-height: 1.35;
  padding: 0 0.08em;
  transition: transform 0.65s var(--ease);
}
.menu-nav a .link-roller__b {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  font-style: italic;
}
.menu-nav a:hover .link-roller__a,
.menu-nav a:hover .link-roller__b {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .wordmark { font-size: 16px; }
  .menu-nav a { font-size: clamp(36px, 11vw, 64px); }
}

/* ==========================================================================
   PAGE INTRO (inner pages shared)
   ========================================================================== */

.page-intro {
  padding: 160px var(--side) 64px;
  text-align: center;
}
.page-title {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.page-meta {
  display: block;
  margin-top: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 600px) {
  .page-intro { padding: 120px var(--side) 36px; }
}

/* ==========================================================================
   HOMEPAGE SLIDES
   ========================================================================== */

html.home-slides {
  scroll-snap-type: y mandatory;
}

.main {
  position: relative;
  z-index: 2;
  background: var(--paper);
}

.slide {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.slide__link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  z-index: 1;
}
.project__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.40) 0%,  rgba(0,0,0,0.15) 14%, rgba(0,0,0,0) 28%),
    linear-gradient(to top,    rgba(0,0,0,0.55) 0%,  rgba(0,0,0,0.20) 22%, rgba(0,0,0,0) 48%),
    linear-gradient(to right,  rgba(0,0,0,0.28) 0%,  rgba(0,0,0,0) 32%);
  pointer-events: none;
}

.project__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.project__meta {
  position: absolute;
  bottom: 56px;
  left: var(--side);
  color: #fff;
  max-width: 600px;
  z-index: 2;
}
.project__name {
  font-family: "ivymode", serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow:
    0 1px 2px  rgba(0,0,0,0.65),
    0 2px 24px rgba(0,0,0,0.55);
}
.project__details {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  text-shadow:
    0 1px 2px  rgba(0,0,0,0.65),
    0 2px 20px rgba(0,0,0,0.50);
  will-change: transform, opacity;
}
.project__details span + span::before {
  content: ' · ';
  margin: 0 6px;
  opacity: 0.6;
}

.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  line-height: 1.05;
}
.mask__inner {
  display: inline-block;
  will-change: transform;
}

.footer-spacer {
  height: var(--footer-h);
  background: transparent;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .project__meta { bottom: 44px; max-width: 88%; }
}

/* ==========================================================================
   PROJECTS GRID
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 36px);
  padding: 0 var(--side) 120px;
}
.project-card {
  display: block;
  color: var(--ink);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.project-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
@media (hover: hover) {
  .project-card:hover .project-card__media img { transform: scale(1.06); }
}
.project-card__name {
  margin-top: 22px;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; padding-bottom: 80px; gap: 36px; }
}

/* ==========================================================================
   SINGLE PROJECT
   ========================================================================== */

.project-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side);
}
.project-hero {
  padding: 160px 0 64px;
  text-align: center;
}
.project-hero__title {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 22px;
}
.project-hero__category {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.4;
}
.project-hero__media {
  width: 100%;
  overflow: hidden;
  margin-bottom: 28px;
}
.project-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-hero__caption {
  text-align: center;
  font-family: "ivymode", serif;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 8px;
}
.project-hero__caption-name {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 6px;
}
.project-hero__caption-loc {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* Breadcrumbs */
.breadcrumbs {
  text-align: center;
  padding: 18px 0 56px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a,
.breadcrumbs .current { color: var(--muted); transition: color 0.3s var(--ease); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .current { color: var(--ink); }
.breadcrumbs .sep { margin: 0 12px; opacity: 0.6; }

/* Description */
.project-text {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 0 48px;
  text-align: center;
}
.project-text p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.project-text p + p { margin-top: 16px; }

/* Gallery rows */
.gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 120px;
}
.gallery-row { overflow: hidden; }
.gallery-row--single {
  width: 100%;
}
.gallery-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 32px);
  background: transparent;
}
.gallery-row--two .gallery-col {
  overflow: hidden;
}
.gallery-row img,
.gallery-row .gallery-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

/* Video embed */
.gallery-row--video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f3f3;
}
.gallery-row--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Page nav (prev / next) */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding: 56px 0 96px;
}
.page-nav__cell { max-width: 50%; }
.page-nav__cell--next { text-align: right; }
.page-nav__label {
  display: block;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.page-nav__name {
  display: inline-block;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--muted);
  line-height: 1.2;
  transition: color 0.3s var(--ease);
}
.page-nav__name:hover { color: var(--ink); }

@media (max-width: 768px) {
  .gallery-row--two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .project-hero { padding: 120px 0 28px; }
  .project-hero__media { aspect-ratio: 4 / 5; }
  .breadcrumbs { padding: 14px 0 36px; font-size: 10px; letter-spacing: 0.15em; }
  .breadcrumbs .sep { margin: 0 8px; }
  .project-text { padding: 32px 0 16px; }
  .gallery { padding-bottom: 64px; }
  .page-nav { padding: 40px 0 64px; }
}

/* ==========================================================================
   STUDIO PAGE
   ========================================================================== */

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: clamp(36px, 6vw, 72px);
  padding: 8px var(--side) 80px;
  border-bottom: 1px solid var(--rule);
}
.tab {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.4;
  padding: 10px 0;
  position: relative;
  transition: color 0.4s var(--ease);
}
.tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-style: italic; }
.tab.is-active::after { transform: scaleX(1); }

.tabs-content {
  padding: 88px var(--side) 120px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f3f3;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-text { max-width: 540px; }
.about-text__eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.about-text__lede {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 32px;
}
.about-text__lede em { font-style: italic; }
.about-text__body p {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 16px;
}
.about-text__body p:last-child { margin-bottom: 0; }

/* Press grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 36px);
}
.press-card { display: block; color: var(--ink); }
.press-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}
.press-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.press-card:hover .press-card__media img { transform: scale(1.04); }
.press-card__publication {
  margin-top: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.press-card__title {
  margin-top: 8px;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.25;
}
.press-card__date {
  margin-top: 10px;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

/* Reviews / Testimonial carousel */
.reviews-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0;
  text-align: center;
  position: relative;
}
.reviews-stage {
  position: relative;
  min-height: 320px;
}
.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
}
.testimonial.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.testimonial__quote {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 760px;
}
.testimonial__quote::before {
  content: "\201C";
  display: inline;
  margin-right: 0.05em;
  font-style: italic;
}
.testimonial__quote::after {
  content: "\201D";
  display: inline;
  margin-left: 0.05em;
  font-style: italic;
}
.testimonial__cite {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.testimonial__role {
  display: block;
  margin-top: 6px;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.reviews-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}
.reviews-arrow {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.reviews-arrow:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.reviews-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.reviews-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.reviews-dot.is-active {
  background: var(--ink);
  transform: scale(1.4);
}

@media (max-width: 900px) {
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tabs { gap: 24px; padding-bottom: 48px; }
  .tabs-content { padding: 56px var(--side) 80px; }
  .press-grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonial { gap: 22px; }
  .reviews-nav { margin-top: 36px; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--side);
}

.contact-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f3f3;
  margin-bottom: 96px;
}
.contact-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  padding-bottom: 120px;
}

.contact-form__eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.contact-form__lede {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 48px;
}
.contact-form__lede em { font-style: italic; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form-field {
  position: relative;
  margin-bottom: 28px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.35s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form-field label {
  position: absolute;
  left: 0;
  top: 28px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}
/* Floating label: direct sibling (plain HTML) */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
/* Floating label: JS-driven class (CF7 wraps content in <p>, so use descendant) */
.form-field.is-floated label,
/* Floating label: CSS :has() (CF7 wrapper, modern browsers) */
.form-field:has(.wpcf7-form-control:focus) label,
.form-field:has(.wpcf7-form-control:not(:placeholder-shown)) label {
  transform: translateY(-22px) scale(0.78);
  letter-spacing: 0.18em;
  color: var(--ink);
}
.form-field--textarea textarea { min-height: 120px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 18px 36px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}
.form-submit:hover {
  background: transparent;
  color: var(--ink);
  letter-spacing: 0.32em;
}
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 14px; height: 14px;
  accent-color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
}
.form-consent a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s var(--ease);
}
.form-consent a:hover { opacity: 0.55; }

.form-message {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  display: none;
}
.form-message.show { display: block; }

/* Contact info */
.contact-info { padding-top: 56px; }
.contact-info__block { margin-bottom: 40px; }
.contact-info__block:last-child { margin-bottom: 0; }
.contact-info__label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact-info__value {
  font-family: "ivymode", serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  font-style: normal;
}
.contact-info__value a {
  transition: opacity 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.contact-info__value a:hover { border-bottom-color: var(--ink); }
.contact-info__small {
  display: block;
  margin-top: 8px;
  font-family: "ivymode", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-info { padding-top: 8px; border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .contact-hero { aspect-ratio: 4 / 5; margin-bottom: 56px; }
  .contact-grid { gap: 40px; padding-bottom: 80px; }
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */

.legal {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--side) 120px;
}
.legal h2 {
  font-family: "ivymode", serif;
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 56px 0 18px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.legal ul { padding-left: 22px; margin-bottom: 20px; }
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s var(--ease);
}
.legal a:hover { opacity: 0.55; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 80px var(--side) 32px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  background: var(--paper);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 72px;
}
.footer__col {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--muted);
}
.footer__col a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__col--right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer__name {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.6;
}
.footer__role {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__ig-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}
.footer__ig-icon:hover { opacity: 0.55; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.footer__legal {
  display: flex;
  gap: 22px;
  align-items: center;
}
.footer__legal a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer__legal a:hover { color: var(--ink); }
.footer__bottom .credit a { color: var(--ink); transition: opacity 0.3s var(--ease); }
.footer__bottom .credit a:hover { opacity: 0.55; }

/* Homepage footer (fixed, revealed) */
.footer--home {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px var(--side) 28px;
  border-top: none;
}

@media (max-width: 600px) {
  .footer { padding: 56px var(--side) 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 48px; }
  .footer__col--right { text-align: left; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer__legal { flex-wrap: wrap; }
  .footer--home { padding: 40px var(--side) 22px; }
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 200;
  width: 360px;
  max-width: calc(100% - 48px);
  background: #ffffff;
  color: var(--ink);
  padding: 22px 24px;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner__inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-banner p { font-family: "Montserrat", sans-serif; font-size: 12px; line-height: 1.6; color: var(--ink); }
.cookie-banner a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner__btn {
  padding: 10px 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
}
.cookie-banner__btn:hover { background: transparent; color: var(--ink); }
.cookie-banner__btn--ghost { background: transparent; color: var(--ink); }
.cookie-banner__btn--ghost:hover { background: var(--ink); color: #ffffff; }

@media (max-width: 768px) {
  .cookie-banner { right: 12px; left: 12px; width: auto; bottom: 12px; padding: 18px 20px; }
  .cookie-banner__inner { gap: 14px; }
}

/* ==========================================================================
   RECAPTCHA BADGE HIDE
   ========================================================================== */

.grecaptcha-badge { visibility: hidden !important; }

/* One Tap Accessibility — shrink toggle button */
body .onetap-accessibility.onetap-plugin .onetap-container-toggle .onetap-toggle img.design-size1.design-border2 {
  width: 28px !important;
  height: 28px !important;
}
body .onetap-accessibility.onetap-plugin .onetap-container-toggle .onetap-toggle {
  padding: 4px !important;
}