/* ==========================================================================
   JACA. — Design System & Global Styles
   Premium dark minimalist web design studio
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --bg: #0D0D0D;
  --text: #FFFFFF;
  --accent: #FFC107;
  --accent-glow: rgba(255, 193, 7, 0.35);
  --muted: #A3A3A3;
  --border: #1a1a1a;
  --surface: #121212;
  --surface-hover: #161616;
  --header-height: 72px;
  --container-max: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent-dot {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section--border {
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow), inset 0 0 18px rgba(255, 193, 7, 0.04);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

body.menu-open .header {
  z-index: 1100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  z-index: 1001;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.header__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

.header__link:hover,
.header__link--active {
  color: var(--text);
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

.header__cta {
  display: none;
}

/* Mobile menu toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 32px;
  height: 32px;
  z-index: 1102;
  position: relative;
  pointer-events: auto;
}

.header__toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.3s ease;
  transform-origin: center;
}

.header__toggle--open .header__toggle-bar:nth-child(1),
.header__toggle.active .header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  background: var(--accent);
}

.header__toggle--open .header__toggle-bar:nth-child(2),
.header__toggle.active .header__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__toggle--open .header__toggle-bar:nth-child(3),
.header__toggle.active .header__toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  background: var(--accent);
}

/* Mobile nav — backdrop (blur) osobno POD panelem menu */
body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  animation: menuBackdropIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes menuBackdropIn {
  to { opacity: 1; }
}

.header__mobile-nav {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 1.25rem;
  right: 1.25rem;
  bottom: auto;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.25rem;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  isolation: isolate;
  transition:
    opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.header__mobile-nav--open,
.header__mobile-nav.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.header__mobile-link,
.header__mobile-nav > .btn {
  position: relative;
  z-index: 2;
  pointer-events: none;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid #1a1a1a;
  transition:
    color 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.header__mobile-nav > .btn {
  margin-top: 1.25rem;
  border-bottom: none;
  text-align: center;
  justify-content: center;
}

.header__mobile-nav--open .header__mobile-link,
.header__mobile-nav--open > .btn,
.header__mobile-nav.active .header__mobile-link,
.header__mobile-nav.active > .btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header__mobile-nav--open .header__mobile-link:nth-child(1),
.header__mobile-nav.active .header__mobile-link:nth-child(1) { transition-delay: 0.06s; }
.header__mobile-nav--open .header__mobile-link:nth-child(2),
.header__mobile-nav.active .header__mobile-link:nth-child(2) { transition-delay: 0.11s; }
.header__mobile-nav--open .header__mobile-link:nth-child(3),
.header__mobile-nav.active .header__mobile-link:nth-child(3) { transition-delay: 0.16s; }
.header__mobile-nav--open .header__mobile-link:nth-child(4),
.header__mobile-nav.active .header__mobile-link:nth-child(4) { transition-delay: 0.21s; }
.header__mobile-nav--open > .btn,
.header__mobile-nav.active > .btn { transition-delay: 0.28s; }

.header__mobile-link:last-of-type {
  border-bottom: none;
}

.header__mobile-link--active {
  color: var(--accent);
}

.header__mobile-nav--open .header__mobile-link:hover,
.header__mobile-nav--open .header__mobile-link:active,
.header__mobile-nav--open .header__mobile-link:focus-visible,
.header__mobile-nav.active .header__mobile-link:hover,
.header__mobile-nav.active .header__mobile-link:active,
.header__mobile-nav.active .header__mobile-link:focus-visible {
  color: var(--accent);
  transform: translateX(10px);
}

.header__mobile-nav--open .header__mobile-link--active,
.header__mobile-nav.active .header__mobile-link--active {
  transform: translateX(6px);
}

.header__mobile-nav--open .header__mobile-link--active:hover,
.header__mobile-nav.active .header__mobile-link--active:hover {
  transform: translateX(10px);
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 800;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 28ch;
}

.footer__owner {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.footer__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 1.5rem;
}

.footer__social-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__social-link:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Main offset for fixed header
   -------------------------------------------------------------------------- */
main {
  padding-top: var(--header-height);
}

/* ==========================================================================
   PAGE: Home (index.html)
   ========================================================================== */

/* Global Plexus network — fixed decorative layer under all page content */
.plexus-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding-top: clamp(5rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

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

.hero__line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero__title {
  max-width: 14ch;
}

.hero__subtitle {
  max-width: 42ch;
  margin-top: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: end;
  display: none;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: auto 1fr;
    gap: 4rem;
  }

  .hero__meta {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: auto 1fr auto;
  }
}

/* Features grid */
.features__grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
}

.features__item {
  padding: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.features__item:last-child {
  border-bottom: none;
}

.features__item:hover {
  background: var(--surface);
}

.features__number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.features__title {
  margin-bottom: 1rem;
}

.features__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__item {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .features__item:last-child {
    border-right: none;
  }
}

/* Home CTA */
.home-cta {
  text-align: center;
}

.home-cta__inner {
  max-width: 720px;
  margin-inline: auto;
}

.home-cta__title {
  margin-bottom: 1.5rem;
}

.home-cta__text {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ==========================================================================
   PAGE: About (o-mnie.html)
   ========================================================================== */

.about-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about-hero__left {
  padding-top: 0.5rem;
}

.about-hero__lead {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text);
}

.about-hero__body {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.8;
  max-width: 55ch;
}

.about-hero__body p + p {
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .about-hero__grid {
    grid-template-columns: 200px 1fr;
    gap: clamp(3rem, 8vw, 8rem);
  }
}

/* Staggered principles grid */
.principles__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 40ch;
}

.principles__grid {
  display: grid;
  gap: 1.5rem;
}

.principles__card {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.principles__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.principles__card-number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.principles__card-title {
  margin-bottom: 1rem;
}

.principles__card-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .principles__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .principles__card:nth-child(2) {
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .principles__card:nth-child(2) {
    margin-top: 5rem;
  }
}

/* ==========================================================================
   PAGE: Portfolio (portfolio.html)
   ========================================================================== */

.portfolio-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.portfolio-header__title {
  margin-bottom: 1rem;
}

.portfolio__grid {
  display: grid;
  gap: 1.5rem;
}

.portfolio__card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: #0D0F12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
  cursor: pointer;
  min-height: 100%;
  overflow: hidden;
}

.portfolio__card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-6px);
  box-shadow:
    0 5px 20px rgba(250, 204, 21, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

/* Card with screenshot image at the top */
.portfolio__card--image {
  padding: 0;
  gap: 0;
}

.portfolio__card--image .portfolio__thumb-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio__card--image:hover .portfolio__thumb-img {
  transform: scale(1.03);
}

.portfolio__card--image .portfolio__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  flex: 1;
}

.portfolio__category {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.portfolio__demo-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.625rem;
  line-height: 1.4;
}

.portfolio__title {
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.25;
}

.portfolio__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.portfolio__arrow {
  font-size: 1.25rem;
  color: var(--muted);
  transition: var(--transition);
  align-self: flex-start;
}

.portfolio__card:hover .portfolio__arrow {
  color: var(--accent);
  transform: translateX(6px);
}

@media (min-width: 768px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ==========================================================================
   PAGE: Services (oferta.html)
   ========================================================================== */

.services-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-header {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.services__list {
  border-top: 1px solid var(--border);
}

.services__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.services__item:hover {
  background: var(--surface);
  padding-inline: clamp(1rem, 2vw, 1.5rem);
  margin-inline: clamp(-1rem, -2vw, -1.5rem);
}

.services__item-left {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex: 1;
}

.services__number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.services__name {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 500;
  transition: var(--transition);
}

.services__desc {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 32ch;
  text-align: right;
  display: none;
}

.services__arrow {
  font-size: 1.25rem;
  color: var(--muted);
  transform: translateX(-8px);
  opacity: 0;
  transition: var(--transition);
  flex-shrink: 0;
}

.services__item:hover .services__name {
  color: var(--accent);
}

.services__item:hover .services__number {
  color: var(--accent);
}

.services__item:hover .services__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

@media (min-width: 768px) {
  .services__desc {
    display: block;
  }
}

/* Process steps */
.process__header {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.process__grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
}

.process__step {
  padding: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.process__step:last-child {
  border-bottom: none;
}

.process__step-number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.process__step-title {
  margin-bottom: 0.75rem;
}

.process__step-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 40ch;
}

@media (min-width: 768px) {
  .process__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__step {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .process__step:last-child {
    border-right: none;
  }
}

/* ==========================================================================
   PAGE: Contact (kontakt.html)
   ========================================================================== */

.contact__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact__info-title {
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact__detail-value {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  transition: var(--transition);
}

a.contact__detail-value:hover {
  color: var(--accent);
}

.contact__social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact__social-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__social-link:hover {
  color: var(--accent);
}

.contact__review-btn {
  margin-top: 0.25rem;
  align-self: flex-start;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid #222;
  color: var(--text);
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
}

.form__submit {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  min-height: 48px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: var(--transition);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 193, 7, 0.2);
  position: relative;
  z-index: 10;
}

.form__submit * {
  pointer-events: none;
}

.form__submit:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  color: var(--bg);
}

/* Form status banner */
.form-status[hidden] {
  display: none !important;
}

.form-status:not([hidden]) {
  display: block;
  visibility: visible;
}

.form-status {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: calc(100% - 2.5rem);
  max-width: 560px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  animation: formStatusIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.form-status--success {
  background: #121212;
  color: var(--text);
  border-color: var(--accent);
}

.form-status--error {
  background: #121212;
  color: var(--text);
  border-color: #8b3030;
}

@keyframes formStatusIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .contact-section {
    position: relative;
    z-index: 5;
    isolation: isolate;
    padding-bottom: clamp(4rem, 12vw, 6rem);
  }

  .contact__form {
    z-index: 10;
    padding-bottom: 1rem;
  }

  .form__submit {
    z-index: 50;
    min-height: 52px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  .form-status:not([hidden]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    z-index: 1200;
    top: calc(var(--header-height) + 0.75rem);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: none;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
  }
}

/* ==========================================================================
   Page header (shared subpage intro)
   ========================================================================== */
.page-intro {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.page-intro__title {
  max-width: 16ch;
}

/* --------------------------------------------------------------------------
   Decorative accents — section headings & geometric dots
   -------------------------------------------------------------------------- */

/* Yellow // prefix before eyebrow labels */
.eyebrow::before {
  content: '// ';
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.9;
}

/* Fading accent line under section h2 headings */
.section h2::after,
.page-intro__title::after {
  content: '';
  display: block;
  margin-top: 0.75rem;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Geometric dot — top-right corner of feature/process grid cells */
.features__item,
.process__step,
.principles__card {
  position: relative;
}

.features__item::after,
.process__step::after,
.principles__card::after {
  content: '';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  box-shadow: 0 0 10px 2px var(--accent-glow);
  transition: opacity 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.features__item:hover::after,
.process__step:hover::after,
.principles__card:hover::after {
  opacity: 0.75;
  box-shadow: 0 0 16px 4px var(--accent-glow);
}

/* Rotated square accent — decorative corner mark on portfolio cards */
.portfolio__card::before {
  content: '';
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.2;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.portfolio__card:hover::before {
  opacity: 0.65;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Accent glow on interactive service rows */
.services__item:hover {
  background: var(--surface);
  padding-inline: clamp(1rem, 2vw, 1.5rem);
  margin-inline: clamp(-1rem, -2vw, -1.5rem);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Left accent bar — active nav link */
.header__link--active::after {
  width: 100%;
  box-shadow: 0 0 6px var(--accent-glow);
}
