/* ===========================================================================
   Gökkubbe Sanat — marketing site
   Vanilla CSS. Mobile-first; the richer desktop experience (the hover-reveal
   paint effect) is layered in at >=1200px per the design brief.
   =========================================================================== */

:root {
  --gold: #b58f43;
  --gold-soft: #c8a866;
  --ink: #1c1a17;
  --paper: #f7f5f1;
  --card-bg: #ffffff;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Dosis", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------------
   Stage / layout
   Mobile: a single centered contact card on a soft paper background.
   --------------------------------------------------------------------------- */
.stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Reveal background — hidden on mobile (basic responsive design there).
   --------------------------------------------------------------------------- */
.reveal {
  display: none;
}

.reveal__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* The painted layer is a canvas. It starts empty (fully transparent), so only
   the uncolored base shows. JS brushes the colored image onto it along the
   cursor's path; strokes accumulate and are never cleared, so paint stays. */
.reveal__paint {
  background: transparent;
}

/* Discovery hint — quietly tells first-time visitors the ceramics are paintable,
   then fades out for good once they start (or after a few seconds). */
.reveal__hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  margin: 0;
  padding: 11px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a6258;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal__hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

/* Virtual brush cursor for the first-load demo — mirrors the real paint cursor
   so visitors recognise it as theirs to pick up. */
.reveal__demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(181, 143, 67, 0.18);
  border: 2px solid rgba(181, 143, 67, 0.9);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.07s linear;
  will-change: transform;
  z-index: 1;
}

.reveal__demo-cursor.is-visible {
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   Contact card
   --------------------------------------------------------------------------- */
.card {
  position: relative;
  z-index: 2;
  width: min(92vw, 360px);
  /* Frosted glass: the painted ceramics glow faintly through the card. */
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(28, 26, 23, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card__logo {
  width: 152px;
  height: auto;
  display: block;
  /* The logo PNG ships on solid white; frame it as a flat rounded plate on the
     glass — no shadow (originals untouched). */
  border-radius: 16px;
  pointer-events: none; /* clicks on the logo toggle the card, not drag the img */
}

/* The "iletişim" toggle is desktop-only; mobile shows details unconditionally. */
.card__toggle {
  display: none;
  margin-top: 8px;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.card__toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

/* Hairline divider that introduces the contact details. */
.card__rule {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg,
              transparent, rgba(181, 143, 67, 0.7), transparent);
}

.card__social {
  display: flex;
  gap: 22px;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.18s ease;
}

.card__icon:hover {
  transform: translateY(-3px);
}

.card__icon img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.card__icon svg {
  width: 34px;
  height: 34px;
}

.card__email {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card__address {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #4a463f;
  max-width: 30ch;
}

/* ===========================================================================
   Desktop ( >= 1200px ): visually rich, full-bleed reveal background with the
   contact card floated top-left, matching the wireframes.
   =========================================================================== */
@media (min-width: 1200px) {
  .stage {
    place-items: start;
    padding: 0;
  }

  .reveal {
    display: block;
    position: absolute;
    inset: 0;
    /* A soft brush-tip cursor reinforces that the surface is paintable. */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ccircle cx='22' cy='22' r='15' fill='rgba(181,143,67,0.18)' stroke='rgba(181,143,67,0.9)' stroke-width='2'/%3E%3C/svg%3E") 22 22, crosshair;
  }

  .card {
    margin: 56px 0 0 56px;
    width: 320px;
    padding: 34px 30px;
    cursor: pointer; /* the whole card toggles open/closed */
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 70px rgba(28, 26, 23, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  /* Compact by default: just logo + "iletişim". The prompt disappears once the
     card is open. */
  .card__toggle {
    display: inline-block;
  }

  .card.is-open .card__toggle {
    display: none;
  }

  .card__details {
    overflow: hidden;
    max-height: 0;
    gap: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.4s ease, opacity 0.3s ease,
                transform 0.3s ease, gap 0.4s ease;
  }

  .card.is-open .card__details {
    max-height: 320px;
    gap: 22px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 4px;
  }
}

/* ===========================================================================
   Accessibility: respect reduced-motion preferences.
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal__hint {
    transition: none;
  }

  .card,
  .card__details,
  .card__icon,
  .card__toggle {
    transition: none;
  }
}
