/* Asia Myślińska Fotografia — base styles */

:root {
  --tnw-radius: 14px;
  --tnw-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Improve tap targets for buttons/links */
a, button, .wp-block-button__link {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Slightly nicer focus */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Cards */
.tnw-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--tnw-radius);
  background: var(--wp--preset--color--background);
  box-shadow: none;
  overflow: hidden;
}

.tnw-card--soft {
  background: var(--wp--preset--color--surface);
}

/* Section spacing helper */
.tnw-section {
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(32px, 6vw, 72px);
}

/* Hero overlay */
.tnw-hero {
  border-radius: var(--tnw-radius);
  overflow: hidden;
  box-shadow: var(--tnw-shadow);
}

.tnw-hero .tnw-hero__overlay {
  background: linear-gradient(120deg, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
  min-height: clamp(420px, 60vh, 620px);
  display: flex;
  align-items: center;
}

/* Buttons */
.wp-block-button__link {
  border-radius: 999px;
}

/* Testimonials */
.tnw-quote {
  border-left: 4px solid var(--wp--preset--color--accent);
  padding-left: 16px;
}

/* Simple lightbox */
.tnw-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
}

.tnw-lightbox[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnw-lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.tnw-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Contact form (shortcode) */
.tnw-contact__notice {
  border-radius: var(--wp--custom--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--wp--preset--color--border);
}
.tnw-contact__notice--ok { background: rgba(15, 118, 110, 0.10); }
.tnw-contact__notice--err { background: rgba(196, 154, 108, 0.15); }

.tnw-contact__form input[type="text"],
.tnw-contact__form input[type="email"],
.tnw-contact__form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--wp--preset--color--border);
  background: #fff;
  font: inherit;
}
.tnw-contact__form textarea { min-height: 160px; resize: vertical; }

.tnw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 16px;
}
.tnw-grid p { margin: 0; }
.tnw-grid .tnw-grid__full { grid-column: 1 / -1; }

@media (max-width: 780px) {
  .tnw-grid { grid-template-columns: 1fr; }
}
