/* Benji's Designs — White + purple liquid glass theme */

:root {
  --white: #fafafa;
  --white-pure: #ffffff;
  --purple-50: #f5f0ff;
  --purple-100: #e8dcff;
  --purple-300: #b794f6;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --text: #1a1625;
  --text-muted: #5c5470;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px rgba(109, 40, 217, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --header-offset: calc(var(--header-h) - 3rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* —— Liquid background blobs —— */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(165deg, var(--white-pure) 0%, var(--purple-100) 44%, var(--white) 100%);
}

.blob-wrap {
  position: absolute;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.blob-orbit {
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.blob {
  border-radius: 50%;
  filter: blur(86px) saturate(1.25);
  opacity: 0.72;
  animation: float 8s ease-in-out infinite;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.blob-1-wrap {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -10%;
  right: -5%;
  animation: drift-1 10s ease-in-out infinite;
}

.blob-1-orbit {
  animation: orbit-1 6.5s ease-in-out infinite;
}

.blob-1 {
  background: radial-gradient(circle, var(--purple-500) 0%, transparent 72%);
  animation-delay: 0s;
}

.blob-2-wrap {
  width: min(45vw, 400px);
  height: min(45vw, 400px);
  bottom: 20%;
  left: -8%;
  animation: drift-2 12s ease-in-out infinite;
}

.blob-2-orbit {
  animation: orbit-2 5.8s ease-in-out infinite;
}

.blob-2 {
  background: radial-gradient(circle, var(--purple-600) 0%, transparent 72%);
  animation-delay: -6s;
  opacity: 0.58;
}

.blob-3-wrap {
  width: min(35vw, 320px);
  height: min(35vw, 320px);
  top: 45%;
  left: 35%;
  animation: drift-3 11s ease-in-out infinite;
}

.blob-3-orbit {
  animation: orbit-3 6.2s ease-in-out infinite;
}

.blob-3 {
  background: radial-gradient(circle, var(--purple-100) 0%, var(--purple-500) 42%, transparent 75%);
  animation-delay: -12s;
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

@keyframes drift-1 {
  0% { transform: translate3d(0, 0, 0); }
  22% { transform: translate3d(-10vw, 18vh, 0); }
  48% { transform: translate3d(-22vw, 48vh, 0); }
  72% { transform: translate3d(-14vw, 24vh, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes drift-2 {
  0% { transform: translate3d(0, 0, 0); }
  18% { transform: translate3d(14vw, -10vh, 0); }
  44% { transform: translate3d(26vw, -28vh, 0); }
  68% { transform: translate3d(10vw, -14vh, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes drift-3 {
  0% { transform: translate3d(0, 0, 0); }
  28% { transform: translate3d(-16vw, -18vh, 0); }
  54% { transform: translate3d(14vw, -42vh, 0); }
  78% { transform: translate3d(22vw, -22vh, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes orbit-1 {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(18px, -28px, 0); }
  40% { transform: translate3d(-34px, -8px, 0); }
  60% { transform: translate3d(26px, 22px, 0); }
  80% { transform: translate3d(-14px, 34px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes orbit-2 {
  0% { transform: translate3d(0, 0, 0); }
  16% { transform: translate3d(-26px, 18px, 0); }
  38% { transform: translate3d(12px, 34px, 0); }
  62% { transform: translate3d(34px, -12px, 0); }
  84% { transform: translate3d(-10px, -30px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes orbit-3 {
  0% { transform: translate3d(0, 0, 0); }
  24% { transform: translate3d(30px, 10px, 0); }
  48% { transform: translate3d(-22px, 26px, 0); }
  72% { transform: translate3d(-10px, -30px, 0); }
  88% { transform: translate3d(22px, -18px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .blob-wrap,
  .blob-orbit {
    animation: none !important;
    transform: none !important;
  }
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal:not(.is-visible) {
  transition-duration: 0.45s;
  transition-delay: 0ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.reveal.is-visible:hover,
.service-card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Liquid glass panels —— */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(139, 92, 246, 0.06);
  position: relative;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(139, 92, 246, 0.15) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 2rem), 1100px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-radius: calc(var(--radius) + 4px);
}

/* Purple-tinted header glass for white logos */
.site-header.glass-panel {
  background: linear-gradient(
    135deg,
    rgba(232, 220, 255, 0.62) 0%,
    rgba(139, 92, 246, 0.26) 55%,
    rgba(232, 220, 255, 0.55) 100%
  );
  border-color: rgba(183, 148, 246, 0.55);
  box-shadow:
    0 10px 34px rgba(109, 40, 217, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(139, 92, 246, 0.14);
}

.site-header.glass-panel::before {
  opacity: 0.75;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.35rem 0.75rem;
  border: 2px dashed var(--purple-300);
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.06);
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--purple-600);
}

.main-nav a.is-active {
  color: var(--purple-700);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-600);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* —— Placeholders —— */
.placeholder-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple-600);
}

.placeholder-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(232, 220, 255, 0.4) 100%
  );
  border: 2px dashed rgba(139, 92, 246, 0.35);
  border-radius: calc(var(--radius) - 4px);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* When you add real images, hide placeholder styling via img only */
.gallery-item .image-placeholder:has(img),
.about-photo .image-placeholder:has(img),
.hero-visual .image-placeholder:has(img) {
  border: none;
  background: none;
  min-height: unset;
}

.gallery-item .image-placeholder:has(img) .placeholder-label,
.gallery-item .image-placeholder:has(img) .placeholder-hint,
.about-photo .image-placeholder:has(img) .placeholder-label,
.about-photo .image-placeholder:has(img) .placeholder-hint,
.hero-visual .image-placeholder:has(img) .placeholder-label,
.hero-visual .image-placeholder:has(img) .placeholder-hint {
  display: none;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 1.5rem 4rem;
  min-height: 100vh;
}

.hero-panel {
  padding: 2.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-600);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--purple-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Solo hero — when .hero-visual is hidden/removed */
.hero:not(:has(.hero-visual)) {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}

.hero:not(:has(.hero-visual)) .hero-panel {
  width: 100%;
  padding: 3rem 2.5rem;
}

.hero:not(:has(.hero-visual)) .hero-lead {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.hero:not(:has(.hero-visual)) .hero-actions {
  justify-content: center;
}

.hero-visual {
  padding: 0.75rem;
  overflow: hidden;
}

.hero-image-ph {
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}

/* —— Stand Out highlight —— */
.stand-out {
  font-weight: 700;
  color: var(--purple-700);
  text-shadow:
    0 0 12px rgba(167, 139, 250, 0.55),
    0 0 28px rgba(139, 92, 246, 0.45),
    0 0 48px rgba(124, 58, 237, 0.35);
  animation: stand-out-glow-pulse 1.8s ease-in-out infinite;
}

@keyframes stand-out-glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(167, 139, 250, 0.5),
      0 0 24px rgba(139, 92, 246, 0.4),
      0 0 40px rgba(124, 58, 237, 0.3);
  }
  50% {
    text-shadow:
      0 0 16px rgba(196, 181, 253, 0.95),
      0 0 36px rgba(167, 139, 250, 0.85),
      0 0 64px rgba(139, 92, 246, 0.75),
      0 0 96px rgba(124, 58, 237, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stand-out {
    animation: none;
    text-shadow:
      0 0 12px rgba(167, 139, 250, 0.65),
      0 0 28px rgba(139, 92, 246, 0.5);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: white;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--purple-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--purple-700);
  border: 1px solid rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--purple-500);
}

/* —— Sections —— */
.section,
.hero {
  scroll-margin-top: var(--header-offset);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--purple-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.about-text {
  padding: 2rem;
}

.about-text h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--purple-700);
}

.about-text p + p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.about-photo {
  padding: 0.75rem;
  overflow: hidden;
}

.about-photo .image-placeholder {
  aspect-ratio: 1;
  min-height: 100%;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  padding: 0.65rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.12);
}

.gallery-media {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: calc(var(--radius-sm));
  transition: opacity 0.2s;
}

.gallery-media:hover {
  opacity: 0.95;
}

.gallery-media:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
}

.gallery-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-sm));
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(232, 220, 255, 0.35) 100%
  );
}

.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--purple-700);
  background: linear-gradient(
    135deg,
    rgba(232, 220, 255, 0.72) 0%,
    rgba(139, 92, 246, 0.32) 55%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border-color: rgba(183, 148, 246, 0.65);
  box-shadow:
    0 8px 28px rgba(109, 40, 217, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-media--video:hover .gallery-play,
.gallery-media--video:focus-visible .gallery-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 12px 36px rgba(109, 40, 217, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gallery-play svg {
  margin-left: 0.2rem;
}

.gallery-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--purple-700);
  background: linear-gradient(
    135deg,
    rgba(232, 220, 255, 0.72) 0%,
    rgba(139, 92, 246, 0.32) 55%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border-color: rgba(183, 148, 246, 0.65);
  box-shadow:
    0 8px 28px rgba(109, 40, 217, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-media--website:hover .gallery-link,
.gallery-media--website:focus-visible .gallery-link {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 12px 36px rgba(109, 40, 217, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

a.gallery-media {
  text-decoration: none;
  color: inherit;
}

.gallery-ph {
  aspect-ratio: 4 / 3;
  min-height: 160px;
}

.gallery-item .image-placeholder img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-sm));
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(232, 220, 255, 0.35) 100%
  );
}

.gallery-caption {
  padding: 1rem 0.5rem 0.35rem;
}

.gallery-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* —— Work media lightbox —— */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(26, 22, 37, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.media-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox:not([hidden]).is-open {
  display: flex;
}

.media-lightbox-content {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox-image,
.media-lightbox-video {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.media-lightbox-video {
  width: 100%;
  background: #000;
}

.media-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--purple-700);
  cursor: pointer;
  border: none;
  padding: 0;
}

.media-lightbox-close:hover {
  color: var(--purple-600);
}

body.lightbox-open {
  overflow: hidden;
}

/* —— Services —— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--purple-500);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--purple-700);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card-wide {
  grid-column: 1 / -1;
  max-width: 100%;
}

/* —— Contact —— */
.contact-wrap {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-header {
  text-align: left;
  margin-bottom: 0;
  grid-column: 1 / -1;
}

.contact-details p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-status {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}

.form-status--success {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.form-status--error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* —— Footer —— */
.site-footer {
  max-width: 1100px;
  margin: 2rem auto 2rem;
  padding: 1.5rem 2rem;
  text-align: center;
  width: calc(100% - 3rem);
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tag {
  margin-top: 0.35rem;
  font-size: 0.8rem !important;
  opacity: 0.85;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-h) + 3rem);
    min-height: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header.nav-open {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(232, 220, 255, 0.94) 55%,
      rgba(245, 240, 255, 0.92) 100%
    );
    backdrop-filter: blur(36px) saturate(220%);
    -webkit-backdrop-filter: blur(36px) saturate(220%);
    border-color: rgba(183, 148, 246, 0.45);
    box-shadow:
      0 8px 32px rgba(109, 40, 217, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(139, 92, 246, 0.12);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.84) 0%,
      rgba(232, 220, 255, 0.95) 45%,
      rgba(183, 148, 246, 0.52) 100%
    );
    backdrop-filter: blur(36px) saturate(220%);
    -webkit-backdrop-filter: blur(36px) saturate(220%);
    border: 1px solid rgba(183, 148, 246, 0.5);
    border-radius: var(--radius-sm);
    box-shadow:
      0 12px 40px rgba(109, 40, 217, 0.18),
      0 4px 16px rgba(139, 92, 246, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      inset 0 -1px 0 rgba(124, 58, 237, 0.15);
    gap: 0.5rem;
    overflow: hidden;
  }

  .main-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      ellipse at 20% 0%,
      rgba(139, 92, 246, 0.36) 0%,
      transparent 55%
    );
    pointer-events: none;
  }

  .main-nav a {
    position: relative;
    z-index: 1;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-700);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .contact-wrap {
    padding: 1.5rem;
  }
}
