/* ==========================================================================
   Zosma Digital - Global Styles & Utilities
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Accessibility Focus States */
a:focus-visible, 
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Section Spacing */
section {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 52px 0;
  }
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Section Headers */
.sec-head {
  max-width: 680px;
  margin: 0 0 44px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-top: 6px;
}

.sec-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.eyebrow .star {
  width: 13px;
  height: 13px;
  flex: none;
}

.eyebrow.on-dark {
  color: var(--green-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--black);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.btn-on-dark:hover {
  background: var(--bg-off);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-on-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Background Variations */
.bg-off {
  background-color: var(--bg-off);
}

.bg-blue-tint {
  background-color: var(--bg-blue-tint);
}

.bg-green-tint {
  background-color: var(--bg-green-tint);
}

.bg-navy {
  background-color: var(--black);
  color: var(--text-on-dark-muted);
}

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 {
  color: var(--white);
}

/* Breadcrumb Bar */
.breadcrumb-bar {
  background: var(--bg-off);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.breadcrumb-bar ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumb-bar a {
  color: var(--text-light);
  font-weight: 500;
}

.breadcrumb-bar a:hover {
  color: var(--green);
}

.breadcrumb-bar li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-bar li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumb-bar li[aria-current="page"] {
  color: var(--black);
  font-weight: 600;
}

/* Common Links */
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--green);
}

.learn-more svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.learn-more:hover {
  color: var(--green-hover);
}

.learn-more:hover svg {
  transform: translateX(4px);
}

.inline-link {
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid rgba(28, 154, 91, 0.35);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.inline-link:hover {
  border-color: var(--green);
  color: var(--green-hover);
}

/* Service Icons */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.icon-blue {
  background: rgba(36, 85, 217, 0.10);
  color: var(--blue);
}

.icon-green {
  background: rgba(28, 154, 91, 0.10);
  color: var(--green);
}

.icon-navy {
  background: rgba(11, 30, 61, 0.08);
  color: var(--black);
}

/* ==========================================================================
   Editorial Agency Layout Utilities
   ========================================================================== */

/* 1. Split 2-Column Layout (Sticky Title/Context + Editorial Stream) */
.split-layout {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 960px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.split-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.split-sidebar h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-top: 8px;
  line-height: 1.2;
}

.split-sidebar p {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--text-light);
  line-height: 1.65;
}

/* 2. Editorial Numbered List (Clean Hairline Dividers) */
.editorial-list {
  display: flex;
  flex-direction: column;
}

.editorial-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background var(--transition-fast);
}

.editorial-item:first-child {
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .editorial-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
}

.item-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 4px;
}

.item-num.green {
  color: var(--green);
}

.item-body h3, .item-body h4 {
  font-size: 21px;
  color: var(--black);
  margin-bottom: 10px;
  font-weight: 700;
}

.item-body p {
  font-size: 15.5px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

.item-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-off-2);
  color: var(--black);
}

.tag-pill.blue {
  background: var(--bg-blue-tint);
  color: var(--blue);
}

.tag-pill.green {
  background: var(--bg-green-tint);
  color: var(--green-hover);
}

/* 3. Alternating Feature Showcase Rows */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 24px 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

@media (max-width: 860px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
}

.feature-text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 16px;
  line-height: 1.25;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-visual {
  background: var(--bg-off);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border-left: 3px solid var(--blue);
}

.feature-visual.green-accent {
  border-left-color: var(--green);
  background: var(--bg-green-tint);
}

.feature-visual.navy-accent {
  background: var(--black);
  color: var(--white);
  border-left-color: var(--green-light);
}

.feature-visual.navy-accent h4 {
  color: var(--white);
}

.feature-visual.navy-accent p {
  color: var(--text-on-dark-muted);
}

/* 4. Clean Borderless Grids (Typography & Whitespace Driven) */
.clean-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.clean-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.clean-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

@media (max-width: 960px) {
  .clean-grid-3, .clean-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .clean-grid-2, .clean-grid-3, .clean-grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.clean-col {
  padding-top: 18px;
  border-top: 2px solid var(--line-subtle);
  transition: border-color var(--transition-fast);
}

.clean-col:hover {
  border-top-color: var(--blue);
}

.clean-col.green-hover:hover {
  border-top-color: var(--green);
}

.clean-col h3, .clean-col h4 {
  font-size: 19px;
  margin-bottom: 10px;
}

.clean-col p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 5. Stat / Metric Showcase */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  .stat-strip {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat-num.green {
  color: var(--green);
}

.stat-num.on-dark {
  color: var(--green-light);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-top: 8px;
}

.stat-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
}

/* 6. Process Step Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}

.process-timeline.steps-4 {
  grid-template-columns: repeat(4, 1fr);
}

.process-timeline.steps-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .process-timeline,
  .process-timeline.steps-4,
  .process-timeline.steps-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  position: relative;
  transition: border-color var(--transition-fast);
}

.process-step:hover {
  border-top-color: var(--green);
}

.step-count {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.process-step h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--black);
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
}

/* 7. Checklist Components */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
}

.check-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green);
  margin-top: 2px;
}

/* 8. Modern Full-Width CTA Banner */
.final-cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0;
}

.final-cta h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  margin-bottom: 18px;
}

.final-cta p {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.final-cta .hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 9. FAQ Accordion (Clean Hairline Borders) */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  transition: color var(--transition-fast);
}

.faq-q:hover {
  color: var(--green);
}

.faq-q svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--green);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 4px;
}

.faq-item.active .faq-a {
  padding-bottom: 22px;
}

.faq-a p {
  font-size: 15.5px;
  color: var(--text-light);
  line-height: 1.65;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Universal Form Utilities & Interactive Validation States
   ========================================================================== */
.req-star {
  color: #DC2626;
  font-weight: 700;
  margin-left: 2px;
}

.opt-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.form-field .field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #DC2626;
  font-weight: 600;
  line-height: 1.4;
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: #DC2626 !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.form-field.invalid .field-error {
  display: block;
}

/* Button Loading State & Spinner */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.75s linear infinite;
  vertical-align: middle;
}

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

.btn.is-loading {
  cursor: not-allowed;
  opacity: 0.88;
  pointer-events: none;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

/* Honeypot field - concealed from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Alert Notification Banner */
.form-msg {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  animation: formFadeIn 0.3s ease-out;
}

@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-msg.show {
  display: block;
}

.form-msg.success {
  background: var(--bg-green-tint);
  border: 1px solid rgba(28, 154, 91, 0.35);
  color: var(--green-hover);
}

.form-msg.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #DC2626;
}

