/* PulseWave Digital — shared styles */

:root {
  --bg-deep: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0891b2;
  --accent-2: #7c3aed;
  --accent-warm: #ea580c;
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(8, 145, 178, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 58, 237, 0.06), transparent 50%);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  --transition: 0.22s ease;
  --on-accent: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #0e7490;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-mark {
  flex-shrink: 0;
  min-width: 52px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.2);
}

.logo-letters {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--on-accent);
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--on-accent) !important;
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.25);
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    display: none;
  }

  .nav-toggle:checked ~ .nav-main {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-head .lead {
  margin-bottom: 0;
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(4rem, 12vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy .lead {
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge strong {
  display: block;
  font-size: 1.1rem;
}

.hero-badge span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cards & grids */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(124, 58, 237, 0.08));
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Flexible service grid (e.g. home page) */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Index: stats hidden until you want them live */
.home-stats {
  display: none;
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  display: block;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Logos strip */
.logos-strip {
  border-block: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: -1px;
}

.logos-strip p {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 2.5rem;
}

.logo-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Testimonial */
.testimonial {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card), transparent);
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
}

.testimonial figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial figcaption strong {
  color: var(--text);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.06), rgba(124, 58, 237, 0.05));
  margin-top: 2rem;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band .lead {
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
}

/* Process steps */
.process {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.process-step h3 {
  margin-bottom: 0.35rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Work / portfolio */
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform var(--transition), border-color var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.work-card-body {
  padding: 1.5rem;
}

.work-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.work-metrics span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.work-metrics strong {
  color: var(--accent-warm);
}

/* Team */
.team-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--border-strong);
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.team-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 145, 178, 0.04);
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-box {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-info-box dl {
  margin: 1.5rem 0 0;
}

.contact-info-box dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-info-box dt:first-of-type {
  margin-top: 0;
}

.contact-info-box dd {
  margin: 0.25rem 0 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.form-success {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(8, 145, 178, 0.35);
  background: rgba(8, 145, 178, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-success[hidden],
.form-error[hidden] {
  display: none;
}

.form-error {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 88, 12, 0.35);
  background: rgba(234, 88, 12, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .answer {
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32ch;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Service detail list */
.service-detail {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 1.5rem;
}

.service-detail h3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.service-detail ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.service-detail li {
  margin-bottom: 0.4rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-lg {
  margin-bottom: 2.5rem;
}

.section-tint {
  background: rgba(8, 145, 178, 0.04);
  border-block: 1px solid var(--border);
}

.service-detail .client-industry {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0;
  text-transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
