/* Prismswift homepage — extends brand.css */

:root {
  --amber: #f59e0b;
}

/* Products section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
}

.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-muted);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.product-tagline {
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
}

.product-card > p:not(.product-tagline) {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero split */
.hero-split .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  text-align: left;
}

.hero-split .hero-inner {
  text-align: left;
  padding: 0;
}

.hero-split h1 {
  max-width: 22ch;
  margin: 0 0 1.25rem;
  animation: none;
}

.hero-split .hero-lead {
  margin: 0 0 1.75rem;
  max-width: 48ch;
  animation: none;
}

.hero-split .hero-actions {
  justify-content: flex-start;
  animation: none;
}

.hero-split .hero-pill {
  animation: none;
}

.hero-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-split img {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11, 31, 51, 0.08);
}

.about-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.about-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
  border-radius: 50%;
}

/* Why us */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.why-split img {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}

.why-feature {
  padding: 1.15rem 1.2rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.why-feature h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.why-feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.stat-cell {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.stat-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-cell span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Feature stories */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.story-row:last-child {
  margin-bottom: 0;
}

.story-row img {
  max-height: 320px;
  margin: 0 auto;
}

.story-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.story-row p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.story-row p:last-child {
  margin-bottom: 0;
}

/* Portfolio */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.work-filters button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.work-filters button:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.work-filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.work-card {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 31, 51, 0.1);
}

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--fog);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.work-card:hover .work-card-media img {
  transform: scale(1.04);
}

.work-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  border-radius: 4px;
}

.work-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.work-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.work-card-body h3 a {
  color: var(--ink);
}

.work-card-body h3 a:hover {
  color: var(--brand-deep);
}

.work-meta {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.work-actions {
  display: flex;
  gap: 0.65rem;
}

.work-actions a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  transition: background 0.2s, border-color 0.2s;
}

.work-actions a:hover {
  background: var(--brand-muted);
  border-color: rgba(64, 166, 223, 0.35);
}

.work-actions a.work-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.work-actions a.work-primary:hover {
  background: var(--brand-hover);
  color: var(--white);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.35;
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
}

.testimonial-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.testimonial-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 1rem;
}

.testimonial-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.expertise-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem 1.35rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.expertise-card:hover {
  box-shadow: 0 12px 32px rgba(11, 31, 51, 0.08);
  transform: translateY(-2px);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-muted);
  color: var(--brand-deep);
}

.expertise-icon svg {
  width: 26px;
  height: 26px;
}

.expertise-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.expertise-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Section title centered */
.section-head-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head-center h2 {
  max-width: none;
  margin-bottom: 0.75rem;
}

.section-head-center .section-lead {
  margin: 0 auto;
}

/* Contact form row */
.contactForm .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .contactForm .row {
    grid-template-columns: 1fr;
  }
}

/* Header social (desktop) */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 1rem;
}

.header-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.header-social a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-muted);
}

.site-header .wrap.nav-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .wrap.nav-row .nav {
  margin-left: auto;
}

@media (max-width: 1024px) {
  .work-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-split .wrap,
  .about-split,
  .why-split,
  .story-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-social {
    display: none;
  }

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

  .about-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .work-grid,
  .expertise-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-split .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-split .btn {
    max-width: none;
  }
}
