/* =============================================================
   Digital Mindshare LLC — Design System
   Single source of truth for all visual decisions.
   ============================================================= */

/* -------------------------------------------------------------
   Monologue (licensed, local)
   ------------------------------------------------------------- */
@font-face {
  font-family: 'Monologue';
  src: url('/fonts/monologue-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------
   Google Fonts
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* -------------------------------------------------------------
   Tokens
   ------------------------------------------------------------- */
:root {
  /* Colors */
  --primary:       #2a4e61;
  --primary-dark:  #1d3a4a;
  --primary-mid:   #35627a;
  --steel:         #6a8ea0;
  --border:        #d8dde2;
  --border-light:  #e8ecf0;
  --bg-warm:       #eef1f4;
  --charcoal:      #424b54;
  --gray:          #8a929b;
  --white:         #ffffff;

  /* Typography */
  --font-heading:  'Oswald', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --h1:            clamp(36px, 6vw, 66px);
  --h2:            clamp(26px, 3.5vw, 36px);
  --h3:            22px;
  --body:          16px;
  --small:         15px;
  --label-size:    11px;

  /* Letter spacing */
  --ls-label:      0.12em;
  --ls-heading:    0.02em;

  /* Line heights */
  --lh-display:    1.1;
  --lh-heading:    1.25;
  --lh-body:       1.65;

  /* Spacing */
  --container:         1040px;
  --container-narrow:  720px;
  --container-tight:   680px;
  --sec-pad:           88px;
  --gap-sm:            12px;
  --gap-md:            20px;
  --gap-lg:            56px;
}

/* -------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--lh-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* Scroll offset for sticky nav */
#pattern, #proof, #how, #about, #contact {
  scroll-margin-top: 80px;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--tight {
  max-width: var(--container-tight);
}

/* -------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------- */
.label {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  color: var(--primary);
}

h1 {
  font-size: var(--h1);
  font-weight: 700;
  text-transform: uppercase;
  line-height: var(--lh-display);
}

h2 {
  font-size: var(--h2);
  font-weight: 600;
}

h3 {
  font-size: var(--h3);
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--steel);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

/* -------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.15s;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  border-radius: 2px;
  padding: 8px 18px;
  transition: background 0.15s, color 0.15s !important;
}

.nav-cta:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------
   Hero Section (#top)
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px; /* header height */
}

.hero__owl {
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__owl img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.09;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 60px 0;
}

.hero__headline {
  font-family: 'Monologue', var(--font-heading);
  font-size: var(--h1);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-display);
  max-width: 500px;
  margin-bottom: 28px;
}

.hero__body {
  max-width: 520px;
  margin-bottom: 40px;
  color: var(--charcoal);
}

.hero__body p {
  margin-bottom: 12px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* -------------------------------------------------------------
   Section defaults
   ------------------------------------------------------------- */
.section {
  padding: var(--sec-pad) 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section--dark {
  background: var(--primary-mid);
}

.section--flush-top {
  padding-top: 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-top: 0;
}

/* -------------------------------------------------------------
   Problem Section (#pattern)
   ------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: 8px;
}

.problem-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 30px;
  overflow: hidden;
}

.problem-card__icon {
  text-align: center;
  margin-bottom: 30px;
}

.problem-card__icon img {
  max-height: 80px;
  margin-inline: auto;
}

.problem-card__number {
  font-family: 'Monologue', var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: 0;
  color: var(--primary);
}

.problem-card__subtitle {
  font-style: italic;
  color: var(--steel);
  font-size: var(--small);
  margin-top: 4px;
  margin-bottom: 18px;
}

.problem-card__body {
  font-size: var(--small);
  color: var(--charcoal);
  line-height: var(--lh-body);
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   The Work Section (#proof)
   ------------------------------------------------------------- */
.work-content {
  max-width: 720px;
}

.work-content p {
  margin-bottom: 16px;
}

/* -------------------------------------------------------------
   Process Timeline
   ------------------------------------------------------------- */
.timeline {
  background: var(--white);
  padding: 48px 0 72px;
}

.timeline__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  max-width: 1000px;
  margin-inline: auto;
  position: relative;
}

.timeline__track::before {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(12.5% + 5px);
  right: calc(12.5% + 5px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline__circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Monologue', var(--font-body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline__circle--ongoing {
  background: var(--white);
  border: 2.5px dashed var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.timeline__phase {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.timeline__desc {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.55;
}

/* -------------------------------------------------------------
   How I Work Section (#how)
   ------------------------------------------------------------- */
.services {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.services__intro {
  margin-top: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.service-item {
  margin-bottom: 0;
}

.service-item h3 {
  font-size: var(--h3);
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 0;
}

.service-item p {
  margin-bottom: 30px;
}

.service-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0 0 28px;
}

.service-label {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 8px;
}

.callout {
  border-left: 3px solid var(--steel);
  background: rgba(66, 75, 84, 0.03);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
}

.callout p {
  margin: 0;
  font-size: var(--small);
  color: var(--charcoal);
  line-height: var(--lh-body);
}

.services__sub-cta {
  font-size: var(--small);
  color: var(--gray);
  margin-bottom: 16px;
  display: block;
}

/* -------------------------------------------------------------
   Why Me Section (#about)
   ------------------------------------------------------------- */
.about-content {
  max-width: var(--container-tight);
}

.about-content p {
  margin-bottom: 20px;
}

/* -------------------------------------------------------------
   Testimonials Section
   ------------------------------------------------------------- */
.testimonials {
  padding: 60px 0;
  background: var(--primary-mid);
}

.testimonials__carousel {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.testimonial-slides {
  position: relative;
  min-height: 180px;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.4s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-style: italic;
  font-size: 19px;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 500px;
  margin-inline: auto;
}

.testimonial-attr {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.testimonial-dot.active {
  background: var(--white);
}

/* -------------------------------------------------------------
   Contact Section (#contact)
   ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: flex-start;
}

.contact-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.contact-heading p {
  color: var(--charcoal);
  max-width: 400px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 14px;
  transition: border-color 0.15s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a8ea0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit {
  margin-top: 4px;
}

/* Form success state */
.form-success {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}
.form-success p {
  margin: 0 0 8px;
  line-height: 1.5;
}
.form-success p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 28px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

.footer-legal {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--gray);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* -------------------------------------------------------------
   Legal Pages (Privacy, Terms)
   ------------------------------------------------------------- */
.legal-page {
  padding-top: calc(72px + 60px);
  padding-bottom: 80px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.legal-page .effective-date {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 48px;
  display: block;
}

.legal-page h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.legal-page p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ul li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-page strong {
  color: var(--charcoal);
  font-weight: 700;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

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

  .timeline__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline__track::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --sec-pad: 64px;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }

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

  .site-nav a {
    font-size: 15px;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__owl {
    width: 80%;
    opacity: 0.06;
  }

  .hero__content {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline__track {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    width: 100%;
    text-align: center;
  }
}
