/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* TSdesigns brand palette */
  --ts-blue-primary:  #1D4ED8;
  --ts-blue-light:    #38BDF8;
  --ts-navy:          #1e3a5f;
  --ts-slate:         #64748B;
  --ts-white:         #FFFFFF;
  --ts-gradient:      linear-gradient(135deg, #1D4ED8, #38BDF8);

  /* Derived tokens */
  --clr-bg:       #ffffff;
  --clr-surface:  #F0F7FF;
  --clr-border:   #dce8f5;
  --clr-text:     #1e3a5f;
  --clr-muted:    #64748B;
  --clr-accent:   #1D4ED8;
  --clr-accent-l: #38BDF8;
  --clr-wa:       #25d366;
  --clr-wa-h:     #1ebe5d;
  --radius:       10px;
  --shadow:       0 4px 24px rgba(30,58,95,.10);
  --transition:   .2s ease;
  --max-w:        1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.section {
  padding: 96px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ts-navy);
}

.section__header p {
  color: var(--clr-muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--clr-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.btn--primary {
  background: var(--ts-gradient);
  color: #fff;
  border-color: transparent;
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(29,78,216,.35);
  opacity: .92;
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.btn--outline {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: transparent;
}
.btn--outline:hover { background: var(--clr-accent); color: #fff; }

.btn--whatsapp {
  background: var(--clr-wa);
  color: #fff;
  font-size: 1rem;
  padding: 13px 24px;
  border-color: transparent;
}
.btn--whatsapp:hover { background: var(--clr-wa-h); box-shadow: 0 4px 16px rgba(37,211,102,.3); }

.btn--full { width: 100%; justify-content: center; }

.whatsapp-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav__links a {
  color: var(--clr-muted);
  font-weight: 500;
  font-size: .93rem;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--ts-navy); }

.nav__cta { margin-left: auto; flex-shrink: 0; }

.nav__burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
  color: var(--clr-text);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: var(--ts-navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 100%;
}

.hero > * {
  max-width: calc(var(--max-w) / 2 - 24px);
}

.hero__content {
  padding: 80px 0 96px 32px;
  max-width: 560px;
  margin-left: auto;
}

.hero__visual {
  padding: 80px 32px 96px 0;
  max-width: 520px;
}

.hero .badge {
  background: rgba(56,189,248,.15);
  color: #38BDF8;
}

.hero__headline {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #fff;
}

.highlight {
  background: var(--ts-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  color: rgba(255,255,255,.7);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Browser Mockup */
.mockup {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.06);
}

.mockup__bar {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.mockup__bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup__bar span:nth-child(1) { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #febc2e; }
.mockup__bar span:nth-child(3) { background: #28c840; }

.mockup__screen {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup__line {
  height: 10px;
  border-radius: 4px;
  background: #1e293b;
}
.mockup__line--wide  { width: 90%; }
.mockup__line--med   { width: 60%; }
.mockup__line--short { width: 35%; }

.mockup__block {
  height: 100px;
  border-radius: 8px;
  background: var(--ts-gradient);
  opacity: .35;
  margin: 4px 0;
}

/* ─────────────────────────────────────────
   STATS
───────────────────────────────────────── */
.stats {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  justify-content: center;
}

.stats__item {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid var(--clr-border);
}
.stats__item:last-child { border-right: none; }

.stats__item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--ts-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stats__item span {
  font-size: .875rem;
  color: var(--clr-muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   SERVICES / CARDS
───────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(29,78,216,.2);
}

.card__icon {
  font-size: 1.4rem;
  color: var(--clr-accent);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ts-navy);
}

.card p {
  color: var(--clr-muted);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card__tags li {
  background: #dbeafe;
  color: var(--clr-accent);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ─────────────────────────────────────────
   WORK / STYLE SHOWCASE
───────────────────────────────────────── */
.work {
  background: var(--clr-surface);
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 100%;
}
.work > .section__header, .work__grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.work__card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.work__card-label {
  padding: 14px 20px 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-muted);
  font-family: 'DM Sans', sans-serif;
}

.work__card-demo {
  margin: 12px 20px;
  border-radius: 8px;
  overflow: hidden;
  height: 160px;
  display: flex;
  flex-direction: column;
}

.work__demo--dark { background: #0f172a; }
.work__demo--dark .demo-bar { background: #1e293b; }
.work__demo--dark .demo-line { background: #334155; }
.work__demo--dark .demo-btn { background: #1D4ED8; }

.work__demo--minimal { background: #f8fafc; border: 1px solid #e2e8f0; }
.work__demo--minimal .demo-bar--light { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.work__demo--minimal .demo-line--dark { background: #cbd5e1; }
.work__demo--minimal .demo-btn--outline { background: transparent; border: 2px solid #1D4ED8; }

.work__demo--bold { background: linear-gradient(135deg, #1D4ED8, #38BDF8); }
.work__demo--bold .demo-bar--colour { background: rgba(0,0,0,.15); }
.work__demo--bold .demo-line--white { background: rgba(255,255,255,.4); }
.work__demo--bold .demo-btn--white { background: #fff; }

.demo-bar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  flex-shrink: 0;
}

.demo-bar::before, .demo-bar::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.demo-content {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.demo-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.2);
}
.demo-line--w80 { width: 80%; }
.demo-line--w50 { width: 50%; }

.demo-btn {
  width: 80px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.25);
  margin-top: 6px;
}

.work__card p {
  padding: 12px 20px 20px;
  font-size: .9rem;
  color: var(--clr-muted);
}

/* Featured build card */
.work__featured {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 24px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.work__featured-label {
  background: var(--ts-gradient);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 20px;
  margin: 0 -24px;
  font-family: 'DM Sans', sans-serif;
}

.work__featured-content {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.work__featured-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ts-navy);
  margin-bottom: 6px;
}

.work__featured-content p {
  font-size: .9rem;
  color: var(--clr-muted);
  max-width: 520px;
  line-height: 1.6;
}

.work__featured-link {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   PROCESS
───────────────────────────────────────── */
.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
}

.step__num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--ts-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
  opacity: .35;
}

.step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ts-navy);
}

.step p {
  font-size: .88rem;
  color: var(--clr-muted);
}

.step__arrow {
  font-size: 1.5rem;
  color: var(--clr-border);
  padding-top: 18px;
  align-self: flex-start;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about {
  background: var(--clr-surface);
  max-width: 100%;
  padding: 96px 24px;
}

.about__split {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ts-navy);
  line-height: 1.2;
}

.about__content p {
  color: var(--clr-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.about__usps {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about__usps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.usp__icon {
  color: var(--clr-accent);
  font-size: .7rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.about__usps strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--ts-navy);
  font-size: .95rem;
  margin-bottom: 2px;
}

.about__usps p {
  font-size: .88rem;
  color: var(--clr-muted);
  margin: 0;
}

.about__card {
  background: var(--ts-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 16px;
}

.about__stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.about__quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 12px;
  font-style: italic;
  color: rgba(255,255,255,.9);
}

.about__cite {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

.about__cta-box {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.about__cta-box p {
  color: var(--clr-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact {
  padding: 96px 24px;
  max-width: 100%;
}

.contact__split {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ts-navy);
}

.contact__info p {
  color: var(--clr-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.65;
}

.contact__divider {
  margin-top: 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--clr-muted);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contact__details {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__details p {
  font-size: .93rem;
  color: var(--clr-muted);
  margin: 0;
}

.contact__details a {
  color: var(--clr-accent);
}

.contact__details a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form */
.contact__form-wrap {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form__group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ts-navy);
}

.req { color: var(--clr-accent); }

.form__group input,
.form__group select,
.form__group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-family: 'DM Sans', inherit;
  font-size: .95rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

.form__group input.error,
.form__group textarea.error {
  border-color: #ef4444;
}

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

.form__note {
  text-align: center;
  font-size: .8rem;
  color: var(--clr-muted);
  margin-top: 10px;
}

.form__success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--ts-navy);
  padding: 56px 24px 32px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer__tagline {
  color: rgba(255,255,255,.45);
  font-size: .88rem;
  margin-top: 10px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__col a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--ts-blue-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer__bottom a {
  color: var(--ts-blue-light);
}

/* ─────────────────────────────────────────
   FLOATING WHATSAPP
───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--clr-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

.whatsapp-float .whatsapp-icon {
  width: 28px;
  height: 28px;
  color: white;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    padding: 60px 24px 0;
    margin: 0 auto;
  }

  .hero__visual {
    padding: 24px 24px 72px;
    margin: 0 auto;
    max-width: 420px;
  }

  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }

  .about__split { grid-template-columns: 1fr; gap: 36px; }
  .contact__split { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 16px 24px;
    gap: 16px;
    z-index: 99;
  }

  .nav.open .nav__cta {
    display: inline-flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    margin: 0 24px 16px;
    justify-content: center;
    z-index: 99;
  }

  .nav.open .nav__links { top: calc(68px + 56px); }

  .stats { flex-wrap: wrap; }
  .stats__item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--clr-border); }

  .form__row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 24px 20px; }

  .step__arrow { display: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
