/* ============================================================
   COMPONENTS.CSS — Graphic TECH
   Buttons, cards, badges, forms, accordion, marquee, tabs,
   breadcrumb, pagination — reusable across every page
   ============================================================ */

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), background var(--t),
              color var(--t), border-color var(--t);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(33, 150, 243, .45), 0 0 20px rgba(33, 150, 243, .2);
}

.btn-ghost {
  background: rgba(255, 255, 255, .55);
  border-color: var(--line-2);
  color: var(--primary-deep);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

.btn-white {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 12px 28px rgba(4, 30, 66, .22);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(4, 30, 66, .28); }

.btn-line-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-line-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-3px); }

.btn-lg { padding: 17px 38px; font-size: 1.03rem; }
.btn-sm { padding: 10px 22px; font-size: .86rem; }
.btn-block { width: 100%; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: .92rem;
  transition: gap var(--t), color var(--t);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t); }
.link-arrow:hover { gap: 13px; color: var(--primary-deep); }

/* ------------------------------------------------------------
   BADGES / TAGS / PILLS
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge--outline { background: transparent; border: 1px solid var(--line-2); color: var(--body); }
.badge--deep    { background: var(--primary-deep); color: #fff; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }



/* ------------------------------------------------------------
   GENERIC CARD
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card--hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(13, 71, 161, 0.12), 0 0 0 2px rgba(33, 150, 243, 0.1);
  border-color: var(--blue-300);
}
.card--flat { box-shadow: none; }

/* Icon tile used by service / feature cards */
.icon-tile {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--blue-50), #fff);
  border: 1px solid var(--line);
  color: var(--primary);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(13, 71, 161, .08);
  transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile--sm { width: 46px; height: 46px; border-radius: 13px; }
.icon-tile--sm svg { width: 21px; height: 21px; }



/* ------------------------------------------------------------
   ACCORDION (FAQ)
   ------------------------------------------------------------ */
.accordion { display: flex; flex-direction: column; gap: 14px; }

.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.acc-item.is-open { border-color: var(--blue-200); box-shadow: var(--shadow-md); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t);
}
.acc-trigger:hover { color: var(--primary); }

.acc-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  transition: transform var(--t), background var(--t), color var(--t);
}
.acc-icon svg { width: 15px; height: 15px; }
.acc-item.is-open .acc-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.acc-panel__inner {
  padding: 0 24px 22px;
  color: var(--body);
  font-size: .95rem;
  line-height: 1.85;
}

/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-2);
}
.field label .req { color: #E5484D; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, .13);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #E5484D; background: #FFF6F6; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: .8rem;
  color: #E5484D;
}
.field.has-error .field-error { display: block; }

.form-note { font-size: .84rem; color: var(--muted); }

.form-alert {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
}
.form-alert.is-visible { display: flex; }
.form-alert--ok { background: #E8F7EE; color: #17803D; border: 1px solid #BFE7CE; }

/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .72);
}
.breadcrumb a { transition: color var(--t); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: #fff; font-weight: 500; }

/* ------------------------------------------------------------
   FILTER TABS
   ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--body);
  font-size: .89rem;
  font-weight: 500;
  transition: all var(--t);
}
.filter-btn:hover { border-color: var(--blue-200); color: var(--primary); }
.filter-btn.is-active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-blue);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .marquee__track { gap: 38px; }
  .card { padding: 26px 22px; }
  .btn  { padding: 13px 24px; }
}

/* ------------------------------------------------------------
   404 NOT FOUND PAGE
   ------------------------------------------------------------ */
.not-found-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}
.not-found-num {
  font-size: clamp(6rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}
.not-found-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 16px;
  font-weight: 700;
}
.not-found-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.not-found-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
