/* ───────────────────────────────────────────────────────────
   Melda Kaya Psikolog — Custom Styles
   Tailwind via CDN provides utilities; this file extends.
   ─────────────────────────────────────────────────────────── */

:root {
  --forest-700: #234234;
  --forest-800: #1B322A;
  --forest-900: #142620;
  --cream-50:  #FBF8F3;
  --cream-100: #F6F0E6;
  --ochre-500: #C19B5E;
}

html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-feature-settings: "ss01", "ss02", "cv11"; }

::selection { background: #2D5340; color: #FBF8F3; }

/* Fluid type for display headings */
.display-xl { font-size: clamp(2.75rem, 6vw + 1rem, 6rem); line-height: 1.02; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2.25rem, 4vw + 1rem, 4.25rem); line-height: 1.05; letter-spacing: -0.015em; }
.display-md { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); line-height: 1.12; letter-spacing: -0.01em; }

/* Custom accent underline for section eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #5F8D73;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms cubic-bezier(0.2,0.7,0.2,1), transform 900ms cubic-bezier(0.2,0.7,0.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }
.reveal.delay-4 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Header scroll state */
#site-header.is-scrolled {
  background: rgba(251,248,243,0.92);
  box-shadow: 0 1px 0 rgba(20,38,32,0.06), 0 10px 30px -15px rgba(20,38,32,0.12);
}

/* Decorative leaf divider */
.leaf-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(45,83,64,0.25), transparent);
}
.leaf-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #FBF8F3;
  border: 1px solid rgba(45,83,64,0.3);
}

/* Photo plate with subtle frame */
.portrait-plate {
  position: relative;
  border-radius: 28rem 28rem 2rem 2rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20,38,32,0.35), 0 0 0 1px rgba(45,83,64,0.1);
}
.portrait-plate::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,38,32,0.35));
  pointer-events: none;
}

/* Service card hover */
.service-card {
  transition: transform 400ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 400ms, border-color 300ms;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,83,64,0.22);
  box-shadow: 0 24px 48px -24px rgba(20,38,32,0.22);
}

/* Quote block accent */
.quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 7rem;
  line-height: 0.8;
  color: rgba(193,155,94,0.45);
  font-style: italic;
}

/* Button press feedback */
.btn-press { transform-origin: center; }
.btn-press:active { transform: scale(0.98); }

/* Form controls */
.form-input {
  width: 100%;
  background: #FBF8F3;
  border: 1px solid rgba(45,83,64,0.14);
  border-radius: 0.75rem;
  padding: 0.95rem 1.1rem;
  font: 400 0.95rem/1.4 'Inter', sans-serif;
  color: #26241F;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.form-input:hover { border-color: rgba(45,83,64,0.3); }
.form-input:focus {
  outline: none;
  background: #fff;
  border-color: #2D5340;
  box-shadow: 0 0 0 4px rgba(45,83,64,0.1);
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #234234;
  margin-bottom: 0.5rem;
}

/* Decorative background dot-grid for sections */
.dot-grid {
  background-image: radial-gradient(rgba(45,83,64,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Vertical rhythmic line */
.timeline-line {
  position: relative;
}
.timeline-line::before {
  content: "";
  position: absolute;
  top: 0.75rem; bottom: 0.75rem;
  left: 0.625rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(45,83,64,0.3), rgba(45,83,64,0.05));
}

/* Animated gradient underline for nav active */
.nav-link[aria-current="page"] { color: #1B322A; }

/* Marquee-like subtle float */
@keyframes gentle-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.gentle-float { animation: gentle-float 7s ease-in-out infinite; }

/* Responsive spacing helpers */
.section-y { padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(4rem, 8vw, 8rem); }

/* ───────────────────────────────────────────────────────────
   WhatsApp Floating Action Button
   ─────────────────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 80;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: #25D366;              /* WhatsApp brand green */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 24px -6px rgba(37, 211, 102, 0.55),
    0 4px 10px rgba(20, 38, 32, 0.15);
  transition: transform 250ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 250ms;
  cursor: pointer;
  isolation: isolate;               /* ripple clipped by the button */
  -webkit-tap-highlight-color: transparent;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 14px 32px -8px rgba(37, 211, 102, 0.65),
    0 6px 14px rgba(20, 38, 32, 0.2);
}
.wa-fab:active { transform: translateY(0) scale(0.98); }
.wa-fab:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.9),
    0 0 0 6px #25D366,
    0 10px 24px -6px rgba(37, 211, 102, 0.55);
}

.wa-fab__icon {
  position: relative;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  background-color: #fff;                             /* icon color */
  -webkit-mask: var(--wa-icon) center / contain no-repeat;
          mask: var(--wa-icon) center / contain no-repeat;
}

/* Ripple: two staggered concentric pulses */
.wa-fab__ripple {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: wa-ripple 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.wa-fab__ripple--2 { animation-delay: 1.3s; }

@keyframes wa-ripple {
  0%   { transform: scale(1);   opacity: 0.55; }
  60%  { opacity: 0.08; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Tooltip on larger screens */
.wa-fab::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.8rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #142620;
  color: #FBF8F3;
  font: 500 0.8rem/1 'Inter', sans-serif;
  padding: 0.55rem 0.85rem;
  border-radius: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
}
.wa-fab:hover::after,
.wa-fab:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 640px) {
  .wa-fab::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab__ripple { animation: none; opacity: 0; }
  .wa-fab:hover { transform: none; }
}

