/* Reusable elements: buttons, brand mark, nav, eyebrow. */

/* === Brand lockup (site header) === */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__symbol {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand__descriptor {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--brand-terra);
  line-height: 1;
  position: relative;
  top: 1px;
}

/* === Site nav === */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--brand-terra);
  transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover { color: var(--brand-navy); }
.nav__link:hover::after { width: 100%; }

/* === Eyebrow === */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-terra);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand-terra);
  opacity: 0.55;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.btn--primary {
  background: var(--brand-terra);
  color: var(--text-on-dark);
  box-shadow: 0 2px 0 var(--brand-navy-deep);
}

.btn--primary:hover {
  background: var(--brand-terra-soft);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--brand-navy-deep);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--brand-navy-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-navy);
  padding: 16px 8px;
}

.btn--ghost:hover { color: var(--brand-terra); }

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow { transform: translateX(4px); }


/* === Nav CTA variant === */
.nav__link--cta {
  color: var(--brand-navy);
  font-weight: 600;
}


/* === Hamburger toggle === */
.nav-toggle {
  display: none; /* hidden on desktop */
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
  background: transparent;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover { background: rgba(21, 49, 90, 0.06); }

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.75px;
  background: var(--brand-navy);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.4s var(--ease-out),
              opacity 0.2s var(--ease-out);
}

/* Hamburger → X */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.75px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.75px) rotate(-45deg);
}


/* === Service card === */
.service-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-terra);
  box-shadow: 0 12px 32px -16px rgba(21, 49, 90, 0.15);
}

.service-card__arch {
  position: relative;
  width: 80px;
  height: 96px;
  margin-bottom: var(--space-sm);
}

.service-card__arch svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.service-card__arch svg path {
  fill: none;
  stroke: var(--brand-terra);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.service-card__numeral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--brand-navy);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

.service-card__copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--border);
}

.service-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-primary);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--brand-terra);
}


/* === Work card === */
.work-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out);
}

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

.work-card__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-sunken);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.work-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  /* zoom-crop past the AI watermark zone: oversized box anchored
     top-left, cropped by overflow — avoids transform:scale blur */
  width: 118%;
  height: 118%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
  transform-origin: top left;
}

.work-card:hover .work-card__thumb {
  box-shadow: 0 18px 40px -20px rgba(21, 49, 90, 0.25);
}

.work-card:hover .work-card__thumb img {
  transform: scale(1.035);
}

/* Corner scrim + plate: covers AI watermarks on generated screenshots
   while reading as an honest portfolio label */
.work-card__thumb::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 46%;
  height: 24%;
  min-width: 150px;
  min-height: 70px;
  background: linear-gradient(315deg, rgba(21, 49, 90, 0.92) 0%, rgba(21, 49, 90, 0.55) 40%, transparent 72%);
  pointer-events: none;
}

.work-card__thumb::after {
  content: 'Concept build';
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(21, 49, 90, 0.88);
  color: var(--surface-base);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 14px 9px 16px;
  border-radius: 10px 0 0 0;
  border-top: 1px solid rgba(200, 85, 46, 0.5);
  border-left: 1px solid rgba(200, 85, 46, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.work-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.work-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--brand-navy);
}

.work-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}


/* === Tags === */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-xs);
}

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}


/* === Why item === */
.why-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--brand-navy);
}

.why-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-terra);
  letter-spacing: 0.04em;
}

.why-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--brand-navy);
}

.why-item__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* === FAQ item === */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-right: var(--space-xs);
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; }

.faq-item__q::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 26px;
  color: var(--brand-terra);
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}

.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__q:hover { color: var(--brand-terra); }

.faq-item__a {
  margin-top: var(--space-md);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 68ch;
}


/* === Form === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.form-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(21, 49, 90, 0.08);
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
}

select.form-input { cursor: pointer; }

.form-submit { margin-top: var(--space-sm); align-self: flex-start; }


/* === Brand at smaller scale (footer) === */
.brand--footer .brand__symbol { width: 32px; height: 32px; }
.brand--footer .brand__descriptor { font-size: 18px; }
