/* ============================================================
   Adhesive Design Studios — Global Styles
   Editorial B2B system: black / white / red
   ============================================================ */

:root {
  --brand: #E11D2E;
  --brand-dark: #B8132A;
  --brand-light: #FF4D5A;
  --ink: #0B0B0B;
  --black: #000000;
  --paper: #FFFFFF;
  --muted: #F4F4F4;
  --gray-500: #6B7280;
  --success: #16A34A;
  --danger: #DC2626;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

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

/* ------------------------------------------------------------
   Buttons — squared, uppercase, editorial
   ------------------------------------------------------------ */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-outline-white,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-outline-white,
  .btn-white {
    white-space: normal;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--brand);
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.9rem;
  }
}

.section-subheading {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   Forms — project intake
   ------------------------------------------------------------ */
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: var(--brand);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.14);
}

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

.form-hint {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-top: 0.375rem;
  line-height: 1.5;
}

.form-error-text {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.375rem;
}

/* File upload dropzone */
.file-drop {
  position: relative;
  display: block;
  border: 2px dashed #D1D5DB;
  border-radius: 2px;
  background: #FAFAFA;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: var(--brand);
  background: #FFF7F7;
}

.file-drop input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-name {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

/* Alerts */
.alert {
  border-left: 4px solid;
  border-radius: 2px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.alert-error {
  background: #FEF2F2;
  border-color: var(--danger);
  color: #7F1D1D;
}

.alert-success {
  background: #F0FDF4;
  border-color: var(--success);
  color: #14532D;
}

/* ------------------------------------------------------------
   Cards & imagery
   ------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
  border-color: #9CA3AF;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

/* Numbered process steps */
.step-index {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
}

/* Feature check list */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--brand);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Motion
   ------------------------------------------------------------ */
.fade-in {
  animation: fadeIn 0.45s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #E5E7EB;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; }
  .portfolio-item img { transition: none; }
}
