/* assets/css/styles.css */

/* =========================
   Base / Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.5;
  color: #0f172a; /* slate-900 */
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
}

ul, ol {
  margin: 0;
  padding: 0;
}

section {
  padding: 4.5rem 0;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.65);
  outline-offset: 3px;
}

/* =========================
   Utilities
========================= */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: #0f172a;
  color: white;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
}

.section-head {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #334155; /* slate-700 */
  margin-top: 0.25rem;
}

.fineprint {
  font-size: 0.9rem;
  color: #475569; /* slate-600 */
  margin-top: 0.5rem;
}

/* =========================
   Buttons / Links
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  font-weight: 650;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn:active {
  transform: translateY(0px);
}

.btn-small {
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: #0f172a;
}

.text-link {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 650;
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  padding-bottom: 2px;
}
.text-link:hover {
  border-bottom-color: rgba(15, 23, 42, 0.5);
}

/* =========================
   Topbar
========================= */
.topbar {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-text {
  color: #334155;
  font-size: 0.98rem;
  margin: 0;
}

/* =========================
   Header / Nav
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 0.7rem;
}

.brand-text {
  font-size: 1.1rem;
}

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

.site-nav a {
  font-weight: 650;
  color: #0f172a;
  opacity: 0.92;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
  border-radius: 2px;
}

/* =========================
   Hero
========================= */
.hero {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: #334155;
  max-width: 55ch;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.1rem;
}

.hero-points {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  color: #334155;
  font-weight: 600;
}

.media-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.06);
}

.media-card img {
  width: 100%;
  height: auto;
}

.caption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.95rem;
  color: #475569;
}

/* =========================
   Trust / Logo row
========================= */
.trust {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.logo-pill {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-weight: 700;
  color: #334155;
}

/* =========================
   Cards / Grids
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.35rem 1.3rem;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.card p {
  color: #334155;
}

.list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: #334155;
}

.list li::before {
  content: "•";
  margin-right: 0.55rem;
  color: #0f172a;
}

/* =========================
   Work
========================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-meta {
  padding: 1.1rem 1.1rem 1.2rem;
}

.work-tag {
  display: inline-block;
  font-weight: 750;
  font-size: 0.85rem;
  color: #475569;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.work-desc {
  color: #334155;
}

/* =========================
   Process
========================= */
.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
  padding: 0;
}

.step {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.2rem 1.15rem;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.step p {
  color: #334155;
}

/* =========================
   Testimonials
========================= */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote-card {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.3rem 1.25rem;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.quote-card blockquote {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.quote-card figcaption {
  color: #475569;
  font-weight: 650;
}

/* =========================
   Blog
========================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.3rem 1.25rem;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.post-meta {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.6rem;
}

.post-card h3 a {
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  padding-bottom: 2px;
}
.post-card h3 a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.45);
}

.section-cta {
  margin-top: 1.5rem;
}

/* =========================
   Newsletter
========================= */
.newsletter {
  background: #0f172a;
  color: #ffffff;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-form {
  display: grid;
  gap: 0.75rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================
   Contact
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-copy p {
  color: #334155;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0;
  color: #334155;
}

.contact-form {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.4rem 1.25rem;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

label {
  font-weight: 700;
  color: #0f172a;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.55);
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  color: #475569;
  font-weight: 650;
}

.footer-nav,
.footer-social {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-nav a,
.footer-social a {
  color: #334155;
  font-weight: 650;
  opacity: 0.92;
}

.footer-nav a:hover,
.footer-social a:hover {
  opacity: 1;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .work-grid,
  .quote-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

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

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

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.35rem 0;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Blog Post Page Styles
   (Add to bottom of styles.css)
========================= */

.blog-post-head {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.post-wrap {
  width: min(820px, 100%);
  margin-inline: auto;
}

.post-title {
  margin-top: 0.35rem;
}

.post-lead {
  font-size: 1.15rem;
  color: #334155;
  max-width: 65ch;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: #475569;
  font-weight: 650;
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
}

.dot {
  opacity: 0.65;
}

.post-figure {
  margin: 1.35rem 0 0;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
}

.post-figure figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
  color: #475569;
}

.blog-post-body {
  padding-top: 2.75rem;
}

.post-content {
  font-size: 1.05rem;
}

.post-content p {
  color: #334155;
  margin-bottom: 1.1rem;
}

.post-content h2 {
  margin-top: 2rem;
}

.post-content h3 {
  margin-top: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem 1.2rem;
  color: #334155;
}

.post-content li {
  margin: 0.35rem 0;
}

.post-content a {
  border-bottom: 1px solid rgba(15, 23, 42, 0.25);
  padding-bottom: 2px;
}

.post-content a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.5);
}

.post-content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #0f172a;
  background: #f8fafc;
  border-radius: 1rem;
  color: #0f172a;
  font-weight: 650;
}

.post-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.cta-box {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 10px 36px rgba(2, 6, 23, 0.05);
  margin: 1.5rem 0 2rem;
}

.cta-box h3 {
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin-bottom: 1rem;
}

.author-box {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.25rem;
  margin-top: 2rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.author-name {
  margin: 0 0 0.2rem;
  font-weight: 800;
  color: #0f172a;
}

.author-blurb {
  margin: 0;
  color: #475569;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.post-nav-link {
  font-weight: 750;
  color: #0f172a;
  opacity: 0.92;
}

.post-nav-link:hover {
  opacity: 1;
}

/* Blog page mobile tweaks */
@media (max-width: 980px) {
  .post-content {
    font-size: 1.02rem;
  }

  .post-nav {
    justify-content: flex-start;
  }
}

.disclosure-box {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  font-size: 0.95rem;
  color: #475569;
}

