/* ==========================================================================
   Daisi Digital — Fresh Daisy design tokens
   ========================================================================== */

:root {
  /* colour */
  --bg: #FDFCF7;
  --bg-alt: #F0E8D6;
  --ink: #1B2A1F;
  --muted: #444F46;
  --yellow: #FFD447;
  --coral: #FF4C68;
  --cream: #FDFCF7;
  --card-border: rgba(27, 42, 31, 0.08);

  /* type */
  --font-display: "Clash Display", "General Sans", Georgia, serif;
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --h1: clamp(2.75rem, 7vw + 1.1rem, 5.75rem);
  --h2: clamp(2rem, 4vw + 1rem, 3.5rem);
  --h3: clamp(1.375rem, 1.4vw + 1rem, 1.75rem);
  --body: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --eyebrow: 0.75rem;
  --numeral: clamp(3.5rem, 9vw, 8rem);

  /* spacing */
  --section-pad-y: clamp(3.75rem, 8vw, 8rem);
  --gutter: clamp(1.5rem, 5vw, 3.5rem);
  --max-width: 1320px;

  /* motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
h3 { font-weight: 500; letter-spacing: -0.005em; }

p { margin: 0; }

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ==========================================================================
   Shared
   ========================================================================== */

.eyebrow {
  color: var(--coral);
  font-family: var(--font-body);
  font-size: var(--eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--gutter);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-intro {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 34rem;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(27, 42, 31, 0.15);
}
.btn--primary:hover {
  background: #ffcb28;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -12px rgba(255, 212, 71, 0.7);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 0 rgba(27, 42, 31, 0.15);
}
.btn--primary .btn-arrow {
  transition: transform 0.35s var(--ease);
}
.btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(253, 252, 247, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--card-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 4.5vw + 0.4rem, 2.1rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .header-inner .btn {
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(6rem, 14vw, 9rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-heading {
  font-size: var(--h1);
  line-height: 0.98;
  max-width: 15ch;
  margin: 1.5rem 0 0;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.3rem);
  max-width: 30ch;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.hero-sub strong {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.hero-pillars-wrap {
  display: none;
}

@media (min-width: 1024px) {
  .hero-pillars-wrap {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12rem;
    text-align: right;
  }
  .hero-pillars-label {
    color: var(--coral);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.25rem;
  }
  .hero-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .hero-pillars li {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.85rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw, 1.4rem);
    color: var(--ink);
    padding-bottom: 1.4rem;
    border-bottom: 0.5px solid var(--card-border);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .hero-pillars li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .hero-pillars li span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--coral);
  }
  .hero-pillars.is-revealed li {
    opacity: 1;
    transform: translateX(0);
  }
  .hero-pillars.is-revealed li:nth-child(1) { transition-delay: 0ms; }
  .hero-pillars.is-revealed li:nth-child(2) { transition-delay: 90ms; }
  .hero-pillars.is-revealed li:nth-child(3) { transition-delay: 180ms; }
  .hero-pillars.is-revealed li:nth-child(4) { transition-delay: 270ms; }
}

/* line reveal (hero headline) */
.hero-heading .line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-heading .line span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero-sub,
.hero > .hero-inner > .btn {
  opacity: 0;
  transform: translateY(16px);
}

.hero-heading.is-revealed .line span {
  animation: line-up 0.75s var(--ease) forwards;
}
.hero-sub.is-revealed,
.btn.is-revealed {
  animation: fade-up 0.7s var(--ease) forwards;
}

@keyframes line-up {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fade-up {
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Introduction
   ========================================================================== */

.intro {
  background: var(--bg-alt);
  padding: var(--section-pad-y) var(--gutter);
}

.intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.intro-pull {
  font-size: var(--h2);
  line-height: 1.05;
  max-width: 18ch;
}

.intro-pull-line2 {
  display: inline-block;
  margin-top: 0.35em;
  border-bottom: 3px solid var(--coral);
  padding-bottom: 0.08em;
}

.intro-body {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
  color: var(--muted);
}

.intro-body p:last-child {
  color: var(--ink);
  font-weight: 600;
}

.intro-body strong {
  font-weight: 600;
}

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:nth-child(even) {
  background: var(--bg-alt);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 42, 31, 0.18);
  box-shadow: 0 20px 40px -28px rgba(27, 42, 31, 0.35);
}

.service-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--coral);
  margin-bottom: 1.25rem;
  transition: color 0.35s var(--ease);
}

.service-card:hover .service-number {
  color: var(--ink);
}

.service-card h3 {
  font-size: var(--h3);
  margin-bottom: 0.85rem;
}

.service-card p {
  color: var(--muted);
}

.card-arrow {
  position: absolute;
  top: clamp(1.75rem, 3vw, 2.5rem);
  right: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 1.25rem;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.service-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.service-card--addon {
  background: var(--bg-alt);
}

.addon-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   How we work
   ========================================================================== */

.process {
  background: var(--ink);
  color: var(--cream);
}

.process .eyebrow {
  color: var(--coral);
}

.process .section-intro,
.process h2 {
  color: var(--cream);
}

.process .section-intro {
  color: rgba(253, 252, 247, 0.75);
}

.process-list {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem) clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 clamp(-1rem, -3vw, -1.75rem);
  border-bottom: 0.5px solid rgba(253, 252, 247, 0.14);
  border-radius: 16px;
}

.process-step:nth-child(even) {
  background: rgba(253, 252, 247, 0.045);
  border-bottom-color: transparent;
}

.process-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.process-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--numeral);
  line-height: 0.85;
  color: var(--coral);
}

.process-copy h3 {
  font-size: var(--h3);
  margin-bottom: 0.6rem;
  color: var(--cream);
}

.process-copy p {
  color: rgba(253, 252, 247, 0.75);
  max-width: 48ch;
}

/* ==========================================================================
   Why Daisi
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.why-card {
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--bg);
}

.why-card h3 {
  font-size: var(--h3);
  margin-bottom: 0.85rem;
}

.why-card p {
  color: var(--muted);
}

.why-card--dark {
  background: var(--ink);
  color: var(--cream);
}
.why-card--dark h3 { color: var(--cream); }
.why-card--dark p { color: rgba(253, 252, 247, 0.75); }
.why-card--dark::selection { background: var(--yellow); }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  position: relative;
  background: var(--bg-alt);
  padding: var(--section-pad-y) var(--gutter);
  text-align: left;
}

.final-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  position: relative;
}

.final-cta h2 {
  font-size: var(--h2);
  line-height: 1.05;
  max-width: 16ch;
}

.final-cta p {
  color: var(--muted);
  margin: 1.5rem 0 2rem;
  max-width: 40ch;
}

.final-cta-alt {
  margin: 2rem 0 0 !important;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  max-width: none !important;
  line-height: 1.5;
}

.final-cta-alt strong {
  font-weight: 600;
  color: var(--ink);
}

.final-cta-alt a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(27, 42, 31, 0.35);
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.25s var(--ease);
}

.final-cta-alt a:hover {
  text-decoration-color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wordmark--footer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253, 252, 247, 0.75);
  transition: color 0.3s var(--ease);
}

.footer-links a svg {
  flex-shrink: 0;
}
.footer-links a:hover {
  color: var(--yellow);
}

.footer-copy {
  color: rgba(253, 252, 247, 0.5);
  font-size: 0.8rem;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal-words].is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 768px) {
  .intro-inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card--wide {
    grid-column: span 2;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-card--dark {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .service-card--wide { grid-column: span 7; }
  .service-card:nth-of-type(2) { grid-column: span 5; }
  .service-card:nth-of-type(3) { grid-column: span 4; }
  .service-card:nth-of-type(4) { grid-column: span 4; }
  .service-card--addon { grid-column: span 4; }

  .process-step {
    grid-template-columns: 220px 1fr;
  }
  .process-step--offset {
    margin-left: 8vw;
  }

  .why-grid {
    grid-template-columns: 1fr 1.1fr 1fr;
  }
}

@media (min-width: 1440px) {
  .hero-heading { max-width: 17ch; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal,
  [data-reveal-words] .word,
  .hero-heading .line span,
  .hero-sub,
  .btn,
  .hero-pillars li {
    opacity: 1 !important;
    transform: none !important;
  }
}
